mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-14 01:38:51 +00:00
New UIxTaskEditorTemplate class
This commit is contained in:
@@ -329,13 +329,23 @@
|
||||
|
||||
@end
|
||||
|
||||
@interface UIxAppointmentEditorTemplate : UIxComponent
|
||||
@interface UIxComponentEditorTemplate : UIxComponent
|
||||
{
|
||||
id item;
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation UIxAppointmentEditorTemplate
|
||||
@implementation UIxComponentEditorTemplate
|
||||
|
||||
- (id) init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
item = nil;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
@@ -377,3 +387,39 @@
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface UIxAppointmentEditorTemplate : UIxComponentEditorTemplate
|
||||
@end
|
||||
|
||||
@implementation UIxAppointmentEditorTemplate
|
||||
@end
|
||||
|
||||
@interface UIxTaskEditorTemplate : UIxComponentEditorTemplate
|
||||
@end
|
||||
|
||||
@implementation UIxTaskEditorTemplate
|
||||
|
||||
- (NSArray *) statusList
|
||||
{
|
||||
static NSArray *statusItems = nil;
|
||||
|
||||
if (!statusItems)
|
||||
{
|
||||
statusItems = [NSArray arrayWithObjects: @"not-specified",
|
||||
@"needs-action",
|
||||
@"in-process",
|
||||
@"completed",
|
||||
@"cancelled",
|
||||
nil];
|
||||
[statusItems retain];
|
||||
}
|
||||
|
||||
return statusItems;
|
||||
}
|
||||
|
||||
- (NSString *) itemStatusText
|
||||
{
|
||||
return [self labelForKey: [NSString stringWithFormat: @"status_%@", [item uppercaseString]]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user