Monotone-Parent: c8ffc75afc6375fd954ab207e9dbdef8b4793876

Monotone-Revision: a84c20b7d29bf952df6062daa2f86929f733e1f5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-08-21T16:01:28
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-08-21 16:01:28 +00:00
parent 8bf367ea4c
commit 3823368fba
3 changed files with 32 additions and 0 deletions
+6
View File
@@ -1,5 +1,11 @@
2007-08-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
-takeValuesFromRequest:_rqinContext:_ctx]): save the category
selected in the dialog.
([UIxComponentEditor -setComponent:newComponent]): retrieve the
first category, if ever, of the calendar entity.
* UI/MailerUI/UIxMailMainFrame.m ([UIxMailMainFrame
-composeAction]): restored method since it is needed by the
address book.
+1
View File
@@ -51,6 +51,7 @@
NSString *priority;
NSString *privacy;
NSString *status;
NSString *category;
NSArray *categories;
NSDictionary *cycle;
NSString *cycleEnd;
+25
View File
@@ -121,6 +121,19 @@
[emails release];
}
- (void) _loadCategories
{
NSString *compCategories, *simpleCategory;
compCategories = [component categories];
if ([compCategories length] > 0)
{
simpleCategory = [[compCategories componentsSeparatedByString: @","]
objectAtIndex: 0];
ASSIGN (category, [simpleCategory uppercaseString]);
}
}
/* warning: we use this method which will be triggered by the template system
when the page is instantiated, but we should find another and cleaner way of
doing this... for example, when the clientObject is set */
@@ -145,6 +158,7 @@
ASSIGN (status, [component status]);
ASSIGN (categories, [[component categories] commaSeparatedValues]);
ASSIGN (organizer, [component organizer]);
[self _loadCategories];
[self _loadAttendees];
}
// /* cycles */
@@ -300,6 +314,16 @@
return categories;
}
- (void) setCategory: (NSArray *) newCategory
{
ASSIGN (category, newCategory);
}
- (NSString *) category
{
return category;
}
- (NSString *) itemCategoryText
{
return [self labelForKey:
@@ -822,6 +846,7 @@
[component setComment: comment];
[component setUrl: url];
[component setAccessClass: privacy];
[component setCategories: [category capitalizedString]];
[self _handleAttendeesEdition];
[self _handleOrganizer];
clientObject = [self clientObject];