New UIxTaskEditorTemplate class

This commit is contained in:
Francis Lachapelle
2015-06-29 21:03:52 -04:00
parent 647f052486
commit 06cb06fce6

View File

@@ -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