From 2425f5362db3b981447425384143bf24309c4394 Mon Sep 17 00:00:00 2001 From: helge Date: Tue, 15 Feb 2005 00:24:31 +0000 Subject: [PATCH] started TB look scheduler git-svn-id: http://svn.opengroupware.org/SOGo/trunk@566 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/GNUmakefile | 3 +- SOGo/UI/MailerContacts/mailercontacts.js | 2 +- SOGo/UI/MailerScheduler/ChangeLog | 3 + SOGo/UI/MailerScheduler/GNUmakefile | 32 ++++ .../MailerSchedulerUIProduct.m | 33 ++++ .../MailerScheduler/UIxMailCalWeekOverview.m | 40 +++++ .../UIxMailCalWeekOverview.wox | 141 ++++++++++++++++++ SOGo/UI/MailerScheduler/Version | 3 + SOGo/UI/MailerScheduler/common.h | 33 ++++ SOGo/UI/MailerScheduler/product.plist | 85 +++++++++++ 10 files changed, 373 insertions(+), 2 deletions(-) create mode 100644 SOGo/UI/MailerScheduler/ChangeLog create mode 100644 SOGo/UI/MailerScheduler/GNUmakefile create mode 100644 SOGo/UI/MailerScheduler/MailerSchedulerUIProduct.m create mode 100644 SOGo/UI/MailerScheduler/UIxMailCalWeekOverview.m create mode 100644 SOGo/UI/MailerScheduler/UIxMailCalWeekOverview.wox create mode 100644 SOGo/UI/MailerScheduler/Version create mode 100644 SOGo/UI/MailerScheduler/common.h create mode 100644 SOGo/UI/MailerScheduler/product.plist diff --git a/SOGo/UI/GNUmakefile b/SOGo/UI/GNUmakefile index c5afa11e..6e4c3422 100644 --- a/SOGo/UI/GNUmakefile +++ b/SOGo/UI/GNUmakefile @@ -12,6 +12,7 @@ SUBPROJECTS += \ # experimental SUBPROJECTS += \ - MailerContacts + MailerContacts \ + MailerScheduler include $(GNUSTEP_MAKEFILES)/aggregate.make diff --git a/SOGo/UI/MailerContacts/mailercontacts.js b/SOGo/UI/MailerContacts/mailercontacts.js index 730caf82..bb3a540c 100644 --- a/SOGo/UI/MailerContacts/mailercontacts.js +++ b/SOGo/UI/MailerContacts/mailercontacts.js @@ -24,7 +24,7 @@ function openContact(sender, addruid) { var w; w = window.open(addruid + "/tb.edit", 'SOGo_addr_' + addruid, - 'width=540,height=320,resizable=1,scrollbars=1,toolbar=0,' + + 'width=540,height=340,resizable=1,scrollbars=1,toolbar=0,' + 'location=0,directories=0,status=0,menubar=0,copyhistory=0'); w.focus(); return false; diff --git a/SOGo/UI/MailerScheduler/ChangeLog b/SOGo/UI/MailerScheduler/ChangeLog new file mode 100644 index 00000000..413c7c39 --- /dev/null +++ b/SOGo/UI/MailerScheduler/ChangeLog @@ -0,0 +1,3 @@ +2005-02-15 Helge Hess + + * created ChangeLog diff --git a/SOGo/UI/MailerScheduler/GNUmakefile b/SOGo/UI/MailerScheduler/GNUmakefile new file mode 100644 index 00000000..2967c8b0 --- /dev/null +++ b/SOGo/UI/MailerScheduler/GNUmakefile @@ -0,0 +1,32 @@ +# GNUstep makefile + +include ../common.make + +BUNDLE_NAME = MailerSchedulerUI + +MailerSchedulerUI_PRINCIPAL_CLASS = MailerSchedulerUIProduct + +MailerSchedulerUI_LANGUAGES = English French + +MailerSchedulerUI_OBJC_FILES += \ + MailerSchedulerUIProduct.m \ + \ + UIxMailCalWeekOverview.m \ + +MailerSchedulerUI_RESOURCE_FILES += \ + Version \ + product.plist \ + +MailerSchedulerUI_RESOURCE_FILES += \ + UIxMailCalWeekOverview.wox \ + +MailerSchedulerUI_RESOURCE_FILES += \ + +MailerSchedulerUI_LOCALIZED_RESOURCE_FILES += + +# make + +-include GNUmakefile.preamble +include $(GNUSTEP_MAKEFILES)/bundle.make +-include GNUmakefile.postamble +include ../../fhsbundle.make diff --git a/SOGo/UI/MailerScheduler/MailerSchedulerUIProduct.m b/SOGo/UI/MailerScheduler/MailerSchedulerUIProduct.m new file mode 100644 index 00000000..5fd430f5 --- /dev/null +++ b/SOGo/UI/MailerScheduler/MailerSchedulerUIProduct.m @@ -0,0 +1,33 @@ +/* + Copyright (C) 2005 SKYRIX Software AG + + This file is part of OpenGroupware.org. + + OGo is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + OGo is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with OGo; see the file COPYING. If not, write to the + Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. +*/ + +#import + +@interface MailerSchedulerUIProduct : NSObject +{ +} + +@end + +#include "common.h" + +@implementation MailerSchedulerUIProduct +@end /* MailerSchedulerUIProduct */ diff --git a/SOGo/UI/MailerScheduler/UIxMailCalWeekOverview.m b/SOGo/UI/MailerScheduler/UIxMailCalWeekOverview.m new file mode 100644 index 00000000..bab35e06 --- /dev/null +++ b/SOGo/UI/MailerScheduler/UIxMailCalWeekOverview.m @@ -0,0 +1,40 @@ +/* + Copyright (C) 2005 SKYRIX Software AG + + This file is part of OpenGroupware.org. + + OGo is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + OGo is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with OGo; see the file COPYING. If not, write to the + Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. +*/ + +#include + +@interface UIxMailCalWeekOverview : UIxCalWeekOverview +{ +} + +@end + +#include "common.h" + +@implementation UIxMailCalWeekOverview + +/* title */ + +- (NSString *)panelTitle { + return [self labelForKey:@"Week Overview"]; +} + +@end /* UIxMailCalWeekOverview */ diff --git a/SOGo/UI/MailerScheduler/UIxMailCalWeekOverview.wox b/SOGo/UI/MailerScheduler/UIxMailCalWeekOverview.wox new file mode 100644 index 00000000..b30a0ff2 --- /dev/null +++ b/SOGo/UI/MailerScheduler/UIxMailCalWeekOverview.wox @@ -0,0 +1,141 @@ + + + + + + + +
+ + + +
+ +
+ + +
+ +
+ + + + + + + + +
+ + + + + + + +
+ +
+
+ + + + + + + + +
+ + +
+ [] +
+
+ + + + + + + +
+
+
+
+ + +
+
+
+
+
diff --git a/SOGo/UI/MailerScheduler/Version b/SOGo/UI/MailerScheduler/Version new file mode 100644 index 00000000..81d0f5a4 --- /dev/null +++ b/SOGo/UI/MailerScheduler/Version @@ -0,0 +1,3 @@ +# version file + +SUBMINOR_VERSION:=3 diff --git a/SOGo/UI/MailerScheduler/common.h b/SOGo/UI/MailerScheduler/common.h new file mode 100644 index 00000000..801da9cc --- /dev/null +++ b/SOGo/UI/MailerScheduler/common.h @@ -0,0 +1,33 @@ +/* + Copyright (C) 2005 SKYRIX Software AG + + This file is part of OpenGroupware.org. + + OGo is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + OGo is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with OGo; see the file COPYING. If not, write to the + Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. +*/ + +#import + +#if LIB_FOUNDATION_LIBRARY +# include +#elif NeXT_Foundation_LIBRARY || COCOA_Foundation_LIBRARY +# include +# include +#endif + +#include +#include +#include diff --git a/SOGo/UI/MailerScheduler/product.plist b/SOGo/UI/MailerScheduler/product.plist new file mode 100644 index 00000000..8672c0dd --- /dev/null +++ b/SOGo/UI/MailerScheduler/product.plist @@ -0,0 +1,85 @@ +{ + requires = ( MAIN, CommonUI, Appointments, MailerUI, SchedulerUI ); + + publicResources = ( + ); + + factories = { + }; + + categories = { + SOGoAppointmentFolder = { + slots = { + toolbar = { + protectedBy = "View"; + value = ( /* the toolbar groups */ + ( /* first group */ + { + link = "#"; // no-op + cssClass = "tbicon_getmail"; label = "Get Mail"; + }, + { + link = "new"; + // onclick = "clickedCompose(this);return false;"; + cssClass = "tbicon_compose"; label = "New Event"; + }, +/* enable if we actually can do that + { link = "tb.compose"; target = "_blank"; + cssClass = "tbicon_compose"; label = "Write"; }, +*/ + ), + ( /* second group */ + { // TODO: does not consider query parameters! + // TODO: icon + link = "proposal"; target= "proposal"; + cssClass = "tbicon_forward"; label = "Proposal"; + }, + ), + ( /* third group */ + { // TODO: does not consider query parameters! + // TODO: icon + link = "weekprintview"; target= "SOGoPrintView"; + cssClass = "tbicon_print"; label = "Print"; + }, + ), + ); + }; + }; + methods = { + "tb.view" = { /* primary entry for mailer actions */ + protectedBy = "View"; + pageName = "UIxMailCalWeekOverview"; + }; + "tb.compose" = { + protectedBy = "View"; + actionClass = "UIxMailEditorAction"; + actionName = "compose"; + }; + }; + }; + + SOGoAppointmentObject = { + slots = { + toolbar = { + protectedBy = "View"; + value = ( /* the toolbar groups */ + ( /* first group */ + { link = "#"; + onclick = "clickedEditorSave(this);return false;"; + cssClass = "tbicon_save"; label = "Save"; }, + { link = "#"; + onclick = "clickedEditorDelete(this);return false;"; + cssClass = "tbicon_delete"; label = "Delete"; }, + ) + ); + }; + }; + methods = { + "tb.edit" = { + protectedBy = "View"; + pageName = "UIxMailEventEditor"; + }; + }; + }; + }; +} -- 2.39.5