:
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)
intiter = LanguageListPrefPtr->find(LanguageListIndex);
- if (intiter->first == LanguageListIndex && intiter->second > 0){
+ if (intiter->first == LanguageListIndex && intiter->second > 0 &&
+ intiter != LanguageListPrefPtr->end()){
sliPriority->SetValue(intiter->second);
sliPriority->Enable();
void frmContactEditorLanguages::ProcessAction( wxCommandEvent& event )
{
+ // Process the action.
+
long ListCtrlIndex;
if (EditorMode == FALSE){
LanguageListPrefPtr = LanguageListPref;
LanguageListCtrlPtr = LanguageListCtrl;
LanguageListIndex = LanguageIndex;
+
}
\ No newline at end of file