12DIALOG_BOARD_STACKUP_JOB_BASE::DIALOG_BOARD_STACKUP_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_labelFormat =
new wxStaticText(
this, wxID_ANY,
_(
"Format:"), wxDefaultPosition, wxDefaultSize, 0 );
36 fgSizer1->Add(
m_labelFormat, 0, wxALIGN_CENTER_VERTICAL, 5 );
38 wxArrayString m_choiceFormatChoices;
39 m_choiceFormat =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFormatChoices, 0 );
43 m_labelUnits =
new wxStaticText(
this, wxID_ANY,
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
45 fgSizer1->Add(
m_labelUnits, 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, 0, wxEXPAND|wxALL, 10 );
56 m_sbSizerFields =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Include Fields") ), wxVERTICAL );
73 m_cbFinish =
new wxCheckBox(
m_sbSizerFields->GetStaticBox(), wxID_ANY,
_(
"Board finish"), wxDefaultPosition, wxDefaultSize, 0 );
80 bSizerMain->Add(
m_sbSizerFields, 0, wxEXPAND|wxLEFT|wxRIGHT|wxBOTTOM, 10 );
89 bSizerMain->Add(
m_sdbSizer1, 0, wxALL|wxEXPAND|wxTOP, 5 );
92 this->SetSizer( bSizerMain );
94 bSizerMain->Fit(
this );
96 this->Centre( wxBOTH );