12DIALOG_RENDER_JOB_BASE::DIALOG_RENDER_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, 6, 5 );
21 fgSizer1->SetFlexibleDirection( wxBOTH );
22 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
24 m_textOutputPath =
new wxStaticText(
this, wxID_ANY,
_(
"Output file:"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_textCtrlOutputFile =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
33 m_formatLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Format:"), wxDefaultPosition, wxDefaultSize, 0 );
35 fgSizer1->Add(
m_formatLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
37 wxArrayString m_choiceFormatChoices;
38 m_choiceFormat =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFormatChoices, 0 );
42 m_dimensionsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Dimensions:"), wxDefaultPosition, wxDefaultSize, 0 );
47 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
49 m_spinCtrlWidth =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 128, 32767, 0 );
52 m_staticText17 =
new wxStaticText(
this, wxID_ANY,
_(
"px"), wxDefaultPosition, wxDefaultSize, 0 );
54 bSizer3->Add(
m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
56 m_staticText19 =
new wxStaticText(
this, wxID_ANY,
_(
"x"), wxDefaultPosition, wxDefaultSize, 0 );
58 bSizer3->Add(
m_staticText19, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
60 m_spinCtrlHeight =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 128, 32767, 0 );
61 bSizer3->Add(
m_spinCtrlHeight, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
63 m_staticText182 =
new wxStaticText(
this, wxID_ANY,
_(
"px"), wxDefaultPosition, wxDefaultSize, 0 );
68 fgSizer1->Add( bSizer3, 1, wxEXPAND, 5 );
70 m_qualityLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Quality:"), wxDefaultPosition, wxDefaultSize, 0 );
72 fgSizer1->Add(
m_qualityLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
74 wxArrayString m_choiceQualityChoices;
75 m_choiceQuality =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceQualityChoices, 0 );
79 m_backgroundStyleLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Background style:"), wxDefaultPosition, wxDefaultSize, 0 );
83 wxArrayString m_choiceBgStyleChoices;
84 m_choiceBgStyle =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceBgStyleChoices, 0 );
88 m_staticText15 =
new wxStaticText(
this, wxID_ANY,
_(
"Zoom:"), wxDefaultPosition, wxDefaultSize, 0 );
90 fgSizer1->Add(
m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
92 m_spinCtrlZoom =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 1, 0.1 );
97 bSizerMain->Add( fgSizer1, 1, wxALL|wxEXPAND, 5 );
99 wxBoxSizer* bSizerBottom;
100 bSizerBottom =
new wxBoxSizer( wxHORIZONTAL );
102 wxStaticBoxSizer* sbSizer1;
103 sbSizer1 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"View") ), wxVERTICAL );
105 wxGridBagSizer* gbSizer1;
106 gbSizer1 =
new wxGridBagSizer( 5, 5 );
107 gbSizer1->SetFlexibleDirection( wxBOTH );
108 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
110 m_sideLabel =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Side:"), wxDefaultPosition, wxDefaultSize, 0 );
112 gbSizer1->Add(
m_sideLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
114 wxArrayString m_choiceSideChoices;
115 m_choiceSide =
new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceSideChoices, 0 );
117 gbSizer1->Add(
m_choiceSide, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
119 m_cbFloor =
new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Show floor"), wxDefaultPosition, wxDefaultSize, 0 );
120 gbSizer1->Add(
m_cbFloor, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), 0, 5 );
123 sbSizer1->Add( gbSizer1, 1, wxEXPAND, 5 );
126 bSizerBottom->Add( sbSizer1, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
128 wxString m_radioProjectionChoices[] = {
_(
"Perspective"),
_(
"Orthogonal") };
129 int m_radioProjectionNChoices =
sizeof( m_radioProjectionChoices ) /
sizeof( wxString );
130 m_radioProjection =
new wxRadioBox(
this, wxID_ANY,
_(
"Projection"), wxDefaultPosition, wxDefaultSize, m_radioProjectionNChoices, m_radioProjectionChoices, 1, wxRA_SPECIFY_COLS );
135 bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
144 bSizerMain->Add(
m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
147 this->SetSizer( bSizerMain );
149 bSizerMain->Fit(
this );
151 this->Centre( wxBOTH );
wxChoice * m_choiceQuality
wxSpinCtrl * m_spinCtrlHeight
wxChoice * m_choiceBgStyle
wxRadioBox * m_radioProjection
wxStaticText * m_qualityLabel
wxStaticText * m_formatLabel
~DIALOG_RENDER_JOB_BASE()
wxStaticText * m_staticText17
wxStaticText * m_backgroundStyleLabel
wxButton * m_sdbSizer1Cancel
wxSpinCtrlDouble * m_spinCtrlZoom
wxStaticText * m_staticText19
wxStaticText * m_textOutputPath
wxStaticText * m_staticText15
wxSpinCtrl * m_spinCtrlWidth
wxStaticText * m_staticText182
wxStaticText * m_dimensionsLabel
DIALOG_RENDER_JOB_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Render PCB Job Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
wxStaticText * m_sideLabel
wxStdDialogButtonSizer * m_sdbSizer1
virtual void OnFormatChoice(wxCommandEvent &event)
wxTextCtrl * m_textCtrlOutputFile
wxChoice * m_choiceFormat
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...