14DIALOG_BOARD_STATISTICS_BASE::DIALOG_BOARD_STATISTICS_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( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bMainBoxSizer;
19 bMainBoxSizer =
new wxBoxSizer( wxVERTICAL );
21 topNotebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
23 wxBoxSizer* bGeneralPanelSizer;
24 bGeneralPanelSizer =
new wxBoxSizer( wxVERTICAL );
26 wxFlexGridSizer* fgSizerContents;
27 fgSizerContents =
new wxFlexGridSizer( 0, 2, 0, 0 );
28 fgSizerContents->AddGrowableCol( 0 );
29 fgSizerContents->AddGrowableCol( 1 );
30 fgSizerContents->AddGrowableRow( 0 );
31 fgSizerContents->AddGrowableRow( 1 );
32 fgSizerContents->SetFlexibleDirection( wxBOTH );
33 fgSizerContents->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
35 wxBoxSizer* bSizerComponents;
36 bSizerComponents =
new wxBoxSizer( wxVERTICAL );
38 wxStaticText* componentsLabel;
39 componentsLabel =
new wxStaticText(
m_generalPanel, wxID_ANY,
_(
"Components"), wxDefaultPosition, wxDefaultSize, 0 );
40 componentsLabel->Wrap( -1 );
41 bSizerComponents->Add( componentsLabel, 0, wxALL, 5 );
69 bSizerComponents->Add(
m_gridComponents, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
72 fgSizerContents->Add( bSizerComponents, 1, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
74 wxBoxSizer* bSizerPads;
75 bSizerPads =
new wxBoxSizer( wxVERTICAL );
77 wxStaticText* padsLabel;
78 padsLabel =
new wxStaticText(
m_generalPanel, wxID_ANY,
_(
"Pads"), wxDefaultPosition, wxDefaultSize, 0 );
79 padsLabel->Wrap( -1 );
80 bSizerPads->Add( padsLabel, 0, wxALL, 5 );
95 m_gridPads->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
100 m_gridPads->SetRowLabelAlignment( wxALIGN_RIGHT, wxALIGN_CENTER );
105 m_gridPads->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
108 bSizerPads->Add(
m_gridPads, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
111 fgSizerContents->Add( bSizerPads, 1, wxEXPAND|wxBOTTOM|wxLEFT, 5 );
113 wxBoxSizer* bSizerBrdSize;
114 bSizerBrdSize =
new wxBoxSizer( wxVERTICAL );
116 wxStaticText* boardLabel;
117 boardLabel =
new wxStaticText(
m_generalPanel, wxID_ANY,
_(
"Board Size"), wxDefaultPosition, wxDefaultSize, 0 );
118 boardLabel->Wrap( -1 );
119 bSizerBrdSize->Add( boardLabel, 0, wxALL, 5 );
134 m_gridBoard->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
139 m_gridBoard->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
144 m_gridBoard->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
147 bSizerBrdSize->Add(
m_gridBoard, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
150 fgSizerContents->Add( bSizerBrdSize, 1, wxEXPAND|wxRIGHT, 5 );
152 wxBoxSizer* bSizerVias;
153 bSizerVias =
new wxBoxSizer( wxVERTICAL );
157 bSizerVias->Add(
viasLabel, 0, wxALL, 5 );
172 m_gridVias->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
177 m_gridVias->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
182 m_gridVias->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
185 bSizerVias->Add(
m_gridVias, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
188 fgSizerContents->Add( bSizerVias, 1, wxEXPAND|wxLEFT, 5 );
191 bGeneralPanelSizer->Add( fgSizerContents, 1, wxEXPAND, 5 );
193 wxGridSizer* gOptionsSizer;
194 gOptionsSizer =
new wxGridSizer( 0, 1, 0, 0 );
203 bGeneralPanelSizer->Add( gOptionsSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 2 );
211 wxBoxSizer* bDrillsSizer;
212 bDrillsSizer =
new wxBoxSizer( wxVERTICAL );
236 m_gridDrills->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
241 m_gridDrills->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
246 m_gridDrills->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
247 bDrillsSizer->Add(
m_gridDrills, 1, wxALL|wxEXPAND, 5 );
255 bMainBoxSizer->Add(
topNotebook, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
257 wxBoxSizer* bSizerBottom;
258 bSizerBottom =
new wxBoxSizer( wxHORIZONTAL );
260 m_buttonSaveReport =
new wxButton(
this, wxID_ANY,
_(
"Generate Report File..."), wxDefaultPosition, wxDefaultSize, 0 );
261 bSizerBottom->Add(
m_buttonSaveReport, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 15 );
271 bMainBoxSizer->Add( bSizerBottom, 0, wxEXPAND, 5 );
274 this->SetSizer( bMainBoxSizer );
276 bMainBoxSizer->Fit(
this );
278 this->Centre( wxBOTH );
wxButton * m_buttonSaveReport
wxCheckBox * m_checkBoxSubtractHoles
virtual void saveReportClicked(wxCommandEvent &event)
~DIALOG_BOARD_STATISTICS_BASE()
wxButton * m_sdbControlSizerCancel
DIALOG_BOARD_STATISTICS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Board Statistics"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxGrid * m_gridComponents
wxCheckBox * m_checkBoxExcludeComponentsNoPins
virtual void windowSize(wxSizeEvent &event)
virtual void drillGridSize(wxSizeEvent &event)
virtual void checkboxClicked(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbControlSizer
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...