From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:19:52 +0000 (+0000) Subject: Added comments to describe functions in frmContactEditorPicture X-Git-Tag: release-0.11~110 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=77ae3ec9ac4dff78d7aa32d359be5a86fa192702 Added comments to describe functions in frmContactEditorPicture --- diff --git a/source/contacteditor/frmContactEditorPicture.cpp b/source/contacteditor/frmContactEditorPicture.cpp index d6ffcc3..0be5931 100644 --- a/source/contacteditor/frmContactEditorPicture.cpp +++ b/source/contacteditor/frmContactEditorPicture.cpp @@ -33,16 +33,23 @@ frmContactEditorPicture::frmContactEditorPicture( wxWindow* parent ) : frmContactEditorPictureADT( parent ) { + + // Setup the window. + EditorMode = FALSE; sliPriority->Disable(); cmbType->Append(wxT("")); cmbType->Append(_("Home")); cmbType->Append(_("Work")); + } void frmContactEditorPicture::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { @@ -52,6 +59,9 @@ void frmContactEditorPicture::EnablePriority( wxCommandEvent& event ) void frmContactEditorPicture::ProcessData( wxCommandEvent& event ) { + + // Process data. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -295,11 +305,18 @@ void frmContactEditorPicture::ProcessData( wxCommandEvent& event ) void frmContactEditorPicture::CloseWindow( wxCommandEvent& event ) { + + // Close this window. + this->Close(); + } void frmContactEditorPicture::SetEditorMode(bool EditMode) { + + // Set the editor mode. + // Set if the editor is adding or editing an address. // FALSE = Add // TRUE = Edit @@ -379,6 +396,8 @@ void frmContactEditorPicture::SetupPointers(std::map *PictureL bool PictureLogoIn ) { + // Setup the pointers. + PictureListPtr = PictureList; PictureListAltIDPtr = PictureListAltID; PictureListPIDPtr = PictureListPID;