00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __CONSOLE_H__
00013 #define __CONSOLE_H__
00014
00015 #include <wx/minifram.h>
00016 #include <wx/textctrl.h>
00017 #include <wx/stattext.h>
00018 #include "interpreter.h"
00019
00020 namespace VRUT
00021 {
00023 class Console: public wxTextCtrl
00024 {
00025
00026
00027 protected:
00029 std::vector<wxString> cmdHistory;
00031 size_t cmdHistoryIndex;
00033 wxStaticText * helperWin;
00034
00036 void onKeyDown(wxKeyEvent & evt);
00038 void onCommand(wxCommandEvent & WXUNUSED(evt));
00039
00040 public:
00042 Console(wxWindow * parentWin);
00044 virtual ~Console();
00045 };
00046 };
00047
00048
00049 #endif