diff --git a/pcbnew/widgets/panel_selection_filter_base.cpp b/pcbnew/widgets/panel_selection_filter_base.cpp index e5893dc027..7a7a24ba36 100644 --- a/pcbnew/widgets/panel_selection_filter_base.cpp +++ b/pcbnew/widgets/panel_selection_filter_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Oct 26 2018) +// C++ code generated with wxFormBuilder (version 3.10.0-4761b0c) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -71,7 +71,6 @@ PANEL_SELECTION_FILTER_BASE::PANEL_SELECTION_FILTER_BASE( wxWindow* parent, wxWi this->Layout(); // Connect Events - this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_SELECTION_FILTER_BASE::OnUpdateUI ) ); m_cbAllItems->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SELECTION_FILTER_BASE::OnFilterChanged ), NULL, this ); m_cbLockedItems->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SELECTION_FILTER_BASE::OnFilterChanged ), NULL, this ); m_cbFootprints->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SELECTION_FILTER_BASE::OnFilterChanged ), NULL, this ); @@ -89,7 +88,6 @@ PANEL_SELECTION_FILTER_BASE::PANEL_SELECTION_FILTER_BASE( wxWindow* parent, wxWi PANEL_SELECTION_FILTER_BASE::~PANEL_SELECTION_FILTER_BASE() { // Disconnect Events - this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_SELECTION_FILTER_BASE::OnUpdateUI ) ); m_cbAllItems->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SELECTION_FILTER_BASE::OnFilterChanged ), NULL, this ); m_cbLockedItems->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SELECTION_FILTER_BASE::OnFilterChanged ), NULL, this ); m_cbFootprints->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SELECTION_FILTER_BASE::OnFilterChanged ), NULL, this ); diff --git a/pcbnew/widgets/panel_selection_filter_base.fbp b/pcbnew/widgets/panel_selection_filter_base.fbp index f358b00ab3..d39d4abdcf 100644 --- a/pcbnew/widgets/panel_selection_filter_base.fbp +++ b/pcbnew/widgets/panel_selection_filter_base.fbp @@ -1,6 +1,6 @@ - + ; C++ @@ -14,6 +14,7 @@ panel_selection_filter_base 1000 none + 1 Selection Filter @@ -25,6 +26,7 @@ 1 1 UI + 0 0 0 @@ -46,10 +48,10 @@ 249,146 WX_PANEL; widgets/wx_panel.h; forward_declare + 0 wxTAB_TRAVERSAL - OnUpdateUI wxBOTH diff --git a/pcbnew/widgets/panel_selection_filter_base.h b/pcbnew/widgets/panel_selection_filter_base.h index 8ff997746c..5fdc3a047e 100644 --- a/pcbnew/widgets/panel_selection_filter_base.h +++ b/pcbnew/widgets/panel_selection_filter_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Oct 26 2018) +// C++ code generated with wxFormBuilder (version 3.10.0-4761b0c) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -44,14 +44,14 @@ class PANEL_SELECTION_FILTER_BASE : public WX_PANEL wxCheckBox* m_cbDimensions; wxCheckBox* m_cbOtherItems; - // Virtual event handlers, overide them in your derived class - virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); } + // Virtual event handlers, override them in your derived class virtual void OnFilterChanged( wxCommandEvent& event ) { event.Skip(); } public: PANEL_SELECTION_FILTER_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 249,146 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + ~PANEL_SELECTION_FILTER_BASE(); };