Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Right click menu support added for the contact list and search results.
[xestiaab/.git] / source / frmSearch.h
index c167f0c..90998fd 100644 (file)
@@ -8,10 +8,10 @@ Subclass of frmSearchADT, which is generated by wxFormBuilder.
 
 #include "AppXestiaAddrBk.h"
 #include "vcard/vcard.h"
+#include "widgets/XABContactMenu.h"
 
 #include <map>
 
-
 //// end generated include
 
 DECLARE_EVENT_TYPE(SE_ADDSEARCHSETTING, wxID_ANY)
@@ -22,6 +22,9 @@ DECLARE_EVENT_TYPE(SE_SBUPDATE, wxID_ANY)
 DECLARE_EVENT_TYPE(SE_SEARCHFINISHED, wxID_ANY)
 DECLARE_EVENT_TYPE(SE_UPDATERESULT, wxID_ANY)
 DECLARE_EVENT_TYPE(SE_DELETERESULT, wxID_ANY)
+DECLARE_EVENT_TYPE(SE_OPENCONTACT, wxID_ANY)
+DECLARE_EVENT_TYPE(SE_EDITCONTACT, wxID_ANY)
+DECLARE_EVENT_TYPE(SE_REVEALCONTACT, wxID_ANY)
 
 struct SRNotif{
        vCardName ContactName;
@@ -52,6 +55,7 @@ class frmSearch : public frmSearchADT
                        wxString Account,
                        std::map<long,wxString> *SRAcc,
                        std::map<long,wxString> *SRFN);
+               XABContactMenu *ContactMenu = new XABContactMenu(XABCONTACTMENU_SEARCH);
        protected:
                // Handlers for frmSearchADT events.
                void SelectAccounts( wxCommandEvent& event );
@@ -72,6 +76,7 @@ class frmSearch : public frmSearchADT
                void UpdateResult( wxCommandEvent& event );
                void DeleteResult( wxCommandEvent& event );
                void CloseWindow( wxCloseEvent& event );
+               void ShowContactMenu( wxMouseEvent& event );
        public:
                /** Constructor */
                frmSearch( wxWindow* parent );
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