Changeset 150 for Mulberry/branches/v4.1d1/MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Remote_Account_Panels/CPrefsRemoteOptions.cp
- Timestamp:
- 01/13/08 21:39:50 (11 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/branches/v4.1d1/MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Remote_Account_Panels/CPrefsRemoteOptions.cp
r74 r150 20 20 #include "CPrefsRemoteOptions.h" 21 21 22 #include "CINETAccount.h" 22 #include "COptionsAccount.h" 23 #include "CTextFieldX.h" 23 24 24 25 #include <LCheckBox.h> … … 53 54 // Get controls 54 55 mUseRemote = (LCheckBox*) FindPaneByID(paneid_PrefsRemoteOptionsUse); 56 mBaseRURL = (CTextFieldX*) FindPaneByID(paneid_PrefsRemoteOptionsBaseRURL); 55 57 } 56 58 … … 58 60 void CPrefsRemoteOptions::SetData(void* data) 59 61 { 60 C INETAccount* acct = (CINETAccount*) data;62 COptionsAccount* acct = (COptionsAccount*) data; 61 63 62 64 // Copy info 63 65 mUseRemote->SetValue(acct->GetLogonAtStart()); 66 if (acct->GetServerType() == CINETAccount::eWebDAVPrefs) 67 mBaseRURL->SetText(acct->GetBaseRURL()); 68 else 69 { 70 FindPaneByID(paneid_PrefsRemoteOptionsBaseRURLText)->Hide(); 71 mBaseRURL->Hide(); 72 } 64 73 } 65 74 … … 67 76 void CPrefsRemoteOptions::UpdateData(void* data) 68 77 { 69 C INETAccount* acct = (CINETAccount*) data;78 COptionsAccount* acct = (COptionsAccount*) data; 70 79 71 80 acct->SetLoginAtStart(mUseRemote->GetValue()==1); 81 if (acct->GetServerType() == CINETAccount::eWebDAVPrefs) 82 acct->SetBaseRURL(mBaseRURL->GetText()); 72 83 }