KiCad PCB EDA Suite
dialog_find_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 30 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
8 #include "dialog_find_base.h"
9 
11 
12 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 )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxHORIZONTAL );
18 
19  wxBoxSizer* bSizerLeft;
20  bSizerLeft = new wxBoxSizer( wxVERTICAL );
21 
22  m_staticText1 = new wxStaticText( this, wxID_ANY, _("Search for:"), wxDefaultPosition, wxDefaultSize, 0 );
23  m_staticText1->Wrap( -1 );
24  bSizerLeft->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
25 
26  m_SearchCombo = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
27  bSizerLeft->Add( m_SearchCombo, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
28 
29  wxBoxSizer* bSizer4;
30  bSizer4 = new wxBoxSizer( wxHORIZONTAL );
31 
32  m_matchCase = new wxCheckBox( this, wxID_ANY, _("Match case"), wxDefaultPosition, wxDefaultSize, 0 );
33  bSizer4->Add( m_matchCase, 0, wxALL, 5 );
34 
35  m_matchWords = new wxCheckBox( this, wxID_ANY, _("Words"), wxDefaultPosition, wxDefaultSize, 0 );
36  bSizer4->Add( m_matchWords, 0, wxALL, 5 );
37 
38  m_wildcards = new wxCheckBox( this, wxID_ANY, _("Wildcards"), wxDefaultPosition, wxDefaultSize, 0 );
39  bSizer4->Add( m_wildcards, 0, wxALL, 5 );
40 
41 
42  bSizerLeft->Add( bSizer4, 1, wxEXPAND|wxTOP, 5 );
43 
44 
45  bSizerMain->Add( bSizerLeft, 1, wxEXPAND|wxALL, 5 );
46 
47  wxBoxSizer* bSizerRight;
48  bSizerRight = new wxBoxSizer( wxVERTICAL );
49 
50  m_button1 = new wxButton( this, wxID_ANY, _("Find Item"), wxDefaultPosition, wxDefaultSize, 0 );
51  m_button1->SetDefault();
52  bSizerRight->Add( m_button1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
53 
54  m_button2 = new wxButton( this, wxID_ANY, _("Find Marker"), wxDefaultPosition, wxDefaultSize, 0 );
55  bSizerRight->Add( m_button2, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
56 
57  m_button3 = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
58  bSizerRight->Add( m_button3, 1, wxALL|wxEXPAND, 5 );
59 
60 
61  bSizerMain->Add( bSizerRight, 0, wxALL, 5 );
62 
63 
64  this->SetSizer( bSizerMain );
65  this->Layout();
66  bSizerMain->Fit( this );
67 
68  this->Centre( wxBOTH );
69 
70  // Connect Events
71  this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::onClose ) );
72  this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_FIND_BASE::OnInitDialog ) );
73  m_SearchCombo->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_FIND_BASE::OnTextEnter ), NULL, this );
74  m_button1->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindItemClick ), NULL, this );
75  m_button2->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindMarkerClick ), NULL, this );
76  m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonCloseClick ), NULL, this );
77 }
78 
80 {
81  // Disconnect Events
82  this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::onClose ) );
83  this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_FIND_BASE::OnInitDialog ) );
84  m_SearchCombo->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_FIND_BASE::OnTextEnter ), NULL, this );
85  m_button1->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindItemClick ), NULL, this );
86  m_button2->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindMarkerClick ), NULL, this );
87  m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonCloseClick ), NULL, this );
88 
89 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:83
virtual void onButtonCloseClick(wxCommandEvent &event)
wxStaticText * m_staticText1
virtual void onButtonFindItemClick(wxCommandEvent &event)
wxComboBox * m_SearchCombo
wxCheckBox * m_matchCase
virtual void onButtonFindMarkerClick(wxCommandEvent &event)
wxCheckBox * m_wildcards
virtual void OnInitDialog(wxInitDialogEvent &event)
wxButton * m_button2
wxButton * m_button1
#define _(s)
wxButton * m_button3
virtual void onClose(wxCloseEvent &event)
wxCheckBox * m_matchWords
virtual void OnTextEnter(wxCommandEvent &event)
DIALOG_FIND_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Find"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)