Cleanup. (And fix compile issue with test.)

This commit is contained in:
Jeff Young 2025-08-08 18:15:35 +01:00
parent 9930e3b252
commit 5df10e23b9
6 changed files with 0 additions and 18 deletions

View File

@ -393,15 +393,6 @@ void DIALOG_FIND::search( bool aDirection )
}
void DIALOG_FIND::OnCloseButtonClick( wxCommandEvent& aEvent )
{
wxCloseEvent tmp;
OnClose( tmp );
aEvent.Skip();
}
bool DIALOG_FIND::Show( bool show )
{
bool ret = DIALOG_FIND_BASE::Show( show );

View File

@ -81,7 +81,6 @@ public:
bool Show( bool show = true ) override;
protected:
void OnCloseButtonClick( wxCommandEvent& aEvent ) override;
void OnBoardChanged( wxCommandEvent& event );
private:

View File

@ -156,7 +156,6 @@ DIALOG_FIND_BASE::DIALOG_FIND_BASE( wxWindow* parent, wxWindowID id, const wxStr
this->Centre( wxBOTH );
// Connect Events
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::OnClose ) );
m_searchCombo->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_FIND_BASE::onTextEnter ), NULL, this );
m_matchCase->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onOptionChanged ), NULL, this );
m_matchWords->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onOptionChanged ), NULL, this );
@ -177,7 +176,6 @@ DIALOG_FIND_BASE::DIALOG_FIND_BASE( wxWindow* parent, wxWindowID id, const wxStr
DIALOG_FIND_BASE::~DIALOG_FIND_BASE()
{
// Disconnect Events
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::OnClose ) );
m_searchCombo->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_FIND_BASE::onTextEnter ), NULL, this );
m_matchCase->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onOptionChanged ), NULL, this );
m_matchWords->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onOptionChanged ), NULL, this );

View File

@ -59,7 +59,6 @@
<property name="window_extra_style"></property>
<property name="window_name"></property>
<property name="window_style"></property>
<event name="OnClose">OnClose</event>
<object class="wxBoxSizer" expanded="true">
<property name="minimum_size"></property>
<property name="name">bSizer10</property>

View File

@ -58,7 +58,6 @@ class DIALOG_FIND_BASE : public DIALOG_SHIM
wxHyperlinkCtrl* m_searchPanelLink;
// Virtual event handlers, override them in your derived class
virtual void OnClose( wxCloseEvent& event ) { event.Skip(); }
virtual void onTextEnter( wxCommandEvent& event ) { event.Skip(); }
virtual void onOptionChanged( wxCommandEvent& event ) { event.Skip(); }
virtual void onFindNextClick( wxCommandEvent& event ) { event.Skip(); }

View File

@ -78,10 +78,6 @@ void DIALOG_FIND::onShowSearchPanel( wxHyperlinkEvent& event )
{
}
void DIALOG_FIND::OnCloseButtonClick( wxCommandEvent& aEvent )
{
}
bool DIALOG_FIND::Show( bool show )
{
return true;