From: Nicolas Boichat Date: Fri, 13 Aug 2004 21:51:38 +0000 (+0000) Subject: - wxbHistoryTextCtrl : Fixed Win32 build error X-Git-Tag: Release-1.35.1~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d8608316d7b27026bd115f24c73facd5af12043;p=bacula%2Fbacula - wxbHistoryTextCtrl : Fixed Win32 build error git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1524 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/wx-console/CHANGELOG b/bacula/src/wx-console/CHANGELOG index ef9a750d3e..3044796763 100644 --- a/bacula/src/wx-console/CHANGELOG +++ b/bacula/src/wx-console/CHANGELOG @@ -1,4 +1,5 @@ 13-08-2004 : + - wxbHistoryTextCtrl : Fixed Win32 build error - general : implemented command completion and interactive help. 06-08-2004 : diff --git a/bacula/src/wx-console/wxbhistorytextctrl.h b/bacula/src/wx-console/wxbhistorytextctrl.h index 220a5e9146..9020f0d3ee 100644 --- a/bacula/src/wx-console/wxbhistorytextctrl.h +++ b/bacula/src/wx-console/wxbhistorytextctrl.h @@ -34,32 +34,33 @@ #endif #include +#include WX_DECLARE_STRING_HASH_MAP( wxString, wxbCommands ); class wxbHistoryTextCtrl: public wxTextCtrl { public: - wxbHistoryTextCtrl(wxStaticText* help, wxWindow* parent, wxWindowID id, + wxbHistoryTextCtrl(wxStaticText* help, wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - const wxValidator& validator = wxDefaultValidator, + const wxSize& size = wxDefaultSize, + const wxValidator& validator = wxDefaultValidator, const wxString& name = wxTextCtrlNameStr); - + void HistoryAdd(wxString cmd); - + void AddCommand(wxString cmd, wxString description); void ClearCommandList(); - + virtual void SetValue(const wxString& value); private: wxArrayString history; wxbCommands commands; int index; wxStaticText* help; - + void OnKeyUp(wxKeyEvent& event); void OnKeyDown(wxKeyEvent& event); - + DECLARE_EVENT_TABLE(); };