mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-09 21:45:26 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
NSString *priority;
|
||||
NSString *privacy;
|
||||
NSString *status;
|
||||
NSString *category;
|
||||
NSArray *categories;
|
||||
NSDictionary *cycle;
|
||||
NSString *cycleEnd;
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user