KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_render_job_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
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 )
13{
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 wxFlexGridSizer* fgSizer1;
20 fgSizer1 = new wxFlexGridSizer( 0, 2, 6, 5 );
21 fgSizer1->SetFlexibleDirection( wxBOTH );
22 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
23
24 m_textOutputPath = new wxStaticText( this, wxID_ANY, _("Output file:"), wxDefaultPosition, wxDefaultSize, 0 );
25 m_textOutputPath->Wrap( -1 );
26 fgSizer1->Add( m_textOutputPath, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
27
28 m_textCtrlOutputFile = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
29 m_textCtrlOutputFile->SetMinSize( wxSize( 350,-1 ) );
30
31 fgSizer1->Add( m_textCtrlOutputFile, 0, 0, 5 );
32
33 m_formatLabel = new wxStaticText( this, wxID_ANY, _("Format:"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_formatLabel->Wrap( -1 );
35 fgSizer1->Add( m_formatLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
36
37 wxArrayString m_choiceFormatChoices;
38 m_choiceFormat = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFormatChoices, 0 );
39 m_choiceFormat->SetSelection( 0 );
40 fgSizer1->Add( m_choiceFormat, 0, 0, 5 );
41
42 m_dimensionsLabel = new wxStaticText( this, wxID_ANY, _("Dimensions:"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_dimensionsLabel->Wrap( -1 );
44 fgSizer1->Add( m_dimensionsLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
45
46 wxBoxSizer* bSizer3;
47 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
48
49 m_spinCtrlWidth = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 128, 32767, 0 );
50 bSizer3->Add( m_spinCtrlWidth, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
51
52 m_staticText17 = new wxStaticText( this, wxID_ANY, _("px"), wxDefaultPosition, wxDefaultSize, 0 );
53 m_staticText17->Wrap( -1 );
54 bSizer3->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
55
56 m_staticText19 = new wxStaticText( this, wxID_ANY, _("x"), wxDefaultPosition, wxDefaultSize, 0 );
57 m_staticText19->Wrap( -1 );
58 bSizer3->Add( m_staticText19, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
59
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 );
62
63 m_staticText182 = new wxStaticText( this, wxID_ANY, _("px"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_staticText182->Wrap( -1 );
65 bSizer3->Add( m_staticText182, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
66
67
68 fgSizer1->Add( bSizer3, 1, wxEXPAND, 5 );
69
70 m_qualityLabel = new wxStaticText( this, wxID_ANY, _("Quality:"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_qualityLabel->Wrap( -1 );
72 fgSizer1->Add( m_qualityLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
73
74 wxArrayString m_choiceQualityChoices;
75 m_choiceQuality = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceQualityChoices, 0 );
76 m_choiceQuality->SetSelection( 0 );
77 fgSizer1->Add( m_choiceQuality, 0, 0, 5 );
78
79 m_backgroundStyleLabel = new wxStaticText( this, wxID_ANY, _("Background style:"), wxDefaultPosition, wxDefaultSize, 0 );
80 m_backgroundStyleLabel->Wrap( -1 );
81 fgSizer1->Add( m_backgroundStyleLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
82
83 wxArrayString m_choiceBgStyleChoices;
84 m_choiceBgStyle = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceBgStyleChoices, 0 );
85 m_choiceBgStyle->SetSelection( 0 );
86 fgSizer1->Add( m_choiceBgStyle, 0, 0, 5 );
87
88 m_staticText15 = new wxStaticText( this, wxID_ANY, _("Zoom:"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_staticText15->Wrap( -1 );
90 fgSizer1->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
91
92 m_spinCtrlZoom = new wxSpinCtrlDouble( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 1, 0.1 );
93 m_spinCtrlZoom->SetDigits( 2 );
94 fgSizer1->Add( m_spinCtrlZoom, 0, 0, 5 );
95
96
97 bSizerMain->Add( fgSizer1, 1, wxALL|wxEXPAND, 5 );
98
99 wxBoxSizer* bSizerBottom;
100 bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
101
102 wxStaticBoxSizer* sbSizer1;
103 sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("View") ), wxVERTICAL );
104
105 wxGridBagSizer* gbSizer1;
106 gbSizer1 = new wxGridBagSizer( 5, 5 );
107 gbSizer1->SetFlexibleDirection( wxBOTH );
108 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
109
110 m_sideLabel = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Side:"), wxDefaultPosition, wxDefaultSize, 0 );
111 m_sideLabel->Wrap( -1 );
112 gbSizer1->Add( m_sideLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
113
114 wxArrayString m_choiceSideChoices;
115 m_choiceSide = new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceSideChoices, 0 );
116 m_choiceSide->SetSelection( 0 );
117 gbSizer1->Add( m_choiceSide, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
118
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 );
121
122
123 sbSizer1->Add( gbSizer1, 1, wxEXPAND, 5 );
124
125
126 bSizerBottom->Add( sbSizer1, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
127
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 );
131 m_radioProjection->SetSelection( 1 );
132 bSizerBottom->Add( m_radioProjection, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
133
134
135 bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
136
137 m_sdbSizer1 = new wxStdDialogButtonSizer();
138 m_sdbSizer1OK = new wxButton( this, wxID_OK );
139 m_sdbSizer1->AddButton( m_sdbSizer1OK );
140 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
141 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
142 m_sdbSizer1->Realize();
143
144 bSizerMain->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
145
146
147 this->SetSizer( bSizerMain );
148 this->Layout();
149 bSizerMain->Fit( this );
150
151 this->Centre( wxBOTH );
152
153 // Connect Events
154 m_choiceFormat->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RENDER_JOB_BASE::OnFormatChoice ), NULL, this );
155 m_choiceQuality->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RENDER_JOB_BASE::OnFormatChoice ), NULL, this );
156 m_choiceBgStyle->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RENDER_JOB_BASE::OnFormatChoice ), NULL, this );
157 m_choiceSide->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RENDER_JOB_BASE::OnFormatChoice ), NULL, this );
158}
159
161{
162 // Disconnect Events
163 m_choiceFormat->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RENDER_JOB_BASE::OnFormatChoice ), NULL, this );
164 m_choiceQuality->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RENDER_JOB_BASE::OnFormatChoice ), NULL, this );
165 m_choiceBgStyle->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RENDER_JOB_BASE::OnFormatChoice ), NULL, this );
166 m_choiceSide->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RENDER_JOB_BASE::OnFormatChoice ), NULL, this );
167
168}
wxStaticText * m_backgroundStyleLabel
wxSpinCtrlDouble * m_spinCtrlZoom
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)
wxStdDialogButtonSizer * m_sdbSizer1
virtual void OnFormatChoice(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)