Monotone-Parent: 731a7f62eb98a27ed958a12f2f7a86567832ee16

Monotone-Revision: 3f3b43eebeb6af62782d4d959c2a06ffd214563e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-13T23:26:27
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-13 23:26:27 +00:00
parent 14ed69d6ed
commit 6f49195651
3 changed files with 46 additions and 0 deletions
+5
View File
@@ -1,5 +1,10 @@
2006-10-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Contacts/UIxContactSelector.m ([UIxContactSelector -setCheckedBoxes:boxes])
([UIxContactSelector -setHasCheckBoxes:aBool])
([UIxContactSelector -isCheckBoxChecked]): new accessors method to
permit the drawing of checkboxes instead of card icons.
* UI/Scheduler/UIxCalCalendarsListView.m: new component class that
wrap a selector the the "Calendars" tab.
+9
View File
@@ -30,9 +30,18 @@
NSString *callback;
NSArray *contacts;
NSArray *checkedBoxes;
iCalPerson *currentContact;
BOOL hasCheckBoxes;
NSString *checkBoxOnChange;
}
- (void) setHasCheckBoxes: (BOOL) aBool;
- (BOOL) hasCheckBoxes;
- (void) setCheckBoxOnChange: (NSString *) aString;
- (NSString *) checkBoxOnChange;
- (void)setTitle:(NSString *)_title;
- (NSString *)title;
- (void)setWindowId:(NSString *)_winId;
+32
View File
@@ -37,6 +37,7 @@
[self setTitle:@"UIxContacts"];
[self setWindowId:@"UIxContacts"];
[self setCallback:@"undefined"];
checkedBoxes = nil;
}
return self;
}
@@ -199,4 +200,35 @@
return [currentContact cn];
}
- (void) setCheckedBoxes: (NSArray *) boxes
{
checkedBoxes = boxes;
}
- (void) setHasCheckBoxes: (BOOL) aBool
{
hasCheckBoxes = aBool;
}
- (BOOL) hasCheckBoxes
{
return hasCheckBoxes;
}
- (BOOL) isCheckBoxChecked
{
return (checkedBoxes != nil
&& [checkedBoxes containsObject: currentContact]);
}
- (void) setCheckBoxOnChange: (NSString *) aString
{
checkBoxOnChange = aString;
}
- (NSString *) checkBoxOnChange
{
return checkBoxOnChange;
}
@end /* UIxContactSelector */