From cb5e6e7ef26f3b400968a3f1b9738b1e5fd285ed Mon Sep 17 00:00:00 2001 From: Alexandre Cloutier Date: Thu, 3 Apr 2014 16:47:02 -0400 Subject: [PATCH] adding button print calendar toolbar, adding template for the print window, ajusting indentation --- UI/Common/UIxToolbar.m | 4 +- .../Toolbars/SOGoAppointmentFolders.toolbar | 6 + UI/Templates/SchedulerUI/UIxCalViewPrint.wox | 109 ++++++ UI/Templates/UIxPageFrame.wox | 320 ++++++++---------- UI/Templates/UIxToolbar.wox | 63 ++-- 5 files changed, 284 insertions(+), 218 deletions(-) create mode 100644 UI/Templates/SchedulerUI/UIxCalViewPrint.wox diff --git a/UI/Common/UIxToolbar.m b/UI/Common/UIxToolbar.m index c9cc5d866..b4376b311 100644 --- a/UI/Common/UIxToolbar.m +++ b/UI/Common/UIxToolbar.m @@ -35,7 +35,7 @@ { NSArray *toolbarConfig; NSArray *toolbarGroup; - NSString *toolbar; + NSString *toolbar; NSDictionary *buttonInfo; } @@ -60,7 +60,7 @@ [toolbarGroup release]; [toolbarConfig release]; [buttonInfo release]; - [toolbar release]; + [toolbar release]; [super dealloc]; } diff --git a/UI/Scheduler/Toolbars/SOGoAppointmentFolders.toolbar b/UI/Scheduler/Toolbars/SOGoAppointmentFolders.toolbar index 8091a7053..8801d1571 100644 --- a/UI/Scheduler/Toolbars/SOGoAppointmentFolders.toolbar +++ b/UI/Scheduler/Toolbars/SOGoAppointmentFolders.toolbar @@ -37,6 +37,12 @@ onclick = "return onMonthOverview();"; image = "month-view.png"; tooltip = "Switch to month view"; } ), + ( { link = "#"; + onclick = ""; + cssClass = "tbicon_print single-window-not-conditional"; + image = "tb-mail-print-flat-24x24.png"; + label = "Print View"; + tooltip = "Print the current calendar view"; } ), ( { link = "#"; label="Delete"; onclick = "return deleteEvent(this);"; diff --git a/UI/Templates/SchedulerUI/UIxCalViewPrint.wox b/UI/Templates/SchedulerUI/UIxCalViewPrint.wox new file mode 100644 index 000000000..5b0e8417a --- /dev/null +++ b/UI/Templates/SchedulerUI/UIxCalViewPrint.wox @@ -0,0 +1,109 @@ + + + + +
+ + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + +
+ +
+
+
+
+
+
+ + + + + + + + + +
+
+
+ + +
+ + + + + + + +
+
+ diff --git a/UI/Templates/UIxPageFrame.wox b/UI/Templates/UIxPageFrame.wox index 9095bf27f..dab148743 100644 --- a/UI/Templates/UIxPageFrame.wox +++ b/UI/Templates/UIxPageFrame.wox @@ -6,195 +6,155 @@ xmlns:var="http://www.skyrix.com/od/binding" xmlns:const="http://www.skyrix.com/od/constant" xmlns:rsrc="OGo:url" - xmlns:label="OGo:label" - > - + xmlns:label="OGo:label"> + + + + + - - <var:string value="title"/> - - - - - - - - - - - - - - - + + <var:string value="title"/> + + + + + + + + + + + + + + + + + - + - - + + + + + + + + +
+ var UserSettings = ;
+ +
+ + + +
+ +
- - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- - - - + +
+
+ + + + - - - - - - - - - - - - - - - - -
- - + + + + + + + + + + + + + + + + + +
+ + + +
- - - + diff --git a/UI/Templates/UIxToolbar.wox b/UI/Templates/UIxToolbar.wox index 04efd3d0f..fa4144dd4 100644 --- a/UI/Templates/UIxToolbar.wox +++ b/UI/Templates/UIxToolbar.wox @@ -7,45 +7,36 @@ xmlns:label="OGo:label" xmlns:so="http://www.skyrix.com/od/so-lookup">
- + + +
-
+
- -
- + var:alt="buttonTooltip"/> + +
+ + + + +
+ +
+ + + + + +