2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2019-07-26 23:52:17 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Dec 30 2017)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2019-07-26 23:52:17 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_find_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_FIND_BASE::DIALOG_FIND_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2017-01-22 21:51:37 +00:00
|
|
|
wxBoxSizer* bSizerLeft;
|
|
|
|
bSizerLeft = new wxBoxSizer( wxVERTICAL );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Search for:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText1->Wrap( -1 );
|
2017-01-22 21:51:37 +00:00
|
|
|
bSizerLeft->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2019-07-26 23:52:17 +00:00
|
|
|
m_SearchCombo = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
|
|
|
|
bSizerLeft->Add( m_SearchCombo, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2019-07-26 23:52:17 +00:00
|
|
|
wxBoxSizer* bSizer4;
|
|
|
|
bSizer4 = new wxBoxSizer( wxHORIZONTAL );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2019-07-26 23:52:17 +00:00
|
|
|
m_matchCase = new wxCheckBox( this, wxID_ANY, _("Match case"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer4->Add( m_matchCase, 0, wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2019-07-26 23:52:17 +00:00
|
|
|
m_matchWords = new wxCheckBox( this, wxID_ANY, _("Words"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer4->Add( m_matchWords, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
m_wildcards = new wxCheckBox( this, wxID_ANY, _("Wildcards"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer4->Add( m_wildcards, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerLeft->Add( bSizer4, 1, wxEXPAND|wxTOP, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizerLeft, 1, wxEXPAND|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2017-01-22 21:51:37 +00:00
|
|
|
wxBoxSizer* bSizerRight;
|
|
|
|
bSizerRight = new wxBoxSizer( wxVERTICAL );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_button1 = new wxButton( this, wxID_ANY, _("Find Item"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_button1->SetDefault();
|
2019-07-26 23:52:17 +00:00
|
|
|
bSizerRight->Add( m_button1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_button2 = new wxButton( this, wxID_ANY, _("Find Marker"), wxDefaultPosition, wxDefaultSize, 0 );
|
2019-07-26 23:52:17 +00:00
|
|
|
bSizerRight->Add( m_button2, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_button3 = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-01-22 21:51:37 +00:00
|
|
|
bSizerRight->Add( m_button3, 1, wxALL|wxEXPAND, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
2017-01-22 21:51:37 +00:00
|
|
|
bSizerMain->Add( bSizerRight, 0, wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
|
|
|
bSizerMain->Fit( this );
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::onClose ) );
|
2017-01-22 21:51:37 +00:00
|
|
|
this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_FIND_BASE::OnInitDialog ) );
|
2019-07-26 23:52:17 +00:00
|
|
|
m_SearchCombo->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_FIND_BASE::OnTextEnter ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_button1->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindItemClick ), NULL, this );
|
|
|
|
m_button2->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindMarkerClick ), NULL, this );
|
|
|
|
m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonCloseClick ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_FIND_BASE::~DIALOG_FIND_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::onClose ) );
|
2017-01-22 21:51:37 +00:00
|
|
|
this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_FIND_BASE::OnInitDialog ) );
|
2019-07-26 23:52:17 +00:00
|
|
|
m_SearchCombo->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_FIND_BASE::OnTextEnter ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_button1->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindItemClick ), NULL, this );
|
|
|
|
m_button2->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindMarkerClick ), NULL, this );
|
|
|
|
m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonCloseClick ), NULL, this );
|
|
|
|
|
|
|
|
}
|