mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user