// XABSearchPanel.h - XABSearchPanel widget 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 __XABSearchPanel__ #define __XABSearchPanel__ /** @file Subclass of XABSearchPanelADT, which is generated by wxFormBuilder. */ #include #include "../AppXestiaAddrBk.h" #include "../common/preferences.h" #include "frmSearch.h" #include "../Bitmaps.h" //// end generated include DECLARE_EVENT_TYPE(XABSP_ENABLECONTROLS, wxID_ANY) DECLARE_EVENT_TYPE(XABSP_DISABLECONTROLS, wxID_ANY) /** Implementing XABSearchPanelADT */ class XABSearchPanel : public XABSearchPanelADT { private: void *SCHWinPtr; int SCHInt; protected: // Handlers for XABSearchPanelADT events. void UpdateOptions( wxCommandEvent& event ); void AddSearchWidget( wxCommandEvent& event ); void RemoveSearchWidget( wxCommandEvent& event ); void DisableControls(wxCommandEvent &event); void EnableControls(wxCommandEvent &event); public: /** Constructor */ XABSearchPanel( wxWindow* parent ); void EnableButtons(bool AddButton, bool DeleteButton); void SetupPointers(void* SCHWinPtrInc); void SetupInteger(int IntInc); int GetInteger(); int GetSelectionOption(); bool GetCheckboxSetting(); wxString GetStringSetting(); DECLARE_EVENT_TABLE() //// end generated class members }; #endif // __XABSearchPanel__