Monotone-Parent: c1a2d381d8af27188d0704030b27985ca594d689

Monotone-Revision: 707164ec11dd27d07b717674cfe5eb52b0dad31b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-07-15T19:28:20
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-07-15 19:28:20 +00:00
parent ea65646b76
commit ba0e354bff
4 changed files with 32 additions and 14 deletions
+6
View File
@@ -1,3 +1,9 @@
2009-07-15 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Scheduler/UIxComponentEditor.m (-categoryList): insert the
category of the current component in the list, don't convert it
to upper case and sort the resulting list alphabetically.
2009-07-14 Francis Lachapelle <flachapelle@inverse.ca>
* UI/SOGoUI/UIxComponent.m ([UIxComponent -buildDate]): moved
-1
View File
@@ -110,7 +110,6 @@
- (NSArray *) categoryList;
- (void) setCategories: (NSArray *) _categories;
- (NSArray *) categories;
- (NSString *) itemCategoryText;
- (NSArray *) priorities;
- (void) setPriority: (NSString *) _priority;
+25 -12
View File
@@ -53,6 +53,7 @@
#import <SoObjects/Appointments/SOGoTaskObject.h>
#import <SoObjects/SOGo/iCalEntityObject+Utilities.h>
#import <SoObjects/SOGo/LDAPUserManager.h>
#import <SoObjects/SOGo/NSArray+Utilities.h>
#import <SoObjects/SOGo/NSDictionary+Utilities.h>
#import <SoObjects/SOGo/NSString+Utilities.h>
#import <SoObjects/SOGo/SOGoUser.h>
@@ -285,7 +286,7 @@ iRANGE(2);
{
simpleCategory = [[compCategories componentsSeparatedByString: @","]
objectAtIndex: 0];
ASSIGN (category, [simpleCategory uppercaseString]);
ASSIGN (category, simpleCategory);
}
}
@@ -538,8 +539,8 @@ iRANGE(2);
ASSIGN (privacy, [component accessClass]);
ASSIGN (priority, [component priority]);
ASSIGN (status, [component status]);
ASSIGN (categories,
[[component categories] componentsWithSafeSeparator: ',']);
ASSIGN (categories,
[[component categories] componentsWithSafeSeparator: ',']);
ASSIGN (organizer, [component organizer]);
[self _loadCategories];
[self _loadAttendees];
@@ -791,6 +792,9 @@ iRANGE(2);
- (NSArray *) categoryList
{
static NSArray *categoryItems = nil;
NSMutableArray *categoryList;
unsigned int count, max;
NSString *categoryItem, *newCategoryItem;
if (!categoryItems)
{
@@ -819,7 +823,22 @@ iRANGE(2);
[categoryItems retain];
}
return categoryItems;
max = [categoryItems count];
categoryList = [NSMutableArray arrayWithCapacity: max + 1];
for (count = 0; count < max; count++)
{
categoryItem = [categoryItems objectAtIndex: count];
newCategoryItem
= [self labelForKey: [NSString stringWithFormat: @"category_%@",
categoryItem]];
[categoryList addObject: newCategoryItem];
}
if ([categories count])
[categoryList addObjectsFromArray: categories];
return [[categoryList uniqueObjects]
sortedArrayUsingSelector: @selector (localizedCaseInsensitiveCompare:)];
}
- (void) setCategories: (NSArray *) _categories
@@ -832,7 +851,7 @@ iRANGE(2);
return categories;
}
- (void) setCategory: (NSArray *) newCategory
- (void) setCategory: (NSString *) newCategory
{
ASSIGN (category, newCategory);
}
@@ -842,12 +861,6 @@ iRANGE(2);
return category;
}
- (NSString *) itemCategoryText
{
return [self labelForKey:
[NSString stringWithFormat: @"category_%@", item]];
}
- (NSArray *) repeatList
{
static NSArray *repeatItems = nil;
@@ -1713,7 +1726,7 @@ RANGE(2);
[component setComment: comment];
[component setAttach: attachUrl];
[component setAccessClass: privacy];
[component setCategories: [category capitalizedString]];
[component setCategories: category];
[self _handleAttendeesEdition];
[self _handleOrganizer];
clientObject = [self clientObject];
@@ -43,7 +43,7 @@
<span class="checkBoxList"><var:string label:value="Category:" />
<span class="content"><var:popup list="categoryList" item="item"
label:noSelectionString="category_NONE"
string="itemCategoryText" selection="category"
string="item" selection="category"
/> <var:string label:value="Calendar:" />
<var:popup const:id="calendarList"
var:disabled="isChildOccurence"