Initial recurrence editor for appointments

This commit is contained in:
Francis Lachapelle
2015-05-20 11:11:01 -04:00
parent 7e96f37809
commit dc91be3c0d
13 changed files with 330 additions and 245 deletions
-67
View File
@@ -242,59 +242,6 @@ static NSArray *reminderValues = nil;
// return [comment stringByReplacingString: @"\n" withString: @"\r\n"];
//}
// TODO: Expose this method to the JSON API or centralize in UIxPreferences
- (NSArray *) categoryList
{
NSMutableArray *categoryList;
NSArray *categoryLabels;
SOGoUserDefaults *defaults;
defaults = [[context activeUser] userDefaults];
categoryLabels = [defaults calendarCategories];
if (!categoryLabels)
categoryLabels = [[self labelForKey: @"category_labels"]
componentsSeparatedByString: @","];
categoryList = [NSMutableArray arrayWithCapacity: [categoryLabels count] + 1];
[categoryList addObjectsFromArray:
[categoryLabels sortedArrayUsingSelector:
@selector (localizedCaseInsensitiveCompare:)]];
return categoryList;
}
//- (NSArray *) repeatList
//{
// static NSArray *repeatItems = nil;
//
// if (!repeatItems)
// {
// repeatItems = [NSArray arrayWithObjects: @"DAILY",
// @"WEEKLY",
// @"BI-WEEKLY",
// @"EVERY WEEKDAY",
// @"MONTHLY",
// @"YEARLY",
// @"-",
// @"CUSTOM",
// nil];
// [repeatItems retain];
// }
//
// return repeatItems;
//}
//- (NSString *) repeatLabel
//{
// NSString *rc;
//
// if ([self repeat])
// rc = [self labelForKey: [NSString stringWithFormat: @"repeat_%@", [self repeat]]];
// else
// rc = [self labelForKey: @"repeat_NEVER"];
//
// return rc;
//}
//- (NSString *) reminder
//{
// if ([[self clientObject] isNew])
@@ -394,20 +341,6 @@ static NSArray *reminderValues = nil;
// return priorities;
//}
//- (NSArray *) classificationClasses
//{
// static NSArray *classes = nil;
//
// if (!classes)
// {
// classes = [NSArray arrayWithObjects: @"PUBLIC",
// @"CONFIDENTIAL", @"PRIVATE", nil];
// [classes retain];
// }
//
// return classes;
//}
/* helpers */
//- (BOOL) isWriteableClientObject