Monotone-Parent: aa33c6954faa657b2d62640f492737b1dba8bd00

Monotone-Revision: ed1f9d054bf58150b30e9e4dbbffa4b09113c4e6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-16T18:45:23
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-16 18:45:23 +00:00
parent cda7d5af16
commit 17aa35440e
3 changed files with 28 additions and 0 deletions
+4
View File
@@ -1,5 +1,9 @@
2006-10-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Contacts/UIxContactSelector.m ([UIxContactSelector
-setColors:colors]): new method to associate a color table with
each user in the list.
* SoObjects/Appointments/SOGoAppointmentFolder.m
([SOGoAppointmentFolder
-fetchFields:_fieldsfromFolder:_folderfrom:_startDateto:_endDatecomponent:_component]): associate each returned record with the owner of the table they are retrieved from.
+7
View File
@@ -22,6 +22,11 @@
#ifndef UIXCONTACTSELECTOR_H
#define UIXCONTACTSELECTOR_H
@class NSArray;
@class NSDictionary;
@class NSString;
@class iCalPerson;
@interface UIxContactSelector : UIxComponent
{
NSString *title;
@@ -35,6 +40,8 @@
BOOL hasCheckBoxes;
NSString *checkBoxOnChange;
NSDictionary *userColors;
}
- (void) setHasCheckBoxes: (BOOL) aBool;
+17
View File
@@ -38,6 +38,7 @@
[self setWindowId:@"UIxContacts"];
[self setCallback:@"undefined"];
checkedBoxes = nil;
userColors = nil;
}
return self;
}
@@ -231,4 +232,20 @@
return checkBoxOnChange;
}
- (void) setColors: (NSDictionary *) colors
{
userColors = colors;
}
- (BOOL) hasColors
{
return (userColors != nil);
}
- (NSString *) currentContactStyle
{
return [NSString stringWithFormat: @"background-color: %@;",
[userColors objectForKey: [currentContact cn]]];
}
@end /* UIxContactSelector */