mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 23:12:40 +00:00
Monotone-Parent: 773965cc12e1e34ce72a11b7b25f3ff6e0dc7887
Monotone-Revision: c0da933d3e86c470a7d83491a010f1ba6edc3fcd Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-03-25T19:59:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
faff3ed110
commit
a62cd61e0d
26 files changed
+547
-492
No files matched your search
@@ -108,6 +108,8 @@
|
||||
"Name of the Address Book" = "Name of the Address Book";
|
||||
"Are you sure you want to delete the selected address book?"
|
||||
= "Are you sure you want to delete the selected address book?";
|
||||
"You cannot delete the selected contact(s)"
|
||||
= "You cannot delete the selected contact(s).";
|
||||
|
||||
"Address Book Name" = "Address Book Name";
|
||||
|
||||
|
||||
@@ -121,7 +121,8 @@
|
||||
"Name of the Address Book" = "Nom du carnet d'adresses";
|
||||
"Are you sure you want to delete the selected address book?"
|
||||
= "Voulez-vous vraiment supprimer le carnet d'adresses sélectionné ?";
|
||||
|
||||
"You cannot delete the selected contact(s)"
|
||||
= "Vous ne pouvez pas supprimer les contacts sélectionnés.";
|
||||
"Address Book Name" = "Nom du carnet d'adresses";
|
||||
|
||||
"You cannot subscribe to a folder that you own!"
|
||||
|
||||
@@ -112,6 +112,8 @@
|
||||
"Name of the Address Book" = "Adressbuch-Name";
|
||||
"Are you sure you want to delete the selected address book?"
|
||||
= "Wollen Sie wirklich das ausgewählte Adressbuch löschen?";
|
||||
"You cannot delete the selected contact(s)"
|
||||
= "Ausgewählte Karten können nicht gelöscht werden.";
|
||||
|
||||
"Address Book Name" = "Adressbuch Name";
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
NSMutableDictionary *moduleSettings;
|
||||
}
|
||||
|
||||
- (WOResponse *) getDragHandlesStateAction;
|
||||
- (WOResponse *) saveDragHandleStateAction;
|
||||
|
||||
@end
|
||||
|
||||
@@ -269,24 +269,6 @@
|
||||
// ? contactFolder : nil);
|
||||
// }
|
||||
|
||||
- (WOResponse *) getDragHandlesStateAction
|
||||
{
|
||||
NSArray *dragHandles;
|
||||
NSString *vertical, *horizontal;
|
||||
|
||||
[self _setupContext];
|
||||
|
||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||
dragHandles = [[NSArray alloc] initWithObjects:
|
||||
vertical ? vertical : @"",
|
||||
horizontal ? horizontal : @"",
|
||||
nil];
|
||||
|
||||
return [self responseWithStatus: 200
|
||||
andString: [dragHandles jsonRepresentation]];
|
||||
}
|
||||
|
||||
- (WOResponse *) saveDragHandleStateAction
|
||||
{
|
||||
WORequest *request;
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
{
|
||||
NSString *selectorComponentClass;
|
||||
id currentFolder;
|
||||
NSUserDefaults *ud;
|
||||
NSMutableDictionary *moduleSettings;
|
||||
}
|
||||
|
||||
- (void) setCurrentFolder: (id) folder;
|
||||
@@ -43,6 +45,10 @@
|
||||
- (NSString *) currentContactFolderOwner;
|
||||
- (NSString *) currentContactFolderName;
|
||||
|
||||
- (NSString *) verticalDragHandleStyle;
|
||||
- (NSString *) horizontalDragHandleStyle;
|
||||
- (NSString *) contactsListContentStyle;
|
||||
|
||||
@end
|
||||
|
||||
#endif /* UIXCONTACTSLISTVIEWCONTAINERBASE_H */
|
||||
@@ -37,6 +37,27 @@
|
||||
|
||||
@implementation UIxContactsListViewContainer
|
||||
|
||||
- (void) _setupContext
|
||||
{
|
||||
SOGoUser *activeUser;
|
||||
NSString *module;
|
||||
SOGoContactFolders *clientObject;
|
||||
|
||||
activeUser = [context activeUser];
|
||||
clientObject = [[self clientObject] container];
|
||||
|
||||
module = [clientObject nameInContainer];
|
||||
|
||||
ud = [activeUser userSettings];
|
||||
moduleSettings = [ud objectForKey: module];
|
||||
if (!moduleSettings)
|
||||
{
|
||||
moduleSettings = [NSMutableDictionary new];
|
||||
[moduleSettings autorelease];
|
||||
}
|
||||
[ud setObject: moduleSettings forKey: module];
|
||||
}
|
||||
|
||||
- (id) init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
@@ -120,4 +141,34 @@
|
||||
return [[self queryParameterForKey: @"popup"] boolValue];
|
||||
}
|
||||
|
||||
- (NSString *) verticalDragHandleStyle
|
||||
{
|
||||
NSString *vertical;
|
||||
|
||||
[self _setupContext];
|
||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return (vertical ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) horizontalDragHandleStyle
|
||||
{
|
||||
NSString *horizontal;
|
||||
|
||||
[self _setupContext];
|
||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||
|
||||
return (horizontal ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) contactsListContentStyle
|
||||
{
|
||||
int height;
|
||||
|
||||
[self _setupContext];
|
||||
height = [[moduleSettings objectForKey: @"DragHandleVertical"] intValue];
|
||||
|
||||
return (height ? [NSString stringWithFormat: @"%ipx", (height - 27)] : nil);
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -50,11 +50,6 @@
|
||||
protectedBy = "View";
|
||||
pageName = "UIxContactsUserFolders";
|
||||
};
|
||||
dragHandlesState = {
|
||||
protectedBy = "<public>";
|
||||
pageName = "UIxContactFoldersView";
|
||||
actionName = "getDragHandlesState";
|
||||
};
|
||||
saveDragHandleState = {
|
||||
protectedBy = "View";
|
||||
pageName = "UIxContactFoldersView";
|
||||
|
||||
Reference in new issue
Block a user