1 /*=========================================================================
4 Module: $RCSfile: bbtkWxGUICommand.h,v $
6 Date: $Date: 2008/07/23 11:46:11 $
7 Version: $Revision: 1.4 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*//**
18 * \brief Short description in one line
20 * Long description which
21 * can span multiple lines
33 #ifdef _USE_WXWIDGETS_
36 #ifndef __bbtkWxGUICommand_h__
37 #define __bbtkWxGUICommand_h__
44 /// Abstract class which defines the callbacks invoked by WxGUICommand
45 class BBTK_EXPORT WxGUICommandUser
49 virtual ~WxGUICommandUser() {}
50 /// Callback invoked when a command is entered in the WxGUICommand
51 virtual void WxGUICommandEnter(const std::string& command) {}
54 /// GUI Component which provides a command input zone
55 class BBTK_EXPORT WxGUICommand : public wxPanel
58 WxGUICommand(wxWindow *parent, WxGUICommandUser* user = 0);
61 void OnBtnGo(wxCommandEvent& event);
62 void OnCommandEnter(wxCommandEvent& event);
63 void OnCommandChar(wxCommandEvent& event);
65 void OnBtnInclude(wxCommandEvent& event);
66 void OnBtnReset(wxCommandEvent& event);
67 void OnBtnConfig(wxCommandEvent& event);
68 void OnBtnGraphS(wxCommandEvent& event);
69 void OnBtnGraphD(wxCommandEvent& event);
70 void OnBtnHelp(wxCommandEvent& event);
71 void OnBtnPackageBrowser(wxCommandEvent& event);
73 void SendCommand(const std::string& command);
75 WxGUICommandUser* mUser;
76 wxComboBox* mwxTextCommand;
77 // wxTextAttr* mwxTextCommandAttr;
101 #endif // __bbtkWxGUICommand_h__
103 #endif //_USE_WXWIDGETS_