Commit 7d6080a4 authored by coppro's avatar coppro

Fix some overload issues with wxWidgets.

parent 6569b5b4
...@@ -63,10 +63,11 @@ class FilterCtrl : public wxControl { ...@@ -63,10 +63,11 @@ class FilterCtrl : public wxControl {
void update(); void update();
bool hasFocus(); bool hasFocus();
// wxWidgets appears to have developed an overload allergy
void onChange(); void onChange();
void onChange(wxCommandEvent&); void onChangeEvent(wxCommandEvent&);
void onClear(wxCommandEvent&); void onClear(wxCommandEvent&);
void onSize(wxSizeEvent&); void onSizeEvent(wxSizeEvent&);
void onSize(); void onSize();
public: public:
void onSetFocus(wxFocusEvent&); void onSetFocus(wxFocusEvent&);
...@@ -118,7 +119,7 @@ void FilterCtrl::update() { ...@@ -118,7 +119,7 @@ void FilterCtrl::update() {
changing = false; changing = false;
} }
void FilterCtrl::onChange(wxCommandEvent&) { void FilterCtrl::onChangeEvent(wxCommandEvent&) {
if (!changing) { if (!changing) {
setFilter(filter_ctrl->GetValue(),true); setFilter(filter_ctrl->GetValue(),true);
} }
...@@ -128,7 +129,7 @@ void FilterCtrl::onClear(wxCommandEvent&) { ...@@ -128,7 +129,7 @@ void FilterCtrl::onClear(wxCommandEvent&) {
setFilter(String(),true); setFilter(String(),true);
} }
void FilterCtrl::onSize(wxSizeEvent&) { void FilterCtrl::onSizeEvent(wxSizeEvent&) {
onSize(); onSize();
} }
void FilterCtrl::onSize() { void FilterCtrl::onSize() {
...@@ -155,8 +156,8 @@ bool FilterCtrl::hasFocus() { ...@@ -155,8 +156,8 @@ bool FilterCtrl::hasFocus() {
BEGIN_EVENT_TABLE(FilterCtrl, wxControl) BEGIN_EVENT_TABLE(FilterCtrl, wxControl)
EVT_BUTTON (wxID_ANY, FilterCtrl::onClear) EVT_BUTTON (wxID_ANY, FilterCtrl::onClear)
EVT_TEXT (wxID_ANY, FilterCtrl::onChange) EVT_TEXT (wxID_ANY, FilterCtrl::onChangeEvent)
EVT_SIZE (FilterCtrl::onSize) EVT_SIZE (FilterCtrl::onSizeEvent)
EVT_SET_FOCUS (FilterCtrl::onSetFocus) EVT_SET_FOCUS (FilterCtrl::onSetFocus)
EVT_KILL_FOCUS(FilterCtrl::onKillFocus) EVT_KILL_FOCUS(FilterCtrl::onKillFocus)
END_EVENT_TABLE() END_EVENT_TABLE()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment