From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:08:42 +0000 (+0000) Subject: Added comments to describe functions in frmContactEditorSound X-Git-Tag: release-0.11~114 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=a76a2dec8f9610d14b284bd5488a4cccc3297dbf;p=xestiaab%2F.git Added comments to describe functions in frmContactEditorSound --- diff --git a/source/contacteditor/frmContactEditorSound.cpp b/source/contacteditor/frmContactEditorSound.cpp index 3c92b7c..c903008 100644 --- a/source/contacteditor/frmContactEditorSound.cpp +++ b/source/contacteditor/frmContactEditorSound.cpp @@ -30,25 +30,36 @@ frmContactEditorSound::frmContactEditorSound( wxWindow* parent ) : frmContactEditorSoundADT( parent ) { + + // Setup the window. + EditorMode = FALSE; sliPriority->Disable(); cmbType->Append(wxT("")); cmbType->Append(_("Home")); cmbType->Append(_("Work")); + } void frmContactEditorSound::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority setting. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { sliPriority->Disable(); } + } void frmContactEditorSound::ProcessData( wxCommandEvent& event ) { + + // Process audio data. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -275,11 +286,18 @@ void frmContactEditorSound::ProcessData( wxCommandEvent& event ) void frmContactEditorSound::CloseWindow( wxCommandEvent& event ) { + + // Close this window. + this->Close(); + } void frmContactEditorSound::SetEditorMode(bool EditMode) { + + // Set the editor mode. + // Set if the editor is adding or editing an address. // FALSE = Add // TRUE = Edit @@ -358,6 +376,8 @@ void frmContactEditorSound::SetupPointers(std::map *SoundList, wxListCtrl *SoundListCtrl, int SoundIndex ) { + + // Setup the pointers. SoundListPtr = SoundList; SoundListAltIDPtr = SoundListAltID;