From 1a9090710d251fc087886d98585b7714c6a66f62 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:27:51 +0000 Subject: [PATCH] Added comments to describe functions for frmContactEditorNickname --- source/contacteditor/frmContactEditorNickname.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; -- 2.39.5