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 )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17 bSizer10 =
new wxBoxSizer( wxVERTICAL );
20 topSizer =
new wxBoxSizer( wxHORIZONTAL );
22 wxBoxSizer* leftSizer;
23 leftSizer =
new wxBoxSizer( wxVERTICAL );
26 bSizer8 =
new wxBoxSizer( wxHORIZONTAL );
28 searchStringLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Search for:"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_searchCombo =
new wxComboBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0,
NULL, wxCB_DROPDOWN|wxTE_PROCESS_ENTER );
38 leftSizer->Add( bSizer8, 1, wxEXPAND, 5 );
40 wxBoxSizer* sizerOptions;
41 sizerOptions =
new wxBoxSizer( wxHORIZONTAL );
43 m_matchCase =
new wxCheckBox(
this, wxID_ANY,
_(
"Match case"), wxDefaultPosition, wxDefaultSize, 0 );
46 m_matchWords =
new wxCheckBox(
this, wxID_ANY,
_(
"Words"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_wildcards =
new wxCheckBox(
this, wxID_ANY,
_(
"Wildcards"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_wrap =
new wxCheckBox(
this, wxID_ANY,
_(
"Wrap"), wxDefaultPosition, wxDefaultSize, 0 );
54 sizerOptions->Add(
m_wrap, 0, wxALL, 5 );
57 leftSizer->Add( sizerOptions, 1, wxALL|wxEXPAND, 0 );
59 wxBoxSizer* sizerInclude;
60 sizerInclude =
new wxBoxSizer( wxVERTICAL );
62 m_includeReferences =
new wxCheckBox(
this, wxID_ANY,
_(
"Search footprint reference designators"), wxDefaultPosition, wxDefaultSize, 0 );
66 m_includeValues =
new wxCheckBox(
this, wxID_ANY,
_(
"Search footprint values"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_includeTexts =
new wxCheckBox(
this, wxID_ANY,
_(
"Search other text items"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_includeMarkers =
new wxCheckBox(
this, wxID_ANY,
_(
"Search DRC markers"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_includeVias =
new wxCheckBox(
this, wxID_ANY,
_(
"Vias"), wxDefaultPosition, wxDefaultSize, 0 );
85 leftSizer->Add( sizerInclude, 0, wxEXPAND, 5 );
88 topSizer->Add( leftSizer, 1, wxEXPAND, 5 );
90 wxBoxSizer* buttonSizer;
91 buttonSizer =
new wxBoxSizer( wxVERTICAL );
93 m_findNext =
new wxButton(
this, wxID_ANY,
_(
"Find Next"), wxDefaultPosition, wxDefaultSize, 0 );
96 buttonSizer->Add(
m_findNext, 0, wxALIGN_TOP|wxALL|wxEXPAND, 5 );
98 m_findPrevious =
new wxButton(
this, wxID_ANY,
_(
"Find Previous"), wxDefaultPosition, wxDefaultSize, 0 );
99 buttonSizer->Add(
m_findPrevious, 0, wxALIGN_LEFT|wxALL|wxEXPAND, 5 );
101 m_searchAgain =
new wxButton(
this, wxID_ANY,
_(
"Restart Search"), wxDefaultPosition, wxDefaultSize, 0 );
104 m_closeButton =
new wxButton(
this, wxID_CANCEL,
_(
"Close"), wxDefaultPosition, wxDefaultSize, 0 );
108 topSizer->Add( buttonSizer, 0, 0, 5 );
111 bSizer10->Add( topSizer, 0, wxEXPAND, 5 );
113 wxStaticLine* staticline;
114 staticline =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
115 bSizer10->Add( staticline, 0, wxEXPAND | wxALL, 5 );
117 wxBoxSizer* sizerStatus;
118 sizerStatus =
new wxBoxSizer( wxHORIZONTAL );
120 m_status =
new wxStaticText(
this, wxID_ANY,
_(
"Status"), wxDefaultPosition, wxDefaultSize, 0 );
122 sizerStatus->Add(
m_status, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
125 bSizer10->Add( sizerStatus, 0, wxEXPAND, 5 );
128 this->SetSizer( bSizer10 );
130 bSizer10->Fit(
this );
132 this->Centre( wxBOTH );
virtual void onFindPreviousClick(wxCommandEvent &event)
wxCheckBox * m_includeVias
wxStaticText * searchStringLabel
wxCheckBox * m_includeReferences
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
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)
virtual void onClose(wxCommandEvent &event)
wxComboBox * m_searchCombo
wxCheckBox * m_includeTexts
virtual void onFindNextClick(wxCommandEvent &event)
wxButton * m_findPrevious
virtual void onSearchAgainClick(wxCommandEvent &event)
wxCheckBox * m_includeMarkers
wxCheckBox * m_matchWords
virtual void onTextEnter(wxCommandEvent &event)
wxCheckBox * m_includeValues