From 22b45e18173126bcced40edb4f04a8f6ccafa9f9 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:41:13 +0000 Subject: [PATCH] Added comments to describe functions for frmContactEditorCategory --- .../contacteditor/frmContactEditorCategory.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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; -- 2.39.2