From b18da836f35622073bdf5e3f8396f9265ea86163 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:26:49 +0000 Subject: [PATCH] Added comments to describe functions in frmContactEditorLanguages --- source/contacteditor/frmContactEditorLanguages.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/contacteditor/frmContactEditorLanguages.cpp b/source/contacteditor/frmContactEditorLanguages.cpp index 0cd628c..26f67b0 100644 --- a/source/contacteditor/frmContactEditorLanguages.cpp +++ b/source/contacteditor/frmContactEditorLanguages.cpp @@ -24,17 +24,24 @@ frmContactEditorLanguages::frmContactEditorLanguages( wxWindow* parent ) : frmContactEditorLanguagesADT( parent ) { + + // Setup the window. + EditorMode = FALSE; sliPriority->Disable(); } void frmContactEditorLanguages::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority setting. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { sliPriority->Disable(); } + } void frmContactEditorLanguages::SetEditorMode(bool EditMode, SectionType SectType) @@ -91,6 +98,8 @@ void frmContactEditorLanguages::SetEditorMode(bool EditMode, SectionType SectTyp void frmContactEditorLanguages::ProcessAction( wxCommandEvent& event ) { + // Process the action. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -227,4 +236,5 @@ void frmContactEditorLanguages::SetupPointers(std::map *LanguageL LanguageListPrefPtr = LanguageListPref; LanguageListCtrlPtr = LanguageListCtrl; LanguageListIndex = LanguageIndex; + } \ No newline at end of file -- 2.39.5