X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorSound.cpp;h=c903008968aaf4417824640a511f031a2ed6560a;hb=a76a2dec8f9610d14b284bd5488a4cccc3297dbf;hp=3c92b7c5dae762b14b33ca32a5bf3ab80121cee3;hpb=f5037048f656e6578bac2f32eb851c57584ac636;p=xestiaab%2F.git 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;