1 #ifndef __WIDGETS_XABCONTACTMENU__
2 #define __WIDGETS_XABCONTACTMENU__
7 #include <wx/listctrl.h>
15 class XABContactMenuADT : public wxMenu
21 virtual void ProcessMenuItemClick(wxCommandEvent& event) {event.Skip();};
23 XABContactMenuADT(){};
24 ~XABContactMenuADT(){};
28 class XABContactMenu : public XABContactMenuADT
31 std::map<std::string, wxMenuItem*> MenuItems = {};
32 int MenuType = XABCONTACTMENU_MAIN;
33 wxListCtrl *ContactListCtrl = NULL;
34 wxWindow *WindowPtr = NULL;
35 bool EnableAccountSettings = FALSE;
36 void AppendMenuItem(wxString ObjectName,
38 wxString MenuDescription,
42 void ProcessMenuItemClick(wxCommandEvent& event);
44 XABContactMenu(int MenuType);
46 void SetupPointers(wxWindow* WindowPtrIn,
47 wxListCtrl* ContactListCtrlIn);
48 void SetupPointers(wxWindow* WindowPtrIn,
49 wxListCtrl* ContactListCtrlIn,
50 bool EnableAccountSettingsIn);
51 wxMenu* MenuPointer();