From e026b756de76320c018e67c88910e6ad11dfb490 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Fri, 13 Apr 2007 15:03:37 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1048 d1b88da0-ebda-0310-925b-ed51d893ca5b --- .../Toolbars/SOGoComponentClose.toolbar | 7 + UI/Scheduler/Toolbars/SOGoTaskObject.toolbar | 15 ++ UI/Scheduler/UIxAttendeesEditor.h | 44 +++++ UI/Scheduler/UIxAttendeesEditor.m | 79 +++++++++ .../SchedulerUI/UIxAttendeesEditor.wox | 102 ++++++++++++ .../SchedulerUI/UIxCalendarSelector.wox | 38 +++++ .../SchedulerUI/UIxComponentEditor.wox | 78 +++++++++ UI/WebServerResources/UIxComponentEditor.js | 157 ++++++++++++++++++ UI/WebServerResources/arrow-dwn-sharp.gif | Bin 0 -> 52 bytes UI/WebServerResources/remove-calendar.png | Bin 0 -> 969 bytes 10 files changed, 520 insertions(+) create mode 100644 UI/Scheduler/Toolbars/SOGoComponentClose.toolbar create mode 100644 UI/Scheduler/Toolbars/SOGoTaskObject.toolbar create mode 100644 UI/Scheduler/UIxAttendeesEditor.h create mode 100644 UI/Scheduler/UIxAttendeesEditor.m create mode 100644 UI/Templates/SchedulerUI/UIxAttendeesEditor.wox create mode 100644 UI/Templates/SchedulerUI/UIxCalendarSelector.wox create mode 100644 UI/Templates/SchedulerUI/UIxComponentEditor.wox create mode 100644 UI/WebServerResources/UIxComponentEditor.js create mode 100644 UI/WebServerResources/arrow-dwn-sharp.gif create mode 100644 UI/WebServerResources/remove-calendar.png diff --git a/UI/Scheduler/Toolbars/SOGoComponentClose.toolbar b/UI/Scheduler/Toolbars/SOGoComponentClose.toolbar new file mode 100644 index 00000000..571e1f6a --- /dev/null +++ b/UI/Scheduler/Toolbars/SOGoComponentClose.toolbar @@ -0,0 +1,7 @@ +( /* the toolbar groups -*-cperl-*- */ + ( { link = "#"; + isSafe = NO; + label = "Close"; + onclick = "window.close(); return false;"; + image = "tb-mail-stop-flat-24x24.png"; } ) +) diff --git a/UI/Scheduler/Toolbars/SOGoTaskObject.toolbar b/UI/Scheduler/Toolbars/SOGoTaskObject.toolbar new file mode 100644 index 00000000..2ad120e2 --- /dev/null +++ b/UI/Scheduler/Toolbars/SOGoTaskObject.toolbar @@ -0,0 +1,15 @@ +( /* the toolbar groups -*-cperl-*- */ + ( { link = "#"; + label = "Save and Close"; + onclick = "return saveEvent();"; + image = "tb-compose-save-flat-24x24.png"; }, + { link = "#"; + hasMenu = YES; + label = "Privacy"; + onclick = "return onSelectPrivacy(event);"; + image = "tb-compose-security-flat-24x24.png"; }, + { link = "#"; + label = "Documents"; + onclick = "return onPopupUrlWindow();"; + image = "tb-compose-attach-flat-24x24.png"; } ) +) diff --git a/UI/Scheduler/UIxAttendeesEditor.h b/UI/Scheduler/UIxAttendeesEditor.h new file mode 100644 index 00000000..ad556e5c --- /dev/null +++ b/UI/Scheduler/UIxAttendeesEditor.h @@ -0,0 +1,44 @@ +/* UIxAttendeesEditor.h - this file is part of SOGo + * + * Copyright (C) 2007 Inverse groupe conseil + * + * Author: Wolfgang Sourdeau + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This file 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef UIXATTENDEESEDITOR_H +#define UIXATTENDEESEDITOR_H + +#import + +@interface UIxAttendeesEditor : UIxComponent +{ + NSString *item; +// NSString *zoom; +} + +- (void) setItem: (NSString *) newItem; +- (NSString *) item; + +- (NSArray *) zoomList; +- (void) setZoom: (NSString *) zoom; +- (NSString *) zoom; +- (NSString *) itemZoomText; + +@end + +#endif /* UIXATTENDEESEDITOR_H */ diff --git a/UI/Scheduler/UIxAttendeesEditor.m b/UI/Scheduler/UIxAttendeesEditor.m new file mode 100644 index 00000000..b8b0c0eb --- /dev/null +++ b/UI/Scheduler/UIxAttendeesEditor.m @@ -0,0 +1,79 @@ +/* UIxAttendeesEditor.m - this file is part of SOGo + * + * Copyright (C) 2007 Inverse groupe conseil + * + * Author: Wolfgang Sourdeau + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This file 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#import +#import + +#import + +#import "UIxAttendeesEditor.h" + +@implementation UIxAttendeesEditor + +- (id) defaultAction +{ + [[self parent] setToolbar: @""]; + + return self; +} + +- (void) setItem: (NSString *) newItem +{ + item = newItem; +} + +- (NSString *) item +{ + return item; +} + +- (NSArray *) zoomList +{ + static NSArray *zoomItems = nil; + + if (!zoomItems) + { + zoomItems = [NSArray arrayWithObjects: @"400", @"200", @"100", + @"50", @"25", nil]; + [zoomItems retain]; + } + + return zoomItems; +} + +- (void) setZoom: (NSString *) zoom +{ +// ASSIGN (zoom, _zoom); +} + +- (NSString *) zoom +{ + return @"100"; +// return zoom; +} + +- (NSString *) itemZoomText +{ + return [self labelForKey: [NSString stringWithFormat: @"zoom_%@", item]]; +} + +@end diff --git a/UI/Templates/SchedulerUI/UIxAttendeesEditor.wox b/UI/Templates/SchedulerUI/UIxAttendeesEditor.wox new file mode 100644 index 00000000..1a37f96c --- /dev/null +++ b/UI/Templates/SchedulerUI/UIxAttendeesEditor.wox @@ -0,0 +1,102 @@ + + + + +
+
+ + + +
+
+ + + + +
+
+ + + + + + + + + + + +
+
+
+
+
    +
  • +
  • +
  • +
  • +
+
+
+ + +
+
+
+
+
+
+
+ + +
+
+
+
diff --git a/UI/Templates/SchedulerUI/UIxCalendarSelector.wox b/UI/Templates/SchedulerUI/UIxCalendarSelector.wox new file mode 100644 index 00000000..bee2ff03 --- /dev/null +++ b/UI/Templates/SchedulerUI/UIxCalendarSelector.wox @@ -0,0 +1,38 @@ + + + + +
+ + + + +
    +
  • + +
    OO
    +
  • +
    +
+
+
diff --git a/UI/Templates/SchedulerUI/UIxComponentEditor.wox b/UI/Templates/SchedulerUI/UIxComponentEditor.wox new file mode 100644 index 00000000..48cb8e08 --- /dev/null +++ b/UI/Templates/SchedulerUI/UIxComponentEditor.wox @@ -0,0 +1,78 @@ + + + + + + + + +
+
+ + + + + + +
+ +
+