From 8d8608316d7b27026bd115f24c73facd5af12043 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Fri, 13 Aug 2004 21:51:38 +0000 Subject: [PATCH] - wxbHistoryTextCtrl : Fixed Win32 build error git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1524 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/wx-console/CHANGELOG | 1 + bacula/src/wx-console/wxbhistorytextctrl.h | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) 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(); }; -- 2.39.5