14DIALOG_DRC_BASE::DIALOG_DRC_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
18 wxBoxSizer* m_MainSizer;
19 m_MainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxBoxSizer* bSizerOptions;
22 bSizerOptions =
new wxBoxSizer( wxHORIZONTAL );
25 bSizer12 =
new wxBoxSizer( wxVERTICAL );
27 m_cbRefillZones =
new wxCheckBox(
this, wxID_ANY,
_(
"Refill all zones before performing DRC"), wxDefaultPosition, wxDefaultSize, 0 );
30 m_cbReportAllTrackErrors =
new wxCheckBox(
this, wxID_ANY,
_(
"Report all errors for each track"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_cbReportAllTrackErrors->SetToolTip(
_(
"If selected, all DRC violations for tracks will be reported. This can be slow for complicated designs.\n\nIf unselected, only the first DRC violation will be reported for each track connection.") );
36 bSizerOptions->Add( bSizer12, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
38 wxBoxSizer* bSizerOptSettings;
39 bSizerOptSettings =
new wxBoxSizer( wxVERTICAL );
41 m_cbTestFootprints =
new wxCheckBox(
this, wxID_ANY,
_(
"Test for parity between PCB and schematic"), wxDefaultPosition, wxDefaultSize, 0 );
45 bSizerOptions->Add( bSizerOptSettings, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
48 m_MainSizer->Add( bSizerOptions, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 3 );
53 bSizer14 =
new wxBoxSizer( wxVERTICAL );
58 bSizer10 =
new wxBoxSizer( wxVERTICAL );
61 bSizer10->Add(
m_messages, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
63 wxBoxSizer* bGaugeMargins;
64 bGaugeMargins =
new wxBoxSizer( wxVERTICAL );
66 m_gauge =
new wxGauge(
m_panelMessages, wxID_ANY, 1000, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );
68 bGaugeMargins->Add(
m_gauge, 0, wxALL|wxEXPAND, 5 );
71 bSizer10->Add( bGaugeMargins, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
88 bSizer13 =
new wxBoxSizer( wxVERTICAL );
94 wxBoxSizer* bSizerViolationsBox;
95 bSizerViolationsBox =
new wxBoxSizer( wxVERTICAL );
97 bSizerViolationsBox->SetMinSize( wxSize( -1,320 ) );
99 m_markerDataView->SetToolTip(
_(
"Click on items to highlight them on the board.") );
104 bSizerViolationsBox->Add( 0, 8, 0, wxEXPAND, 5 );
112 wxBoxSizer* bSizerUnconnectedBox;
113 bSizerUnconnectedBox =
new wxBoxSizer( wxVERTICAL );
119 bSizerUnconnectedBox->Add( 0, 8, 0, wxEXPAND, 5 );
127 wxBoxSizer* bSizerFootprintsBox;
128 bSizerFootprintsBox =
new wxBoxSizer( wxVERTICAL );
134 bSizerFootprintsBox->Add( 0, 8, 0, wxEXPAND, 5 );
142 wxBoxSizer* bSizer15;
143 bSizer15 =
new wxBoxSizer( wxVERTICAL );
152 bSizer15->Add( 0, 7, 0, wxEXPAND, 5 );
160 bSizer13->Add(
m_Notebook, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
171 bSizer9 =
new wxBoxSizer( wxVERTICAL );
173 wxBoxSizer* bSeveritySizer;
174 bSeveritySizer =
new wxBoxSizer( wxHORIZONTAL );
176 m_showLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Show:"), wxDefaultPosition, wxDefaultSize, 0 );
178 bSeveritySizer->Add(
m_showLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
180 m_showAll =
new wxCheckBox(
this, wxID_ANY,
_(
"All"), wxDefaultPosition, wxDefaultSize, 0 );
181 bSeveritySizer->Add(
m_showAll, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
184 bSeveritySizer->Add( 35, 0, 0, wxEXPAND, 5 );
186 m_showErrors =
new wxCheckBox(
this, wxID_ANY,
_(
"Errors"), wxDefaultPosition, wxDefaultSize, 0 );
187 bSeveritySizer->Add(
m_showErrors, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
190 bSeveritySizer->Add(
m_errorsBadge, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 25 );
192 m_showWarnings =
new wxCheckBox(
this, wxID_ANY,
_(
"Warnings"), wxDefaultPosition, wxDefaultSize, 0 );
193 bSeveritySizer->Add(
m_showWarnings, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
196 bSeveritySizer->Add(
m_warningsBadge, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 25 );
198 m_showExclusions =
new wxCheckBox(
this, wxID_ANY,
_(
"Exclusions"), wxDefaultPosition, wxDefaultSize, 0 );
199 bSeveritySizer->Add(
m_showExclusions, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
202 bSeveritySizer->Add(
m_exclusionsBadge, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 25 );
205 bSeveritySizer->Add( 5, 0, 1, wxEXPAND, 5 );
207 m_saveReport =
new wxButton(
this, wxID_ANY,
_(
"Save..."), wxDefaultPosition, wxDefaultSize, 0 );
208 bSeveritySizer->Add(
m_saveReport, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
211 bSizer9->Add( bSeveritySizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
214 m_MainSizer->Add( bSizer9, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
237 this->SetSizer( m_MainSizer );
239 m_MainSizer->Fit(
this );
wxCheckBox * m_cbRefillZones
wxHyperlinkCtrl * m_violationSeveritiesLink
virtual void OnCancelClick(wxCommandEvent &event)
virtual void OnSaveReport(wxCommandEvent &event)
wxPanel * m_panelMessages
wxButton * m_DeleteAllMarkersButton
wxNotebook * m_runningNotebook
wxPanel * m_panelUnconnectedItems
wxStdDialogButtonSizer * m_sdbSizer
wxCheckBox * m_showExclusions
wxCheckBox * m_showErrors
virtual void OnErrorLinkClicked(wxHtmlLinkEvent &event)
virtual void OnSeverity(wxCommandEvent &event)
virtual void OnActivateDlg(wxActivateEvent &event)
virtual void OnChangingNotebookPage(wxNotebookEvent &event)
wxDataViewCtrl * m_unconnectedDataView
virtual void OnDeleteAllClick(wxCommandEvent &event)
wxDataViewCtrl * m_footprintsDataView
NUMBER_BADGE * m_warningsBadge
wxCheckBox * m_cbReportAllTrackErrors
wxPanel * m_panelFootprintWarnings
NUMBER_BADGE * m_exclusionsBadge
wxSimplebook * m_runningResultsBook
virtual void OnClose(wxCloseEvent &event)
wxButton * m_DeleteCurrentMarkerButton
virtual void OnRunDRCClick(wxCommandEvent &event)
virtual void OnDeleteOneClick(wxCommandEvent &event)
wxButton * m_sdbSizerCancel
wxStaticText * m_showLabel
virtual void OnDRCItemSelected(wxDataViewEvent &event)
wxCheckBox * m_cbTestFootprints
DIALOG_DRC_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Design Rules Checker"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnIgnoredItemRClick(wxListEvent &event)
wxCheckBox * m_showWarnings
wxBoxSizer * m_sizerButtons
wxListCtrl * m_ignoredList
NUMBER_BADGE * m_errorsBadge
WX_HTML_REPORT_BOX * m_messages
wxPanel * m_panelViolations
virtual void OnDRCItemRClick(wxDataViewEvent &event)
virtual void OnDRCItemDClick(wxDataViewEvent &event)
virtual void OnEditViolationSeverities(wxHyperlinkEvent &event)
wxDataViewCtrl * m_markerDataView
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.