From d3966c8e5704fd8bb6672b9b9e11de85e644de1a Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Sun, 22 Jul 2007 20:17:34 +0000 Subject: [PATCH] Monotone-Parent: c61109eb28c9671d365c0b308b3db5532b7b6d96 Monotone-Revision: 18c6beb6dfc5244421f4f5a55c6a869b498d86a6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-22T20:17:34 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++ NEWS | 2 ++ UI/PreferencesUI/UIxPreferences.m | 16 ++++++++++ UI/Templates/PreferencesUI/UIxPreferences.wox | 30 +++++++++++-------- 4 files changed, 41 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 42b4adec6..263d4092a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-07-22 Wolfgang Sourdeau + * UI/PreferencesUI/UIxPreferences.m ([UIxPreferences + +initialize]): scan the value of SOGoUIxUserCanChangePassword. + Default is "no". + ([UIxPreferences -shouldDisplayPasswordChange]): new template + method that returns the value of SOGoUIxUserCanChangePassword. + * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage +initialize]): scan the value of SOGoUIxDefaultModule. If not set, the default module defaults to "Calendar". diff --git a/NEWS b/NEWS index a66b84408..78712a375 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ -------------- - added the ability to choose the default module from the application settings: "Calendars", "Contacts" or "Mail"; +- added the ability to show or hide the password change dialog from the + application settings; 0.9.0-20070713 -------------- diff --git a/UI/PreferencesUI/UIxPreferences.m b/UI/PreferencesUI/UIxPreferences.m index 2c8c486b8..5799e82dc 100644 --- a/UI/PreferencesUI/UIxPreferences.m +++ b/UI/PreferencesUI/UIxPreferences.m @@ -40,8 +40,19 @@ workweek = from -> to identities */ +static BOOL shouldDisplayPasswordChange = NO; + @implementation UIxPreferences ++ (void) initialize +{ + NSUserDefaults *ud; + + ud = [NSUserDefaults standardUserDefaults]; + shouldDisplayPasswordChange + = [ud boolForKey: @"SOGoUIxUserCanChangePassword"]; +} + - (id) init { NSDictionary *locale; @@ -426,4 +437,9 @@ return [[request method] isEqualToString: @"POST"]; } +- (BOOL) shouldDisplayPasswordChange +{ + return shouldDisplayPasswordChange; +} + @end diff --git a/UI/Templates/PreferencesUI/UIxPreferences.wox b/UI/Templates/PreferencesUI/UIxPreferences.wox index 223c86b7f..6d97ce4a3 100644 --- a/UI/Templates/PreferencesUI/UIxPreferences.wox +++ b/UI/Templates/PreferencesUI/UIxPreferences.wox @@ -19,7 +19,9 @@ label:value="Date and Time"/>
  • -
  • + +
  • +
    -
    -
    -
    - -
    + +
    +
    +
    + +
    +