X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorEmail.cpp;h=aaaab18459320e21338a4a7bcad2d889359d6b27;hb=c0eed9af8fb5ea6688e7f1b16fbe23b5c0322e19;hp=407b63b54f174d4d63c18145d94436f01fa8fe73;hpb=eb299104a989ec7edd01ffa94d5164138db93fea;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorEmail.cpp b/source/contacteditor/frmContactEditorEmail.cpp index 407b63b..aaaab18 100644 --- a/source/contacteditor/frmContactEditorEmail.cpp +++ b/source/contacteditor/frmContactEditorEmail.cpp @@ -24,21 +24,32 @@ frmContactEditorEmail::frmContactEditorEmail( wxWindow* parent ) : frmContactEditorEmailADT( parent ) { + + // Setup the window. + EditorMode = FALSE; sliPriority->Disable(); + } void frmContactEditorEmail::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority setting. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { sliPriority->Disable(); } + } void frmContactEditorEmail::ProcessData( wxCommandEvent& event ) { + + // Process action. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -148,12 +159,18 @@ void frmContactEditorEmail::ProcessData( wxCommandEvent& event ) void frmContactEditorEmail::CloseWindow( wxCommandEvent& event ) { + + // Close this window. + this->Close(); + } void frmContactEditorEmail::SetEditorMode(bool EditMode, SectionType SectType) { + // Set the editor mode. + // Set the editor mode for adding or editing an email address. if (EditMode == FALSE){ @@ -224,4 +241,5 @@ void frmContactEditorEmail::SetupPointers(std::map *EmailList, EmailListPrefPtr = EmailListPref; EmailListCtrlPtr = EmailListCtrl; EmailListIndex = EmailIndex; + } \ No newline at end of file