Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added copyright and license header to the C++ files and headers in the top source...
[xestiaab/.git] / source / frmSearch.h
index c167f0c..305ccb0 100644 (file)
@@ -1,3 +1,21 @@
+// frmSearch.h - Search form header.
+//
+// (c) 2012-2015 Xestia Software Development.
+//
+// This file is part of Xestia Address Book.
+//
+// Xestia Address Book is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by the
+// Free Software Foundation, version 3 of the license.
+//
+// Xestia Address Book is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
+
 #ifndef __frmSearch__
 #define __frmSearch__
 
@@ -8,10 +26,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 +40,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 +73,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 +94,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