From: "Spen" <spen@spen-soft.co.uk>
To: <ecos-patches@ecos.sourceware.org>
Subject: configtool patch
Date: Thu, 27 Nov 2008 14:59:00 -0000 [thread overview]
Message-ID: <20081127145900.F1Z5AzO6fYNTDVeqpyNsCMOfkvSRD3Bgzjp02bnKwaE@z> (raw)
[-- Attachment #1: Type: text/plain, Size: 114 bytes --]
Hi,
Attached is a small patch that fixes the output window menu handler from
always being disabled.
Cheers
Spen
[-- Attachment #2: configtool.patch --]
[-- Type: application/octet-stream, Size: 1403 bytes --]
Index: outputwin.cpp
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/standalone/wxwin/outputwin.cpp,v
retrieving revision 1.1
diff -u -r1.1 outputwin.cpp
--- outputwin.cpp 1 Jun 2001 22:16:30 -0000 1.1
+++ outputwin.cpp 24 Nov 2008 17:56:09 -0000
@@ -76,6 +76,7 @@
EVT_MENU(wxID_CLEAR, ecOutputWindow::OnClear)
EVT_MENU(wxID_SELECTALL, ecOutputWindow::OnSelectAll)
EVT_MENU(wxID_SAVE, ecOutputWindow::OnSave)
+ EVT_UPDATE_UI(wxID_CLEAR, ecOutputWindow::OnUpdateDelete)
END_EVENT_TABLE()
ecOutputWindow::ecOutputWindow(wxWindow* parent, wxWindowID id, const wxPoint& pt,
@@ -129,3 +130,9 @@
void ecOutputWindow::OnSave(wxCommandEvent& event)
{
}
+
+void ecOutputWindow::OnUpdateDelete(wxUpdateUIEvent& event)
+{
+ event.Enable(!IsEmpty());
+}
+
Index: outputwin.h
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/standalone/wxwin/outputwin.h,v
retrieving revision 1.1
diff -u -r1.1 outputwin.h
--- outputwin.h 1 Jun 2001 22:16:30 -0000 1.1
+++ outputwin.h 24 Nov 2008 17:56:25 -0000
@@ -65,6 +65,7 @@
void OnClear(wxCommandEvent& event);
void OnSelectAll(wxCommandEvent& event);
void OnSave(wxCommandEvent& event);
+ void OnUpdateDelete(wxUpdateUIEvent& event);
//// Operations
next reply other threads:[~2008-11-27 14:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-27 14:59 Spen [this message]
2008-12-22 21:43 Configtool patch John Dallaway
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081127145900.F1Z5AzO6fYNTDVeqpyNsCMOfkvSRD3Bgzjp02bnKwaE@z \
--to=spen@spen-soft.co.uk \
--cc=ecos-patches@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).