bbtkWxGUICommand.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00048 #ifdef _USE_WXWIDGETS_
00049
00050
00051 #ifndef __bbtkWxGUICommand_h__
00052 #define __bbtkWxGUICommand_h__
00053
00054 #include "bbtkWx.h"
00055
00056
00057 namespace bbtk
00058 {
00060 class BBTK_EXPORT WxGUICommandUser
00061 {
00062 public:
00063 WxGUICommandUser() {}
00064 virtual ~WxGUICommandUser() {}
00066 virtual void WxGUICommandEnter(const std::string& command) {}
00067 };
00068
00070 class BBTK_EXPORT WxGUICommand : public wxPanel
00071 {
00072 public:
00073 WxGUICommand(wxWindow *parent, WxGUICommandUser* user = 0);
00074 ~WxGUICommand();
00075
00076 void OnBtnGo(wxCommandEvent& event);
00077 void OnCommandEnter(wxCommandEvent& event);
00078 void OnCommandChar(wxCommandEvent& event);
00079
00080 void OnBtnInclude(wxCommandEvent& event);
00081 void OnBtnReset(wxCommandEvent& event);
00082 void OnBtnConfig(wxCommandEvent& event);
00083 void OnBtnGraphS(wxCommandEvent& event);
00084 void OnBtnGraphD(wxCommandEvent& event);
00085 void OnBtnHelp(wxCommandEvent& event);
00086 void OnBtnPackageBrowser(wxCommandEvent& event);
00087
00088 void SendCommand(const std::string& command);
00089 private :
00090 WxGUICommandUser* mUser;
00091 wxComboBox* mwxTextCommand;
00092
00093
00094 public:
00095 enum
00096 {
00097 ID_Text_Command,
00098 ID_Btn_Go,
00099 ID_Btn_Include,
00100 ID_Btn_Reset,
00101 ID_Btn_Config,
00102 ID_Btn_GraphS,
00103 ID_Btn_GraphD,
00104 ID_Btn_Help,
00105 ID_Btn_PackageBrowser
00106 };
00107
00108 DECLARE_EVENT_TABLE()
00109
00110 };
00111
00112
00113 }
00114
00115
00116 #endif // __bbtkWxGUICommand_h__
00117
00118 #endif //_USE_WXWIDGETS_