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 )
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,
_(
"Whole &words only"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_wildcards =
new wxCheckBox(
this, wxID_ANY,
_(
"Wi&ldcards"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_wrap =
new wxCheckBox(
this, wxID_ANY,
_(
"Wra&p"), 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_includeNets =
new wxCheckBox(
this, wxID_ANY,
_(
"Search &net names"), wxDefaultPosition, wxDefaultSize, 0 );
83 leftSizer->Add( sizerInclude, 0, wxEXPAND, 5 );
86 topSizer->Add( leftSizer, 1, wxEXPAND, 5 );
88 wxBoxSizer* buttonSizer;
89 buttonSizer =
new wxBoxSizer( wxVERTICAL );
91 m_findNext =
new wxButton(
this, wxID_ANY,
_(
"Find Next"), wxDefaultPosition, wxDefaultSize, 0 );
94 buttonSizer->Add(
m_findNext, 0, wxALIGN_TOP|wxALL|wxEXPAND, 5 );
96 m_findPrevious =
new wxButton(
this, wxID_ANY,
_(
"Find Previous"), wxDefaultPosition, wxDefaultSize, 0 );
97 buttonSizer->Add(
m_findPrevious, 0, wxALIGN_LEFT|wxALL|wxEXPAND, 5 );
99 m_searchAgain =
new wxButton(
this, wxID_ANY,
_(
"Restart Search"), wxDefaultPosition, wxDefaultSize, 0 );
102 m_closeButton =
new wxButton(
this, wxID_CANCEL,
_(
"Close"), wxDefaultPosition, wxDefaultSize, 0 );
106 topSizer->Add( buttonSizer, 0, 0, 5 );
109 bSizer10->Add( topSizer, 0, wxEXPAND, 5 );
111 wxStaticLine* staticline;
112 staticline =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
113 bSizer10->Add( staticline, 0, wxEXPAND | wxALL, 5 );
115 wxBoxSizer* sizerStatus;
116 sizerStatus =
new wxBoxSizer( wxHORIZONTAL );
118 m_status =
new wxStaticText(
this, wxID_ANY,
_(
"Status"), wxDefaultPosition, wxDefaultSize, 0 );
120 sizerStatus->Add(
m_status, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
123 bSizer10->Add( sizerStatus, 0, wxEXPAND, 5 );
126 this->SetSizer( bSizer10 );
128 bSizer10->Fit(
this );
130 this->Centre( wxBOTH );
virtual void onSearchAgainClick(wxCommandEvent &event)
virtual void OnCloseButtonClick(wxCommandEvent &event)
wxCheckBox * m_includeTexts
wxCheckBox * m_includeValues
wxButton * m_findPrevious
wxStaticText * searchStringLabel
wxComboBox * m_searchCombo
wxCheckBox * m_includeReferences
virtual void OnClose(wxCloseEvent &event)
wxCheckBox * m_matchWords
wxCheckBox * m_includeNets
virtual void onTextEnter(wxCommandEvent &event)
virtual void onFindPreviousClick(wxCommandEvent &event)
wxCheckBox * m_includeMarkers
virtual void onFindNextClick(wxCommandEvent &event)
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...