Events list is done.

This commit is contained in:
Alexandre Cloutier
2014-04-17 17:33:30 -04:00
parent 8f6b0f80a7
commit 57b747c24a
6 changed files with 406 additions and 93 deletions
@@ -145,6 +145,29 @@
"Hide already accepted and rejected appointments" = "Hide already accepted and rejected appointments";
"Show already accepted and rejected appointments" = "Show already accepted and rejected appointments";
/* Print view */
"LIST" = "List";
"WEEK" = "Weekly";
"MONTH" = "Monthly";
"Print Settings" = "Print Settings";
"Title:" = "Title:";
"Layout:" = "Layout:";
"What to Print" = "What to Print";
"Events" = "Events";
"Tasks" = "Tasks";
"Current view" = "Current view";
"Selected events and tasks" = "Selected events and tasks";
"Custom date range" = "Custom date range";
"From:" = "From:";
"To:" = "To:";
"Options" = "Options";
"Locale" = "Locale";
"GMT" = "GMT";
"Tasks with no due date" = "Tasks with no due date";
"Completed tasks" = "Completed tasks";
"Display time:" = "Display time:";
/* Appointments */
+4 -4
View File
@@ -1,8 +1,8 @@
/* UIxCalView.h - this file is part of SOGo
*
* Copyright (C) 2006-2009 Inverse inc.
* Copyright (C) 2006-2014 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Author: Alexandre Cloutier <acloutier@inverse.ca>
*
* 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
@@ -20,11 +20,11 @@
* Boston, MA 02111-1307, USA.
*/
#import <SOGoUI/UIxComponent.h>
#include <SOGoUI/UIxComponent.h>
@interface UIxCalViewPrint : UIxComponent
{
id item;
}
@end
+56 -4
View File
@@ -1,8 +1,8 @@
/* UIxCalView.m - this file is part of SOGo
*
* Copyright (C) 2006-2009 Inverse inc.
* Copyright (C) 2006-2014 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Author: Alexandre Cloutier <acloutier@inverse.ca>
*
* 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
@@ -21,11 +21,63 @@
*/
#import <Foundation/NSString.h>
#import "UIxCalViewPrint.h"
#import <Foundation/NSArray.h>
#import <UIxCalViewPrint.h>
static NSArray *layoutItems = nil;
@implementation UIxCalViewPrint
+ (void) initialize
{
if (!layoutItems)
{
layoutItems = [NSArray arrayWithObjects: @"LIST", @"WEEK", @"MONTH", nil];
[layoutItems retain];
}
}
- (id) init
{
item = nil;
return [super init];
}
- (void) dealloc
{
[item release];
[super dealloc];
}
/****************************************************************/
/* Interfacing; populating the popup list for the print layouts */
- (void) setItem: (NSString *) newItem
{
ASSIGN (item, newItem);
}
- (NSString *) item
{
return item;
}
- (NSArray *) printLayoutList
{
return layoutItems;
}
- (NSString *) itemPrintLayoutText
{
return [self labelForKey: [NSString stringWithFormat: item]];
}
- (NSString *) layoutSelectedByUser
{
return nil;
}
/******************************************************************/
/* */
@end