X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorRelated.cpp;h=6d94ef53e67fd93b014289b7cb61916ae0669b06;hb=fd078514131d77670118c74f6c6c632b57f05fb8;hp=04cc162cfafc992be981513f77d583ee71e40892;hpb=e6bf1131dcc4ca776a00220030fdffa0c7146908;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorRelated.cpp b/source/contacteditor/frmContactEditorRelated.cpp index 04cc162..6d94ef5 100644 --- a/source/contacteditor/frmContactEditorRelated.cpp +++ b/source/contacteditor/frmContactEditorRelated.cpp @@ -26,6 +26,8 @@ frmContactEditorRelated::frmContactEditorRelated( wxWindow* parent ) frmContactEditorRelatedADT( parent ) { + // Setup the window. + EditorMode = FALSE; sliPriority->Disable(); @@ -56,15 +58,22 @@ frmContactEditorRelatedADT( parent ) void frmContactEditorRelated::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority setting. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { sliPriority->Disable(); } + } void frmContactEditorRelated::SetEditorMode(bool EditMode, SectionType SectType) { + + // Set the editor mode. + if (EditMode == FALSE){ EditorMode = FALSE; @@ -213,6 +222,9 @@ void frmContactEditorRelated::SetEditorMode(bool EditMode, SectionType SectType) void frmContactEditorRelated::ProcessData( wxCommandEvent& event ) { + + // Process data. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -502,7 +514,11 @@ void frmContactEditorRelated::ProcessData( wxCommandEvent& event ) void frmContactEditorRelated::CloseWindow( wxCommandEvent& event ) { + + // Close this window. + this->Close(); + } void frmContactEditorRelated::SetupPointers(std::map *RelatedList, @@ -516,6 +532,8 @@ void frmContactEditorRelated::SetupPointers(std::map *RelatedList int RelatedIndex ) { + // Setup the pointers. + RelatedListPtr = RelatedList; RelatedListRelTypePtr = RelatedListRelType; RelatedListAltIDPtr = RelatedListAltID;