/*========================================================================= Program: bbtk Module: $RCSfile: bbtkWxGUICommand.h,v $ Language: C++ Date: $Date: 2008/03/20 09:51:29 $ Version: $Revision: 1.1 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*//** * \brief Short description in one line * * Long description which * can span multiple lines */ /** * \file * \brief */ /** * \class bbtk:: * \brief */ #ifdef _USE_WXWIDGETS_ #ifndef __bbtkWxGUICommand_h__ #define __bbtkWxGUICommand_h__ #include "bbtkWx.h" namespace bbtk { /// Abstract class which defines the callbacks invoked by WxGUICommand class BBTK_EXPORT WxGUICommandUser { public: WxGUICommandUser() {} ~WxGUICommandUser() {} /// Callback invoked when a command is entered in the WxGUICommand virtual void WxGUICommandEnter(const std::string& command) {} }; /// GUI Component which provides a command input zone class BBTK_EXPORT WxGUICommand : public wxPanel { public: WxGUICommand(wxWindow *parent, WxGUICommandUser* user = 0); ~WxGUICommand(); void OnBtnGo(wxCommandEvent& event); void OnCommandEnter(wxCommandEvent& event); void OnCommandChar(wxCommandEvent& event); void OnBtnInclude(wxCommandEvent& event); void OnBtnReset(wxCommandEvent& event); void OnBtnConfig(wxCommandEvent& event); void OnBtnGraphS(wxCommandEvent& event); void OnBtnGraphD(wxCommandEvent& event); void OnBtnHelp(wxCommandEvent& event); void SendCommand(const std::string& command); private : WxGUICommandUser* mUser; wxComboBox* mwxTextCommand; // wxTextAttr* mwxTextCommandAttr; public: enum { ID_Text_Command, ID_Btn_Go, ID_Btn_Include, ID_Btn_Reset, ID_Btn_Config, ID_Btn_GraphS, ID_Btn_GraphD, ID_Btn_Help }; DECLARE_EVENT_TABLE() }; } // namespace bbtk #endif // __bbtkWxGUICommand_h__ #endif //_USE_WXWIDGETS_