# HG changeset patch # User jld # Date 1228849535 0 # Node ID 89abf581f4a4f56776412d4d210b0b8a7408f3bc # Parent 204262dd4d13a519f9df9e4b2ae4633de6b9501f * standalone/wxwin/runtestsdlg.cpp: Reduce initial/minimum size of the wxNotebook widget to allow initial display of borders and buttons. * standalone/wxwin/outputwin.cpp, standalone/wxwin/outputwin.h: Manipulate state of "Clear" context menu item. Fix from Spencer Oliver. diff --git a/host/tools/configtool/ChangeLog b/host/tools/configtool/ChangeLog --- a/host/tools/configtool/ChangeLog +++ b/host/tools/configtool/ChangeLog @@ -1,3 +1,11 @@ +2008-12-09 John Dallaway + + * standalone/wxwin/runtestsdlg.cpp: Reduce initial/minimum size of the + wxNotebook widget to allow initial display of borders and buttons. + + * standalone/wxwin/outputwin.cpp, standalone/wxwin/outputwin.h: + Manipulate state of "Clear" context menu item. Fix from Spencer Oliver. + 2008-12-08 John Dallaway * standalone/wxwin/mainwin.cpp: Make menu acceleration keys unique. diff --git a/host/tools/configtool/standalone/wxwin/outputwin.cpp b/host/tools/configtool/standalone/wxwin/outputwin.cpp --- a/host/tools/configtool/standalone/wxwin/outputwin.cpp +++ b/host/tools/configtool/standalone/wxwin/outputwin.cpp @@ -76,6 +76,7 @@ BEGIN_EVENT_TABLE(ecOutputWindow, wxText EVT_MENU(wxID_CLEAR, ecOutputWindow::OnClear) EVT_MENU(wxID_SELECTALL, ecOutputWindow::OnSelectAll) EVT_MENU(wxID_SAVE, ecOutputWindow::OnSave) + EVT_UPDATE_UI(wxID_CLEAR, ecOutputWindow::OnUpdateClear) END_EVENT_TABLE() ecOutputWindow::ecOutputWindow(wxWindow* parent, wxWindowID id, const wxPoint& pt, @@ -129,3 +130,9 @@ void ecOutputWindow::OnSelectAll(wxComma void ecOutputWindow::OnSave(wxCommandEvent& event) { } + +void ecOutputWindow::OnUpdateClear(wxUpdateUIEvent& event) +{ + event.Enable(!IsEmpty()); +} + diff --git a/host/tools/configtool/standalone/wxwin/outputwin.h b/host/tools/configtool/standalone/wxwin/outputwin.h --- a/host/tools/configtool/standalone/wxwin/outputwin.h +++ b/host/tools/configtool/standalone/wxwin/outputwin.h @@ -65,6 +65,7 @@ public: void OnClear(wxCommandEvent& event); void OnSelectAll(wxCommandEvent& event); void OnSave(wxCommandEvent& event); + void OnUpdateClear(wxUpdateUIEvent& event); //// Operations diff --git a/host/tools/configtool/standalone/wxwin/runtestsdlg.cpp b/host/tools/configtool/standalone/wxwin/runtestsdlg.cpp --- a/host/tools/configtool/standalone/wxwin/runtestsdlg.cpp +++ b/host/tools/configtool/standalone/wxwin/runtestsdlg.cpp @@ -149,7 +149,7 @@ ecRunTestsDialog::ecRunTestsDialog(wxWin SetSize(dialogWidth, dialogHeight); m_notebook = new wxNotebook(this, ecID_RUN_TESTS_NOTEBOOK, - wxPoint(2, 2), wxSize(PROPERTY_DIALOG_WIDTH - 4, PROPERTY_DIALOG_HEIGHT - 4)); + wxPoint(2, 2), wxSize(PROPERTY_DIALOG_WIDTH - 100, PROPERTY_DIALOG_HEIGHT - 200)); m_executables = new ecRunTestsExecutablesDialog(m_notebook); m_notebook->AddPage(m_executables, wxT("Executables"));