From 4b5de8e0382b2c1244a629e4bfe670ca9092cbb2 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:36:35 +0000 Subject: [PATCH] Added comments to describe functions for frmContactEditorGroups --- source/contacteditor/frmContactEditorGroups.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/contacteditor/frmContactEditorGroups.cpp b/source/contacteditor/frmContactEditorGroups.cpp index 0016987..fce5721 100755 --- a/source/contacteditor/frmContactEditorGroups.cpp +++ b/source/contacteditor/frmContactEditorGroups.cpp @@ -27,6 +27,9 @@ frmContactEditorGroup::frmContactEditorGroup( wxWindow* parent ) : frmContactEditorGroupsADT( parent ) { + + // Setup the window. + EditorMode = FALSE; } @@ -191,6 +194,8 @@ void frmContactEditorGroup::FetchContacts( wxInitDialogEvent& event ) void frmContactEditorGroup::ProcessData( wxCommandEvent& event ) { + // Process action. + for (int i = 0; i < chkContacts->GetCount(); i++){ if (chkContacts->IsChecked(i) == TRUE){ @@ -257,6 +262,8 @@ void frmContactEditorGroup::SetupPointers(std::map *GroupsList, int GroupIndex) { + // Setup the pointers. + GroupsListCtrlPtr = GroupsListCtrl; GroupsListPtr = GroupsList; AccName = AccountName; @@ -267,6 +274,8 @@ void frmContactEditorGroup::SetupPointers(std::map *GroupsList, void frmContactEditorGroup::SetEditorMode(bool EditMode, XABViewMode XVMIn) { + // Setup the editor mode. + EditorMode = EditMode; XVMData = XVMIn; @@ -277,5 +286,9 @@ void frmContactEditorGroup::SetEditorMode(bool EditMode, XABViewMode XVMIn) void frmContactEditorGroup::CloseWindow( wxCommandEvent& event ) { + + // Close this window. + this->Close(); + } -- 2.39.5