From f5037048f656e6578bac2f32eb851c57584ac636 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:06:57 +0000 Subject: [PATCH] Added comments to describe functions in frmContactEditorTelephone --- .../frmContactEditorTelephone.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/contacteditor/frmContactEditorTelephone.cpp b/source/contacteditor/frmContactEditorTelephone.cpp index 974151c..0df8d2b 100644 --- a/source/contacteditor/frmContactEditorTelephone.cpp +++ b/source/contacteditor/frmContactEditorTelephone.cpp @@ -24,21 +24,32 @@ frmContactEditorTelephone::frmContactEditorTelephone( wxWindow* parent ) : frmContactEditorTelephoneADT( parent ) { + + // Setup the window. + EditorMode = FALSE; sliPriority->Disable(); + } void frmContactEditorTelephone::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority setting. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { sliPriority->Disable(); } + } void frmContactEditorTelephone::ProcessAction( wxCommandEvent& event ) { + + // Process action. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -402,12 +413,17 @@ void frmContactEditorTelephone::ProcessAction( wxCommandEvent& event ) void frmContactEditorTelephone::CloseWindow( wxCommandEvent& event ) { + // Close the window. + this->Close(); } void frmContactEditorTelephone::SetEditorMode(bool EditMode, SectionType SectType) { + + // Set the editor mode. + // Set if the editor is adding or editing an address. // FALSE = Add // TRUE = Edit @@ -548,6 +564,8 @@ void frmContactEditorTelephone::SetupPointers(std::map *Telephone int TelephoneIndex ) { + // Setup the pointers. + TelephoneListPtr = TelephoneList; TelephoneListAltIDPtr = TelephoneListAltID; TelephoneListPIDPtr = TelephoneListPID; -- 2.39.5