From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:41:13 +0000 (+0000) Subject: Added comments to describe functions for frmContactEditorCategory X-Git-Tag: release-0.11~97 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=22b45e18173126bcced40edb4f04a8f6ccafa9f9;p=xestiaab%2F.git Added comments to describe functions for frmContactEditorCategory --- diff --git a/source/contacteditor/frmContactEditorCategory.cpp b/source/contacteditor/frmContactEditorCategory.cpp index bf2d4ea..2a1f281 100644 --- a/source/contacteditor/frmContactEditorCategory.cpp +++ b/source/contacteditor/frmContactEditorCategory.cpp @@ -24,6 +24,9 @@ frmContactEditorCategory::frmContactEditorCategory( wxWindow* parent ) : frmContactEditorCategoryADT( parent ) { + + // Setup the window. + EditorMode = FALSE; sliPriority->Disable(); @@ -34,16 +37,22 @@ frmContactEditorCategoryADT( parent ) void frmContactEditorCategory::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority setting. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { sliPriority->Disable(); } + } void frmContactEditorCategory::ProcessAction( wxCommandEvent& event ) { + // Process action. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -173,6 +182,9 @@ void frmContactEditorCategory::ProcessAction( wxCommandEvent& event ) void frmContactEditorCategory::SetEditorMode(bool EditMode) { + + // Set the editor mode. + // Set if the editor is adding or editing an address. // FALSE = Add // TRUE = Edit @@ -253,7 +265,11 @@ void frmContactEditorCategory::SetEditorMode(bool EditMode) void frmContactEditorCategory::CloseWindow( wxCommandEvent& event ) { + + // Close this window. + this->Close(); + } void frmContactEditorCategory::SetupPointers(std::map *CategoryList, @@ -266,6 +282,8 @@ void frmContactEditorCategory::SetupPointers(std::map *CategoryLi int CategoryIndex ) { + // Setup the pointers. + CategoryListPtr = CategoryList; //CategoryListSortAsPtr = CategoryListSortAs; CategoryListAltIDPtr = CategoryListAltID;