From 430148b03d114b14b29c37ec7365f529a247390f Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 19 Mar 2007 16:29:56 +0000 Subject: [PATCH] Monotone-Parent: 3277aed6fc1e761bd25bbf3332a975e5500e125f Monotone-Revision: 3121e378956ebadfdbfc6b500b07f43b459eb0dc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-19T16:29:56 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 ++ .../English.lproj/Localizable.strings | 6 +++ UI/Scheduler/French.lproj/Localizable.strings | 6 +++ UI/Scheduler/UIxAttendeesEditor.h | 12 ++++++ UI/Scheduler/UIxAttendeesEditor.m | 40 +++++++++++++++++++ .../SchedulerUI/UIxAttendeesEditor.wox | 18 +++++++-- UI/WebServerResources/UIxAttendeesEditor.css | 27 +++++++++++-- UI/WebServerResources/UIxAttendeesEditor.js | 10 +++++ 8 files changed, 114 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index b4c1e0b1e..54360bd72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-03-19 Wolfgang Sourdeau + * UI/Scheduler/UIxAttendeesEditor.m ([UIxAttendeesEditor + -zoomList]): new method that returns the list of available zoom factors. + * UI/Scheduler/UIxTaskEditor.m ([UIxTaskEditor -changeStatusAction]): rewrote method. diff --git a/UI/Scheduler/English.lproj/Localizable.strings b/UI/Scheduler/English.lproj/Localizable.strings index 047259cd3..2a97ad70b 100644 --- a/UI/Scheduler/English.lproj/Localizable.strings +++ b/UI/Scheduler/English.lproj/Localizable.strings @@ -299,6 +299,12 @@ "reminder_1_WEEK_BEFORE" = "1 week before"; "reminder_CUSTOM" = "Custom..."; +"zoom_400" = "400%"; +"zoom_200" = "200%"; +"zoom_100" = "100%"; +"zoom_50" = "50%"; +"zoom_25" = "25%"; + /* validation errors */ validate_notitle = "No title is set, continue?"; diff --git a/UI/Scheduler/French.lproj/Localizable.strings b/UI/Scheduler/French.lproj/Localizable.strings index 4663adb8d..187fef43d 100644 --- a/UI/Scheduler/French.lproj/Localizable.strings +++ b/UI/Scheduler/French.lproj/Localizable.strings @@ -300,6 +300,12 @@ "reminder_1_WEEK_BEFORE" = "1 semaine avant"; "reminder_CUSTOM" = "Personnaliser..."; +"zoom_400" = "400%"; +"zoom_200" = "200%"; +"zoom_100" = "100%"; +"zoom_50" = "50%"; +"zoom_25" = "25%"; + /* validation errors */ validate_notitle = "Le titre n'est pas rempli. Continuer quand-même ?"; diff --git a/UI/Scheduler/UIxAttendeesEditor.h b/UI/Scheduler/UIxAttendeesEditor.h index dc58eedab..ad556e5ce 100644 --- a/UI/Scheduler/UIxAttendeesEditor.h +++ b/UI/Scheduler/UIxAttendeesEditor.h @@ -26,6 +26,18 @@ #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 diff --git a/UI/Scheduler/UIxAttendeesEditor.m b/UI/Scheduler/UIxAttendeesEditor.m index 103cb1201..0191c921a 100644 --- a/UI/Scheduler/UIxAttendeesEditor.m +++ b/UI/Scheduler/UIxAttendeesEditor.m @@ -34,4 +34,44 @@ 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 index 62a89147b..1a37f96c4 100644 --- a/UI/Templates/SchedulerUI/UIxAttendeesEditor.wox +++ b/UI/Templates/SchedulerUI/UIxAttendeesEditor.wox @@ -12,6 +12,20 @@ const:popup="YES">
+
+ + + +
+
+ + + + +
- -