Revision: 7447
http://mahogany.svn.sourceforge.net/mahogany/?rev=7447&view=rev
Author: vadz
Date: 2008-05-01 19:01:10 -0700 (Thu, 01 May 2008)
Log Message:
-----------
handle config sources combobox events dynamically to catch them before
EVT_CHOICE(-1) event table entries in the derived classes do it
Modified Paths:
--------------
trunk/M/include/gui/wxDialogLayout.h
trunk/M/src/gui/wxDialogLayout.cpp
Modified: trunk/M/include/gui/wxDialogLayout.h
===================================================================
--- trunk/M/include/gui/wxDialogLayout.h 2008-05-02 01:14:10 UTC (rev
7446)
+++ trunk/M/include/gui/wxDialogLayout.h 2008-05-02 02:01:10 UTC (rev
7447)
@@ -272,7 +272,6 @@
bool m_changedConfigSource;
- DECLARE_EVENT_TABLE()
DECLARE_NO_COPY_CLASS(wxProfileSettingsEditDialog)
};
Modified: trunk/M/src/gui/wxDialogLayout.cpp
===================================================================
--- trunk/M/src/gui/wxDialogLayout.cpp 2008-05-02 01:14:10 UTC (rev 7446)
+++ trunk/M/src/gui/wxDialogLayout.cpp 2008-05-02 02:01:10 UTC (rev 7447)
@@ -110,10 +110,6 @@
// event tables
//
-----------------------------------------------------------------------------
-BEGIN_EVENT_TABLE(wxProfileSettingsEditDialog, wxManuallyLaidOutDialog)
- EVT_CHOICE(-1, wxProfileSettingsEditDialog::OnConfigSourceChange)
-END_EVENT_TABLE()
-
BEGIN_EVENT_TABLE(wxOptionsPageSubdialog, wxManuallyLaidOutDialog)
EVT_CHECKBOX(-1, wxOptionsPageSubdialog::OnChange)
EVT_RADIOBOX(-1, wxOptionsPageSubdialog::OnChange)
@@ -1350,6 +1346,11 @@
}
m_chcSources = new wxChoice(panel, -1);
+
+ Connect(wxEVT_COMMAND_CHOICE_SELECTED,
+ wxCommandEventHandler(
+ wxProfileSettingsEditDialog::OnConfigSourceChange));
+
for ( AllConfigSources::List::iterator i = sources.begin(),
end = sources.end();
i != end;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates