X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorCategory.cpp;h=2a1f2810275755c2fa0c1c776fe9c1ca7cb4c6e2;hb=22b45e18173126bcced40edb4f04a8f6ccafa9f9;hp=bf2d4ea5aacb3d6e1515560c8db3f8b9a11d9e67;hpb=c0eed9af8fb5ea6688e7f1b16fbe23b5c0322e19;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorCategory.cpp b/source/contacteditor/frmContactEditorCategory.cpp index bf2d4ea..2a1f281 100644 --- a/source/contacteditor/frmContactEditorCategory.cpp +++ b/source/contacteditor/frmContactEditorCategory.cpp @@ -24,6 +24,9 @@ frmContactEditorCategory::frmContactEditorCategory( wxWindow* parent ) : frmContactEditorCategoryADT( parent ) { + + // Setup the window. + EditorMode = FALSE; sliPriority->Disable(); @@ -34,16 +37,22 @@ frmContactEditorCategoryADT( parent ) void frmContactEditorCategory::EnablePriority( wxCommandEvent& event ) { + + // Enable/disable the priority setting. + if (chkUsePref->IsChecked()){ sliPriority->Enable(); } else { sliPriority->Disable(); } + } void frmContactEditorCategory::ProcessAction( wxCommandEvent& event ) { + // Process action. + long ListCtrlIndex; if (EditorMode == FALSE){ @@ -173,6 +182,9 @@ void frmContactEditorCategory::ProcessAction( wxCommandEvent& event ) void frmContactEditorCategory::SetEditorMode(bool EditMode) { + + // Set the editor mode. + // Set if the editor is adding or editing an address. // FALSE = Add // TRUE = Edit @@ -253,7 +265,11 @@ void frmContactEditorCategory::SetEditorMode(bool EditMode) void frmContactEditorCategory::CloseWindow( wxCommandEvent& event ) { + + // Close this window. + this->Close(); + } void frmContactEditorCategory::SetupPointers(std::map *CategoryList, @@ -266,6 +282,8 @@ void frmContactEditorCategory::SetupPointers(std::map *CategoryLi int CategoryIndex ) { + // Setup the pointers. + CategoryListPtr = CategoryList; //CategoryListSortAsPtr = CategoryListSortAs; CategoryListAltIDPtr = CategoryListAltID;