Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added comments to describe functions in frmContactEditorRelated
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 13 Mar 2016 10:13:03 +0000 (10:13 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 13 Mar 2016 10:13:03 +0000 (10:13 +0000)
source/contacteditor/frmContactEditorRelated.cpp

index 04cc162..6d94ef5 100644 (file)
@@ -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<int, wxString> *RelatedList,
@@ -516,6 +532,8 @@ void frmContactEditorRelated::SetupPointers(std::map<int, wxString> *RelatedList
        int RelatedIndex )
 {
 
+       // Setup the pointers.
+       
        RelatedListPtr = RelatedList;
        RelatedListRelTypePtr = RelatedListRelType;     
        RelatedListAltIDPtr = RelatedListAltID;
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy