X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmSearch.h;h=305ccb02a3df3bcb35c2f76af513a6917d3db17e;hb=a73019906500e3a0fc306a61e4b7975f79725866;hp=41537196e93b59140ca1b8afb91aa4fc033e3814;hpb=45729fca56479bd9158486e0cda0c4a94b4dd1dc;p=xestiaab%2F.git diff --git a/source/frmSearch.h b/source/frmSearch.h index 4153719..305ccb0 100644 --- a/source/frmSearch.h +++ b/source/frmSearch.h @@ -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 + #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 - //// 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; @@ -42,14 +63,17 @@ class frmSearch : public frmSearchADT std::map SearchAccountsPaths; std::map SearchResultAccount; std::map SearchResultFilename; + std::map SearchModeMemoryFSPtr; int ScrollGen = 0; int SearchUID = 0; bool SearchEnabled = FALSE; bool StopMode = FALSE; + bool SearchMode = FALSE; bool CheckDuplicate(wxString Filename, wxString Account, std::map *SRAcc, std::map *SRFN); + XABContactMenu *ContactMenu = new XABContactMenu(XABCONTACTMENU_SEARCH); protected: // Handlers for frmSearchADT events. void SelectAccounts( wxCommandEvent& event ); @@ -70,10 +94,12 @@ 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 ); void SetUID(int UID); + void SetSearchMode(bool SearchModeIn); DECLARE_EVENT_TABLE() //// end generated class members