changeset 2684:89abf581f4a4

* 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.
author jld
date Tue, 09 Dec 2008 19:05:35 +0000
parents 204262dd4d13
children 1a4560795b04
files host/tools/configtool/ChangeLog host/tools/configtool/standalone/wxwin/outputwin.cpp host/tools/configtool/standalone/wxwin/outputwin.h host/tools/configtool/standalone/wxwin/runtestsdlg.cpp
diffstat 4 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/host/tools/configtool/ChangeLog
+++ b/host/tools/configtool/ChangeLog
@@ -1,3 +1,11 @@
+2008-12-09  John Dallaway  <jld@ecoscentric.com>
+
+	* 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  <jld@ecoscentric.com>
 
 	* standalone/wxwin/mainwin.cpp: Make menu acceleration keys unique.
--- 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());
+}
+
--- 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
 
--- 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"));