15DIALOG_ERC_BASE::DIALOG_ERC_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
20 bSizer1 =
new wxBoxSizer( wxVERTICAL );
23 m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
27 bSizer1->Add(
m_infoBar, 0, wxEXPAND, 5 );
29 wxBoxSizer* bMainSizer;
30 bMainSizer =
new wxBoxSizer( wxVERTICAL );
35 bSizer14 =
new wxBoxSizer( wxVERTICAL );
40 bSizer10 =
new wxBoxSizer( wxVERTICAL );
43 bSizer10->Add(
m_messages, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
45 wxBoxSizer* bGaugeMargins;
46 bGaugeMargins =
new wxBoxSizer( wxVERTICAL );
48 m_gauge =
new wxGauge(
m_panelMessages, wxID_ANY, 1000, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );
50 bGaugeMargins->Add(
m_gauge, 0, wxALL|wxEXPAND, 5 );
53 bSizer10->Add( bGaugeMargins, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
70 bSizer13 =
new wxBoxSizer( wxVERTICAL );
72 m_notebook =
new wxNotebook(
results, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
74 wxBoxSizer* bViolationsSizer;
75 bViolationsSizer =
new wxBoxSizer( wxVERTICAL );
78 m_markerDataView->SetToolTip(
_(
"Click on items to highlight them on the board.") );
81 bViolationsSizer->Add(
m_markerDataView, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
84 bViolationsSizer->Add( 0, 8, 0, wxEXPAND, 5 );
93 bSizer15 =
new wxBoxSizer( wxVERTICAL );
96 bSizer15->Add(
m_ignoredList, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
102 bSizer15->Add( 0, 8, 0, wxEXPAND, 5 );
120 wxBoxSizer* bSizer11;
121 bSizer11 =
new wxBoxSizer( wxVERTICAL );
123 wxBoxSizer* bSeveritySizer;
124 bSeveritySizer =
new wxBoxSizer( wxHORIZONTAL );
126 m_showLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Show:"), wxDefaultPosition, wxDefaultSize, 0 );
128 bSeveritySizer->Add(
m_showLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
130 m_showAll =
new wxCheckBox(
this, wxID_ANY,
_(
"All"), wxDefaultPosition, wxDefaultSize, 0 );
131 bSeveritySizer->Add(
m_showAll, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
134 bSeveritySizer->Add( 35, 0, 0, wxEXPAND, 5 );
136 m_showErrors =
new wxCheckBox(
this, wxID_ANY,
_(
"Errors"), wxDefaultPosition, wxDefaultSize, 0 );
137 bSeveritySizer->Add(
m_showErrors, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
140 bSeveritySizer->Add(
m_errorsBadge, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 25 );
142 m_showWarnings =
new wxCheckBox(
this, wxID_ANY,
_(
"Warnings"), wxDefaultPosition, wxDefaultSize, 0 );
143 bSeveritySizer->Add(
m_showWarnings, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
146 bSeveritySizer->Add(
m_warningsBadge, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 25 );
148 m_showExclusions =
new wxCheckBox(
this, wxID_ANY,
_(
"Exclusions"), wxDefaultPosition, wxDefaultSize, 0 );
149 bSeveritySizer->Add(
m_showExclusions, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
152 bSeveritySizer->Add(
m_exclusionsBadge, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 25 );
155 bSeveritySizer->Add( 0, 0, 1, wxEXPAND, 5 );
157 m_saveReport =
new wxButton(
this, wxID_ANY,
_(
"Save..."), wxDefaultPosition, wxDefaultSize, 0 );
158 bSeveritySizer->Add(
m_saveReport, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
161 bSizer11->Add( bSeveritySizer, 0, wxEXPAND|wxALL, 5 );
164 bMainSizer->Add( bSizer11, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
167 bSizer1->Add( bMainSizer, 1, wxEXPAND|wxALL, 5 );
171 m_deleteOneMarker =
new wxButton(
this, wxID_ANY,
_(
"Delete Marker"), wxDefaultPosition, wxDefaultSize, 0 );
193 this->SetSizer( bSizer1 );
195 bSizer1->Fit(
this );
wxButton * m_sdbSizer1Cancel
wxSimplebook * m_runningResultsBook
wxPanel * m_panelMessages
wxCheckBox * m_showExclusions
virtual void OnLinkClicked(wxHtmlLinkEvent &event)
NUMBER_BADGE * m_errorsBadge
virtual void OnDeleteOneClick(wxCommandEvent &event)
wxHyperlinkCtrl * m_violationSeveritiesLink
virtual void OnCancelClick(wxCommandEvent &event)
virtual void OnSeverity(wxCommandEvent &event)
wxStaticText * m_showLabel
virtual void OnSaveReport(wxCommandEvent &event)
wxPanel * violationsPanel
wxCheckBox * m_showErrors
virtual void OnERCItemRClick(wxDataViewEvent &event)
NUMBER_BADGE * m_exclusionsBadge
wxListCtrl * m_ignoredList
wxStdDialogButtonSizer * m_sdbSizer1
wxBoxSizer * m_buttonsSizer
WX_HTML_REPORT_BOX * m_messages
wxDataViewCtrl * m_markerDataView
wxButton * m_deleteAllMarkers
NUMBER_BADGE * m_warningsBadge
virtual void OnERCItemSelected(wxDataViewEvent &event)
virtual void OnIgnoredItemRClick(wxListEvent &event)
wxButton * m_deleteOneMarker
virtual void OnDeleteAllClick(wxCommandEvent &event)
virtual void OnEditViolationSeverities(wxHyperlinkEvent &event)
virtual void OnRunERCClick(wxCommandEvent &event)
wxCheckBox * m_showWarnings
DIALOG_ERC_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Electrical Rules Checker"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxNotebook * m_runningNotebook
virtual void OnERCItemDClick(wxDataViewEvent &event)
virtual void OnCloseErcDialog(wxCloseEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
A simple UI element that puts a number on top of a colored rounded rectangle with a fill color that s...
A slimmed down version of WX_HTML_REPORT_PANEL.
A modified version of the wxInfoBar class that allows us to:
#define ID_ERASE_DRC_MARKERS