12DIALOG_BOARD_STATS_JOB_BASE::DIALOG_BOARD_STATS_JOB_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 );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxFlexGridSizer* fgSizer1;
20 fgSizer1 =
new wxFlexGridSizer( 0, 2, 5, 5 );
21 fgSizer1->AddGrowableCol( 1 );
22 fgSizer1->SetFlexibleDirection( wxBOTH );
23 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
25 m_textOutputPath =
new wxStaticText(
this, wxID_ANY,
_(
"Output file:"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_textCtrlOutputPath =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
34 m_staticText18 =
new wxStaticText(
this, wxID_ANY,
_(
"Format:"), wxDefaultPosition, wxDefaultSize, 0 );
38 wxArrayString m_choiceFormatChoices;
39 m_choiceFormat =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFormatChoices, 0 );
43 m_lblUnits =
new wxStaticText(
this, wxID_ANY,
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
45 fgSizer1->Add(
m_lblUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
47 wxString m_choiceUnitsChoices[] = {
_(
"Millimeters"),
_(
"Inches") };
48 int m_choiceUnitsNChoices =
sizeof( m_choiceUnitsChoices ) /
sizeof( wxString );
49 m_choiceUnits =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
51 fgSizer1->Add(
m_choiceUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
54 bSizerMain->Add( fgSizer1, 1, wxALL|wxEXPAND, 10 );
56 wxGridSizer* gOptionsSizer;
57 gOptionsSizer =
new wxGridSizer( 0, 1, 10, 0 );
59 m_checkBoxSubtractHoles =
new wxCheckBox(
this, wxID_ANY,
_(
"Subtract holes from board area"), wxDefaultPosition, wxDefaultSize, 0 );
69 bSizerMain->Add( gOptionsSizer, 1, wxBOTTOM|wxEXPAND|wxLEFT, 5 );
78 bSizerMain->Add(
m_sdbSizer1, 0, wxALL|wxEXPAND|wxTOP, 5 );
81 this->SetSizer( bSizerMain );
84 this->Centre( wxBOTH );