From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:27:51 +0000 (+0000) Subject: Added comments to describe functions for frmContactEditorNickname X-Git-Tag: release-0.11~106 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=1a9090710d251fc087886d98585b7714c6a66f62;p=xestiaab%2F.git Added comments to describe functions for frmContactEditorNickname --- diff --git a/source/contacteditor/frmContactEditorNickname.cpp b/source/contacteditor/frmContactEditorNickname.cpp index c0ecc2f..9c909a9 100644 --- a/source/contacteditor/frmContactEditorNickname.cpp +++ b/source/contacteditor/frmContactEditorNickname.cpp @@ -33,15 +33,22 @@ void frmContactEditorNickname::InitAddressEditor( wxInitDialogEvent& event ) void frmContactEditorNickname::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { sliPriority->Disable(); } + } void frmContactEditorNickname::ProcessData( wxCommandEvent& event ) { + + // Process the data. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -157,11 +164,16 @@ void frmContactEditorNickname::ProcessData( wxCommandEvent& event ) void frmContactEditorNickname::CloseWindow( wxCommandEvent& event ) { + + // Close this window. + this->Close(); + } void frmContactEditorNickname::SetEditorMode(bool EditMode, SectionType SectType) { + // Set if the editor is adding or editing an address. // FALSE = Add // TRUE = Edit @@ -238,6 +250,8 @@ void frmContactEditorNickname::SetupPointers(std::map *NicknamesL int NicknamesIndex ) { + // Setup the pointers. + NicknamesListPtr = NicknamesList; NicknamesListAltIDPtr = NicknamesListAltID; NicknamesListPIDPtr = NicknamesListPID;