From a76a2dec8f9610d14b284bd5488a4cccc3297dbf Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:08:42 +0000 Subject: [PATCH] Added comments to describe functions in frmContactEditorSound --- .../contacteditor/frmContactEditorSound.cpp | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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; -- 2.39.5