KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_find_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
8#include "dialog_find_base.h"
9
11
12DIALOG_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* bSizer10;
17 bSizer10 = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* topSizer;
20 topSizer = new wxBoxSizer( wxHORIZONTAL );
21
22 wxBoxSizer* leftSizer;
23 leftSizer = new wxBoxSizer( wxVERTICAL );
24
25 wxBoxSizer* bSizer8;
26 bSizer8 = new wxBoxSizer( wxHORIZONTAL );
27
28 searchStringLabel = new wxStaticText( this, wxID_ANY, _("Search for:"), wxDefaultPosition, wxDefaultSize, 0 );
29 searchStringLabel->Wrap( -1 );
30 bSizer8->Add( searchStringLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
31
32 m_searchCombo = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN|wxTE_PROCESS_ENTER );
33 m_searchCombo->SetToolTip( _("Text with optional wildcards") );
34
35 bSizer8->Add( m_searchCombo, 1, wxALL|wxEXPAND, 5 );
36
37
38 leftSizer->Add( bSizer8, 1, wxEXPAND, 5 );
39
40 wxBoxSizer* sizerOptions;
41 sizerOptions = new wxBoxSizer( wxHORIZONTAL );
42
43 m_matchCase = new wxCheckBox( this, wxID_ANY, _("Match &case"), wxDefaultPosition, wxDefaultSize, 0 );
44 sizerOptions->Add( m_matchCase, 0, wxALL, 5 );
45
46 m_matchWords = new wxCheckBox( this, wxID_ANY, _("Whole &words only"), wxDefaultPosition, wxDefaultSize, 0 );
47 sizerOptions->Add( m_matchWords, 0, wxALL, 5 );
48
49 m_wildcards = new wxCheckBox( this, wxID_ANY, _("Wi&ldcards"), wxDefaultPosition, wxDefaultSize, 0 );
50 sizerOptions->Add( m_wildcards, 0, wxALL, 5 );
51
52 m_wrap = new wxCheckBox( this, wxID_ANY, _("Wra&p"), wxDefaultPosition, wxDefaultSize, 0 );
53 m_wrap->SetValue(true);
54 sizerOptions->Add( m_wrap, 0, wxALL, 5 );
55
56
57 leftSizer->Add( sizerOptions, 1, wxALL|wxEXPAND, 0 );
58
59 wxBoxSizer* sizerInclude;
60 sizerInclude = new wxBoxSizer( wxVERTICAL );
61
62 m_includeReferences = new wxCheckBox( this, wxID_ANY, _("Search footprint reference &designators"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_includeReferences->SetValue(true);
64 sizerInclude->Add( m_includeReferences, 0, wxALL, 5 );
65
66 m_includeValues = new wxCheckBox( this, wxID_ANY, _("Search footprint &values"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_includeValues->SetValue(true);
68 sizerInclude->Add( m_includeValues, 0, wxALL, 5 );
69
70 m_includeTexts = new wxCheckBox( this, wxID_ANY, _("Search &other text items"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_includeTexts->SetValue(true);
72 sizerInclude->Add( m_includeTexts, 0, wxALL, 5 );
73
74 m_includeMarkers = new wxCheckBox( this, wxID_ANY, _("Search DRC &markers"), wxDefaultPosition, wxDefaultSize, 0 );
75 m_includeMarkers->SetValue(true);
76 sizerInclude->Add( m_includeMarkers, 0, wxALL, 5 );
77
78 m_includeNets = new wxCheckBox( this, wxID_ANY, _("Search &net names"), wxDefaultPosition, wxDefaultSize, 0 );
79 m_includeNets->SetValue(true);
80 sizerInclude->Add( m_includeNets, 0, wxALL, 5 );
81
82
83 leftSizer->Add( sizerInclude, 0, wxEXPAND, 5 );
84
85
86 topSizer->Add( leftSizer, 1, wxEXPAND, 5 );
87
88 wxBoxSizer* buttonSizer;
89 buttonSizer = new wxBoxSizer( wxVERTICAL );
90
91 m_findNext = new wxButton( this, wxID_ANY, _("Find Next"), wxDefaultPosition, wxDefaultSize, 0 );
92
93 m_findNext->SetDefault();
94 buttonSizer->Add( m_findNext, 0, wxALIGN_TOP|wxALL|wxEXPAND, 5 );
95
96 m_findPrevious = new wxButton( this, wxID_ANY, _("Find Previous"), wxDefaultPosition, wxDefaultSize, 0 );
97 buttonSizer->Add( m_findPrevious, 0, wxALIGN_LEFT|wxALL|wxEXPAND, 5 );
98
99 m_searchAgain = new wxButton( this, wxID_ANY, _("Restart Search"), wxDefaultPosition, wxDefaultSize, 0 );
100 buttonSizer->Add( m_searchAgain, 0, wxALL|wxEXPAND, 5 );
101
102 m_closeButton = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
103 buttonSizer->Add( m_closeButton, 0, wxALL|wxEXPAND, 5 );
104
105
106 topSizer->Add( buttonSizer, 0, 0, 5 );
107
108
109 bSizer10->Add( topSizer, 0, wxEXPAND, 5 );
110
111 wxStaticLine* staticline;
112 staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
113 bSizer10->Add( staticline, 0, wxEXPAND | wxALL, 5 );
114
115 wxBoxSizer* sizerStatus;
116 sizerStatus = new wxBoxSizer( wxHORIZONTAL );
117
118 m_status = new wxStaticText( this, wxID_ANY, _("Status"), wxDefaultPosition, wxDefaultSize, 0 );
119 m_status->Wrap( -1 );
120 sizerStatus->Add( m_status, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
121
122
123 bSizer10->Add( sizerStatus, 0, wxEXPAND, 5 );
124
125
126 this->SetSizer( bSizer10 );
127 this->Layout();
128 bSizer10->Fit( this );
129
130 this->Centre( wxBOTH );
131
132 // Connect Events
133 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::OnClose ) );
134 m_searchCombo->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_FIND_BASE::onTextEnter ), NULL, this );
135 m_findNext->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onFindNextClick ), NULL, this );
136 m_findPrevious->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onFindPreviousClick ), NULL, this );
137 m_searchAgain->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onSearchAgainClick ), NULL, this );
138 m_closeButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::OnCloseButtonClick ), NULL, this );
139}
140
142{
143 // Disconnect Events
144 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIND_BASE::OnClose ) );
145 m_searchCombo->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_FIND_BASE::onTextEnter ), NULL, this );
146 m_findNext->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onFindNextClick ), NULL, this );
147 m_findPrevious->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onFindPreviousClick ), NULL, this );
148 m_searchAgain->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::onSearchAgainClick ), NULL, this );
149 m_closeButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIND_BASE::OnCloseButtonClick ), NULL, this );
150
151}
wxCheckBox * m_matchCase
virtual void onSearchAgainClick(wxCommandEvent &event)
virtual void OnCloseButtonClick(wxCommandEvent &event)
wxCheckBox * m_includeTexts
wxCheckBox * m_includeValues
wxButton * m_findNext
wxButton * m_findPrevious
wxStaticText * searchStringLabel
wxComboBox * m_searchCombo
wxCheckBox * m_includeReferences
virtual void OnClose(wxCloseEvent &event)
wxCheckBox * m_matchWords
wxButton * m_closeButton
wxCheckBox * m_includeNets
virtual void onTextEnter(wxCommandEvent &event)
virtual void onFindPreviousClick(wxCommandEvent &event)
wxButton * m_searchAgain
wxStaticText * m_status
wxCheckBox * m_includeMarkers
virtual void onFindNextClick(wxCommandEvent &event)
wxCheckBox * m_wildcards
wxCheckBox * m_wrap
DIALOG_FIND_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)