KiCad PCB EDA Suite
dialog_find_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jan 15 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_SearchTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), 0 );
27  m_SearchTextCtrl->SetMaxLength( 0 );
28  bSizerLeft->Add( m_SearchTextCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
29 
30  m_NoMouseWarpCheckBox = new wxCheckBox( this, wxID_ANY, _("Do not warp mouse pointer"), wxDefaultPosition, wxDefaultSize, 0 );
31  bSizerLeft->Add( m_NoMouseWarpCheckBox, 1, wxALL|wxEXPAND, 5 );
32 
33 
34  bSizerMain->Add( bSizerLeft, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
35 
36  wxBoxSizer* bSizerRight;
37  bSizerRight = new wxBoxSizer( wxVERTICAL );
38 
39  m_button1 = new wxButton( this, wxID_ANY, _("Find Item"), wxDefaultPosition, wxDefaultSize, 0 );
40  m_button1->SetDefault();
41  bSizerRight->Add( m_button1, 1, wxALL|wxEXPAND, 5 );
42 
43  m_button2 = new wxButton( this, wxID_ANY, _("Find Marker"), wxDefaultPosition, wxDefaultSize, 0 );
44  bSizerRight->Add( m_button2, 1, wxALL|wxEXPAND, 5 );
45 
46  m_button3 = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
47  bSizerRight->Add( m_button3, 1, wxALL|wxEXPAND, 5 );
48 
49 
50  bSizerMain->Add( bSizerRight, 0, wxALL, 5 );
51 
52 
53  this->SetSizer( bSizerMain );
54  this->Layout();
55  bSizerMain->Fit( this );
56 
57  this->Centre( wxBOTH );
58 
59  // Connect Events
60  this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::onClose ) );
61  this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_FIND_BASE::OnInitDialog ) );
62  m_button1->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindItemClick ), NULL, this );
63  m_button2->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindMarkerClick ), NULL, this );
64  m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonCloseClick ), NULL, this );
65 }
66 
68 {
69  // Disconnect Events
70  this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::onClose ) );
71  this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_FIND_BASE::OnInitDialog ) );
72  m_button1->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindItemClick ), NULL, this );
73  m_button2->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonFindMarkerClick ), NULL, this );
74  m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onButtonCloseClick ), NULL, this );
75 
76 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
virtual void onButtonCloseClick(wxCommandEvent &event)
wxStaticText * m_staticText1
virtual void onButtonFindItemClick(wxCommandEvent &event)
wxCheckBox * m_NoMouseWarpCheckBox
virtual void onButtonFindMarkerClick(wxCommandEvent &event)
virtual void OnInitDialog(wxInitDialogEvent &event)
wxButton * m_button2
wxButton * m_button1
wxButton * m_button3
wxTextCtrl * m_SearchTextCtrl
virtual void onClose(wxCloseEvent &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)