From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:36:35 +0000 (+0000) Subject: Added comments to describe functions for frmContactEditorGroups X-Git-Tag: release-0.11~101 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;ds=inline;h=4b5de8e0382b2c1244a629e4bfe670ca9092cbb2;p=xestiaab%2F.git Added comments to describe functions for frmContactEditorGroups --- 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(); + }