Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added comments to describe functions in widgets/XABContactMenu.cpp
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 15 Mar 2016 23:22:38 +0000 (23:22 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 15 Mar 2016 23:22:38 +0000 (23:22 +0000)
source/widgets/XABContactMenu.cpp

index b468833..cfef818 100644 (file)
@@ -31,6 +31,8 @@ enum {
 
 XABContactMenu::XABContactMenu(int MenuTypeIn){
 
+       // Setup the XABContactMenu control.
+       
        MenuType = MenuTypeIn;
 
        // Setup the menu items.
@@ -70,6 +72,8 @@ XABContactMenu::XABContactMenu(int MenuTypeIn){
 
 XABContactMenu::~XABContactMenu(){
 
+       // Destory the XABContactMenu object.
+       
        // Delete the menu items.
        
        for (std::map<std::string, wxMenuItem*>::iterator MenuItemIter = MenuItems.begin(); 
@@ -94,6 +98,8 @@ void XABContactMenu::AppendMenuItem(wxString ObjectName,
        int ItemID,
        wxItemKind ItemType){
        
+       // Append a menu item to the XABContactMenu control.
+               
        wxMenuItem *menuitem = new wxMenuItem(
                NULL,
                ItemID,
@@ -113,6 +119,8 @@ void XABContactMenu::SetupPointersSearch(wxWindow* WindowPtrIn,
        wxListCtrl* ContactListCtrlIn,
        bool SearchModeOnlyIn){
 
+       // Setup the pointers when being used in the search window.
+               
        WindowPtr = WindowPtrIn;
        ContactListCtrl = ContactListCtrlIn;
        SearchModeOnly = SearchModeOnlyIn;
@@ -123,6 +131,8 @@ void XABContactMenu::SetupPointers(wxWindow* WindowPtrIn,
        wxListCtrl* ContactListCtrlIn, 
        bool EnableAccountSettingsIn){
 
+       // Setup the pointers.
+               
        WindowPtr = WindowPtrIn;
        ContactListCtrl = ContactListCtrlIn;
        EnableAccountSettings = EnableAccountSettingsIn;
@@ -131,6 +141,8 @@ void XABContactMenu::SetupPointers(wxWindow* WindowPtrIn,
 
 wxMenu* XABContactMenu::MenuPointer(){
 
+       // Process the menu pointer.
+       
        // Check for the following before passing the pointer:
        // If an account has been selected.
        // - Disable Refresh Address Book if not.
@@ -204,6 +216,9 @@ wxMenu* XABContactMenu::MenuPointer(){
 
 void XABContactMenu::ProcessMenuItemClick( wxCommandEvent& event){
 
+       // Process an action when a menu item in the XABContactMenu
+       // control is selected.
+       
        int ItemID = event.GetId();
        
        if (MenuType == XABCONTACTMENU_MAIN){
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