X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorNotes.cpp;h=b2b6983848b1e59d7450f92d7c1cdbe2ebc8cfcc;hb=8ba3a36ac9f0f28190f521902e76297003722276;hp=e07687aaa69b1111f3b28804bf00f1626d6a2b1b;hpb=1a9090710d251fc087886d98585b7714c6a66f62;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorNotes.cpp b/source/contacteditor/frmContactEditorNotes.cpp index e07687a..b2b6983 100644 --- a/source/contacteditor/frmContactEditorNotes.cpp +++ b/source/contacteditor/frmContactEditorNotes.cpp @@ -24,21 +24,31 @@ frmContactEditorNotes::frmContactEditorNotes( wxWindow* parent ) : frmContactEditorNotesADT( parent ) { + + // Setup the editor window. + EditorMode = FALSE; sliPriority->Disable(); } void frmContactEditorNotes::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority setting. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { sliPriority->Disable(); } + } void frmContactEditorNotes::ProcessAction( wxCommandEvent& event ) { + + // Process action. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -184,6 +194,9 @@ void frmContactEditorNotes::ProcessAction( wxCommandEvent& event ) void frmContactEditorNotes::SetEditorMode(bool EditMode, SectionType SectType) { + + // Set the editor mode. + // Set if the editor is adding or editing an address. // FALSE = Add // TRUE = Edit @@ -250,7 +263,11 @@ void frmContactEditorNotes::SetEditorMode(bool EditMode, SectionType SectType) void frmContactEditorNotes::CloseWindow( wxCommandEvent& event ) { + + // Close the window. + this->Close(); + } @@ -265,6 +282,8 @@ void frmContactEditorNotes::SetupPointers(std::map *NotesList, int NotesIndex ) { + // Setup the pointers. + NotesListPtr = NotesList; NotesListLangPtr = NotesListLang; NotesListAltIDPtr = NotesListAltID;