KiCad PCB EDA Suite
properties_frame_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version May 6 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
13 {
14  wxBoxSizer* bSizerpanel;
15  bSizerpanel = new wxBoxSizer( wxVERTICAL );
16 
17  m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
18  m_swItemProperties = new wxScrolledWindow( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxTAB_TRAVERSAL|wxVSCROLL );
19  m_swItemProperties->SetScrollRate( 5, 5 );
20  wxBoxSizer* bSizerMain;
21  bSizerMain = new wxBoxSizer( wxVERTICAL );
22 
23  wxBoxSizer* bSizerButt;
24  bSizerButt = new wxBoxSizer( wxHORIZONTAL );
25 
26  wxBoxSizer* bSizerType;
27  bSizerType = new wxBoxSizer( wxVERTICAL );
28 
29  m_staticTextType = new wxStaticText( m_swItemProperties, wxID_ANY, _("Type"), wxDefaultPosition, wxDefaultSize, 0 );
30  m_staticTextType->Wrap( -1 );
31  m_staticTextType->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
32 
33  bSizerType->Add( m_staticTextType, 0, wxLEFT|wxRIGHT, 5 );
34 
35  m_textCtrlType = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
36  bSizerType->Add( m_textCtrlType, 0, wxRIGHT|wxLEFT, 5 );
37 
38 
39  bSizerButt->Add( bSizerType, 0, 0, 5 );
40 
41  wxBoxSizer* bSizerPageOpt;
42  bSizerPageOpt = new wxBoxSizer( wxVERTICAL );
43 
44  m_staticTextPageOpt = new wxStaticText( m_swItemProperties, wxID_ANY, _("Page 1 option"), wxDefaultPosition, wxDefaultSize, 0 );
45  m_staticTextPageOpt->Wrap( -1 );
46  m_staticTextPageOpt->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
47 
48  bSizerPageOpt->Add( m_staticTextPageOpt, 0, wxLEFT|wxRIGHT, 5 );
49 
50  wxString m_choicePageOptChoices[] = { _("None"), _("Page 1 only"), _("Not on page 1") };
51  int m_choicePageOptNChoices = sizeof( m_choicePageOptChoices ) / sizeof( wxString );
52  m_choicePageOpt = new wxChoice( m_swItemProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePageOptNChoices, m_choicePageOptChoices, 0 );
53  m_choicePageOpt->SetSelection( 0 );
54  bSizerPageOpt->Add( m_choicePageOpt, 0, wxRIGHT|wxLEFT, 5 );
55 
56 
57  bSizerButt->Add( bSizerPageOpt, 0, 0, 5 );
58 
59 
60  bSizerMain->Add( bSizerButt, 0, 0, 5 );
61 
62  m_staticline5 = new wxStaticLine( m_swItemProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
63  bSizerMain->Add( m_staticline5, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
64 
65  m_SizerTextOptions = new wxBoxSizer( wxVERTICAL );
66 
67  m_staticTextText = new wxStaticText( m_swItemProperties, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
68  m_staticTextText->Wrap( -1 );
69  m_SizerTextOptions->Add( m_staticTextText, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
70 
71  m_textCtrlText = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
72  m_SizerTextOptions->Add( m_textCtrlText, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
73 
74  wxBoxSizer* bSizerFontOpt;
75  bSizerFontOpt = new wxBoxSizer( wxVERTICAL );
76 
77  wxBoxSizer* bSizerJustify;
78  bSizerJustify = new wxBoxSizer( wxHORIZONTAL );
79 
80  m_staticTextHjust = new wxStaticText( m_swItemProperties, wxID_ANY, _("H justification"), wxDefaultPosition, wxDefaultSize, 0 );
81  m_staticTextHjust->Wrap( -1 );
82  bSizerJustify->Add( m_staticTextHjust, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
83 
84  wxString m_choiceHjustifyChoices[] = { _("Left"), _("Center"), _("Right") };
85  int m_choiceHjustifyNChoices = sizeof( m_choiceHjustifyChoices ) / sizeof( wxString );
86  m_choiceHjustify = new wxChoice( m_swItemProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceHjustifyNChoices, m_choiceHjustifyChoices, 0 );
87  m_choiceHjustify->SetSelection( 0 );
88  bSizerJustify->Add( m_choiceHjustify, 0, wxEXPAND|wxALL, 5 );
89 
90  m_checkBoxBold = new wxCheckBox( m_swItemProperties, wxID_ANY, _("Bold"), wxDefaultPosition, wxDefaultSize, 0 );
91  bSizerJustify->Add( m_checkBoxBold, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
92 
93 
94  bSizerFontOpt->Add( bSizerJustify, 0, 0, 5 );
95 
96  wxBoxSizer* bSizerBoldItalic;
97  bSizerBoldItalic = new wxBoxSizer( wxHORIZONTAL );
98 
99  m_staticTextVjust = new wxStaticText( m_swItemProperties, wxID_ANY, _("V justification"), wxDefaultPosition, wxDefaultSize, 0 );
100  m_staticTextVjust->Wrap( -1 );
101  bSizerBoldItalic->Add( m_staticTextVjust, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
102 
103  wxString m_choiceVjustifyChoices[] = { _("Top"), _("Center"), _("Bottom") };
104  int m_choiceVjustifyNChoices = sizeof( m_choiceVjustifyChoices ) / sizeof( wxString );
105  m_choiceVjustify = new wxChoice( m_swItemProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVjustifyNChoices, m_choiceVjustifyChoices, 0 );
106  m_choiceVjustify->SetSelection( 1 );
107  bSizerBoldItalic->Add( m_choiceVjustify, 0, wxEXPAND|wxALL, 5 );
108 
109  m_checkBoxItalic = new wxCheckBox( m_swItemProperties, wxID_ANY, _("Italic"), wxDefaultPosition, wxDefaultSize, 0 );
110  bSizerBoldItalic->Add( m_checkBoxItalic, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
111 
112 
113  bSizerFontOpt->Add( bSizerBoldItalic, 1, 0, 5 );
114 
115 
116  m_SizerTextOptions->Add( bSizerFontOpt, 0, wxEXPAND, 5 );
117 
118  wxBoxSizer* bSizerTextSize;
119  bSizerTextSize = new wxBoxSizer( wxHORIZONTAL );
120 
121  wxBoxSizer* bSizerTsizeX;
122  bSizerTsizeX = new wxBoxSizer( wxVERTICAL );
123 
124  m_staticTexTsizeX = new wxStaticText( m_swItemProperties, wxID_ANY, _("Text Width (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
125  m_staticTexTsizeX->Wrap( -1 );
126  bSizerTsizeX->Add( m_staticTexTsizeX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
127 
128  m_textCtrlTextSizeX = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
129  bSizerTsizeX->Add( m_textCtrlTextSizeX, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
130 
131 
132  bSizerTextSize->Add( bSizerTsizeX, 1, wxEXPAND, 5 );
133 
134  wxBoxSizer* bSizerTsizeY;
135  bSizerTsizeY = new wxBoxSizer( wxVERTICAL );
136 
137  m_staticTextTsizeY = new wxStaticText( m_swItemProperties, wxID_ANY, _("Text Height (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
138  m_staticTextTsizeY->Wrap( -1 );
139  bSizerTsizeY->Add( m_staticTextTsizeY, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
140 
141  m_textCtrlTextSizeY = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
142  bSizerTsizeY->Add( m_textCtrlTextSizeY, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
143 
144 
145  bSizerTextSize->Add( bSizerTsizeY, 1, wxEXPAND, 5 );
146 
147 
148  m_SizerTextOptions->Add( bSizerTextSize, 0, 0, 5 );
149 
150  m_staticTextConstraints = new wxStaticText( m_swItemProperties, wxID_ANY, _("Constraints:"), wxDefaultPosition, wxDefaultSize, 0 );
151  m_staticTextConstraints->Wrap( -1 );
152  m_SizerTextOptions->Add( m_staticTextConstraints, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
153 
154  wxBoxSizer* bSizerConstraints;
155  bSizerConstraints = new wxBoxSizer( wxHORIZONTAL );
156 
157  wxBoxSizer* bSizer42;
158  bSizer42 = new wxBoxSizer( wxVERTICAL );
159 
160  m_staticTextConstraintX = new wxStaticText( m_swItemProperties, wxID_ANY, _("Max Size X (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
161  m_staticTextConstraintX->Wrap( -1 );
162  bSizer42->Add( m_staticTextConstraintX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
163 
164  m_textCtrlConstraintX = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
165  bSizer42->Add( m_textCtrlConstraintX, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
166 
167 
168  bSizerConstraints->Add( bSizer42, 1, wxEXPAND, 5 );
169 
170  wxBoxSizer* bSizer52;
171  bSizer52 = new wxBoxSizer( wxVERTICAL );
172 
173  m_staticTextConstraintY = new wxStaticText( m_swItemProperties, wxID_ANY, _("Max Size Y (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
174  m_staticTextConstraintY->Wrap( -1 );
175  bSizer52->Add( m_staticTextConstraintY, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
176 
177  m_textCtrlConstraintY = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
178  bSizer52->Add( m_textCtrlConstraintY, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
179 
180 
181  bSizerConstraints->Add( bSizer52, 1, wxEXPAND, 5 );
182 
183 
184  m_SizerTextOptions->Add( bSizerConstraints, 0, 0, 5 );
185 
186  m_staticline6 = new wxStaticLine( m_swItemProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
187  m_SizerTextOptions->Add( m_staticline6, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
188 
189 
190  bSizerMain->Add( m_SizerTextOptions, 0, wxEXPAND, 5 );
191 
192  m_buttonOK = new wxButton( m_swItemProperties, wxID_ANY, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
193  m_buttonOK->SetDefault();
194  bSizerMain->Add( m_buttonOK, 0, wxALL|wxEXPAND, 5 );
195 
196  m_staticline8 = new wxStaticLine( m_swItemProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
197  bSizerMain->Add( m_staticline8, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
198 
199  m_staticTextComment = new wxStaticText( m_swItemProperties, wxID_ANY, _("Comment"), wxDefaultPosition, wxDefaultSize, 0 );
200  m_staticTextComment->Wrap( -1 );
201  bSizerMain->Add( m_staticTextComment, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
202 
203  m_textCtrlComment = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
204  bSizerMain->Add( m_textCtrlComment, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
205 
206  m_staticline2 = new wxStaticLine( m_swItemProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
207  bSizerMain->Add( m_staticline2, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
208 
209  wxBoxSizer* bSizerPos;
210  bSizerPos = new wxBoxSizer( wxHORIZONTAL );
211 
212  wxBoxSizer* bSizerPosXY;
213  bSizerPosXY = new wxBoxSizer( wxVERTICAL );
214 
215  wxBoxSizer* bSizer4;
216  bSizer4 = new wxBoxSizer( wxVERTICAL );
217 
218  m_staticTextPosX = new wxStaticText( m_swItemProperties, wxID_ANY, _("Pos X (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
219  m_staticTextPosX->Wrap( -1 );
220  bSizer4->Add( m_staticTextPosX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
221 
222  m_textCtrlPosX = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
223  bSizer4->Add( m_textCtrlPosX, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
224 
225 
226  bSizerPosXY->Add( bSizer4, 1, wxEXPAND, 5 );
227 
228  wxBoxSizer* bSizer5;
229  bSizer5 = new wxBoxSizer( wxVERTICAL );
230 
231  m_staticTextPosY = new wxStaticText( m_swItemProperties, wxID_ANY, _("Pos Y (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
232  m_staticTextPosY->Wrap( -1 );
233  bSizer5->Add( m_staticTextPosY, 0, wxRIGHT|wxLEFT, 5 );
234 
235  m_textCtrlPosY = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
236  bSizer5->Add( m_textCtrlPosY, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
237 
238 
239  bSizerPosXY->Add( bSizer5, 1, wxEXPAND, 5 );
240 
241 
242  bSizerPos->Add( bSizerPosXY, 1, 0, 5 );
243 
244  wxBoxSizer* bSizer6;
245  bSizer6 = new wxBoxSizer( wxVERTICAL );
246 
247  m_staticTextOrgPos = new wxStaticText( m_swItemProperties, wxID_ANY, _("Origin"), wxDefaultPosition, wxDefaultSize, 0 );
248  m_staticTextOrgPos->Wrap( -1 );
249  bSizer6->Add( m_staticTextOrgPos, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
250 
251  m_comboBoxCornerPos = new wxComboBox( m_swItemProperties, wxID_ANY, _("Lower Right"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
252  m_comboBoxCornerPos->Append( _("Upper Right") );
253  m_comboBoxCornerPos->Append( _("Upper Left") );
254  m_comboBoxCornerPos->Append( _("Lower Right") );
255  m_comboBoxCornerPos->Append( _("Lower Left") );
256  m_comboBoxCornerPos->SetSelection( 2 );
257  bSizer6->Add( m_comboBoxCornerPos, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
258 
259 
260  bSizerPos->Add( bSizer6, 0, wxALIGN_CENTER_VERTICAL, 5 );
261 
262 
263  bSizerMain->Add( bSizerPos, 0, 0, 5 );
264 
265  m_SizerEndPosition = new wxBoxSizer( wxHORIZONTAL );
266 
267  wxBoxSizer* bSizerEndXY;
268  bSizerEndXY = new wxBoxSizer( wxVERTICAL );
269 
270  wxBoxSizer* bSizer41;
271  bSizer41 = new wxBoxSizer( wxVERTICAL );
272 
273  m_staticTextEndX = new wxStaticText( m_swItemProperties, wxID_ANY, _("End X (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
274  m_staticTextEndX->Wrap( -1 );
275  bSizer41->Add( m_staticTextEndX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
276 
277  m_textCtrlEndX = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
278  bSizer41->Add( m_textCtrlEndX, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
279 
280 
281  bSizerEndXY->Add( bSizer41, 1, wxEXPAND, 5 );
282 
283  wxBoxSizer* bSizer51;
284  bSizer51 = new wxBoxSizer( wxVERTICAL );
285 
286  m_staticTextEndY = new wxStaticText( m_swItemProperties, wxID_ANY, _("End Y (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
287  m_staticTextEndY->Wrap( -1 );
288  bSizer51->Add( m_staticTextEndY, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
289 
290  m_textCtrlEndY = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
291  bSizer51->Add( m_textCtrlEndY, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
292 
293 
294  bSizerEndXY->Add( bSizer51, 1, wxEXPAND, 5 );
295 
296 
297  m_SizerEndPosition->Add( bSizerEndXY, 1, 0, 5 );
298 
299  wxBoxSizer* bSizer61;
300  bSizer61 = new wxBoxSizer( wxVERTICAL );
301 
302  m_staticTextOrgEnd = new wxStaticText( m_swItemProperties, wxID_ANY, _("Origin"), wxDefaultPosition, wxDefaultSize, 0 );
303  m_staticTextOrgEnd->Wrap( -1 );
304  bSizer61->Add( m_staticTextOrgEnd, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
305 
306  m_comboBoxCornerEnd = new wxComboBox( m_swItemProperties, wxID_ANY, _("Lower Right"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
307  m_comboBoxCornerEnd->Append( _("Upper Right") );
308  m_comboBoxCornerEnd->Append( _("Upper Left") );
309  m_comboBoxCornerEnd->Append( _("Lower Right") );
310  m_comboBoxCornerEnd->Append( _("Lower Left") );
311  m_comboBoxCornerEnd->SetSelection( 2 );
312  bSizer61->Add( m_comboBoxCornerEnd, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
313 
314 
315  m_SizerEndPosition->Add( bSizer61, 0, wxALIGN_CENTER_VERTICAL, 5 );
316 
317 
318  bSizerMain->Add( m_SizerEndPosition, 0, 0, 5 );
319 
320  m_SizerLineThickness = new wxBoxSizer( wxHORIZONTAL );
321 
322  wxBoxSizer* bSizerThickness;
323  bSizerThickness = new wxBoxSizer( wxVERTICAL );
324 
325  m_staticTextThickness = new wxStaticText( m_swItemProperties, wxID_ANY, _("Thickness"), wxDefaultPosition, wxDefaultSize, 0 );
326  m_staticTextThickness->Wrap( -1 );
327  bSizerThickness->Add( m_staticTextThickness, 0, wxLEFT|wxRIGHT, 5 );
328 
329  m_textCtrlThickness = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
330  bSizerThickness->Add( m_textCtrlThickness, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
331 
332 
333  m_SizerLineThickness->Add( bSizerThickness, 0, wxEXPAND, 5 );
334 
335  m_staticTextInfoThickness = new wxStaticText( m_swItemProperties, wxID_ANY, _("Set to 0 to use default"), wxDefaultPosition, wxDefaultSize, 0 );
336  m_staticTextInfoThickness->Wrap( -1 );
337  m_SizerLineThickness->Add( m_staticTextInfoThickness, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
338 
339 
340  bSizerMain->Add( m_SizerLineThickness, 0, 0, 5 );
341 
342  m_SizerRotation = new wxBoxSizer( wxVERTICAL );
343 
344  m_staticline1 = new wxStaticLine( m_swItemProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
345  m_SizerRotation->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
346 
347  wxBoxSizer* bSizerRotation;
348  bSizerRotation = new wxBoxSizer( wxHORIZONTAL );
349 
350  m_staticTextRot = new wxStaticText( m_swItemProperties, wxID_ANY, _("Rotation"), wxDefaultPosition, wxDefaultSize, 0 );
351  m_staticTextRot->Wrap( -1 );
352  bSizerRotation->Add( m_staticTextRot, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
353 
354  m_textCtrlRotation = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
355  bSizerRotation->Add( m_textCtrlRotation, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
356 
357 
358  m_SizerRotation->Add( bSizerRotation, 0, wxEXPAND, 5 );
359 
360 
361  bSizerMain->Add( m_SizerRotation, 0, wxEXPAND, 5 );
362 
363  m_SizerBitmapPPI = new wxBoxSizer( wxHORIZONTAL );
364 
365  m_staticTextBitmapPPI = new wxStaticText( m_swItemProperties, wxID_ANY, _("Bitmap PPI"), wxDefaultPosition, wxDefaultSize, 0 );
366  m_staticTextBitmapPPI->Wrap( -1 );
367  m_SizerBitmapPPI->Add( m_staticTextBitmapPPI, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
368 
369  m_textCtrlBitmapPPI = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
370  m_SizerBitmapPPI->Add( m_textCtrlBitmapPPI, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
371 
372 
373  bSizerMain->Add( m_SizerBitmapPPI, 0, wxEXPAND, 5 );
374 
375  m_staticline4 = new wxStaticLine( m_swItemProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
376  bSizerMain->Add( m_staticline4, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
377 
378  m_staticTextRepeatPrms = new wxStaticText( m_swItemProperties, wxID_ANY, _("Repeat parameters:"), wxDefaultPosition, wxDefaultSize, 0 );
379  m_staticTextRepeatPrms->Wrap( -1 );
380  bSizerMain->Add( m_staticTextRepeatPrms, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
381 
382  wxBoxSizer* bSizer20;
383  bSizer20 = new wxBoxSizer( wxHORIZONTAL );
384 
385  wxBoxSizer* bSizer611;
386  bSizer611 = new wxBoxSizer( wxVERTICAL );
387 
388  m_staticTextRepeatCnt = new wxStaticText( m_swItemProperties, wxID_ANY, _("Repeat count"), wxDefaultPosition, wxDefaultSize, 0 );
389  m_staticTextRepeatCnt->Wrap( -1 );
390  bSizer611->Add( m_staticTextRepeatCnt, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
391 
392  m_textCtrlRepeatCount = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
393  bSizer611->Add( m_textCtrlRepeatCount, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
394 
395 
396  bSizer20->Add( bSizer611, 1, 0, 5 );
397 
398  m_SizerTextIncrementLabel = new wxBoxSizer( wxVERTICAL );
399 
400  m_staticTextInclabel = new wxStaticText( m_swItemProperties, wxID_ANY, _("Text Increment"), wxDefaultPosition, wxDefaultSize, 0 );
401  m_staticTextInclabel->Wrap( -1 );
402  m_SizerTextIncrementLabel->Add( m_staticTextInclabel, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
403 
404  m_textCtrlTextIncrement = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
405  m_SizerTextIncrementLabel->Add( m_textCtrlTextIncrement, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
406 
407 
408  bSizer20->Add( m_SizerTextIncrementLabel, 1, wxEXPAND, 5 );
409 
410 
411  bSizerMain->Add( bSizer20, 0, 0, 5 );
412 
413  wxBoxSizer* bSizerPosY1;
414  bSizerPosY1 = new wxBoxSizer( wxHORIZONTAL );
415 
416  wxBoxSizer* bSizer411;
417  bSizer411 = new wxBoxSizer( wxVERTICAL );
418 
419  m_staticTextStepX = new wxStaticText( m_swItemProperties, wxID_ANY, _("Step X (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
420  m_staticTextStepX->Wrap( -1 );
421  bSizer411->Add( m_staticTextStepX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
422 
423  m_textCtrlStepX = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
424  bSizer411->Add( m_textCtrlStepX, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
425 
426 
427  bSizerPosY1->Add( bSizer411, 1, wxEXPAND, 5 );
428 
429  wxBoxSizer* bSizer511;
430  bSizer511 = new wxBoxSizer( wxVERTICAL );
431 
432  m_staticTextStepY = new wxStaticText( m_swItemProperties, wxID_ANY, _("Step Y (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
433  m_staticTextStepY->Wrap( -1 );
434  bSizer511->Add( m_staticTextStepY, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
435 
436  m_textCtrlStepY = new wxTextCtrl( m_swItemProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
437  bSizer511->Add( m_textCtrlStepY, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
438 
439 
440  bSizerPosY1->Add( bSizer511, 1, wxEXPAND, 5 );
441 
442 
443  bSizerMain->Add( bSizerPosY1, 0, 0, 5 );
444 
445 
446  m_swItemProperties->SetSizer( bSizerMain );
447  m_swItemProperties->Layout();
448  bSizerMain->Fit( m_swItemProperties );
449  m_notebook->AddPage( m_swItemProperties, _("Item Properties"), true );
450  m_swGeneralOpts = new wxScrolledWindow( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxTAB_TRAVERSAL|wxVSCROLL );
451  m_swGeneralOpts->SetScrollRate( 5, 5 );
452  wxBoxSizer* bSizerGeneralOpts;
453  bSizerGeneralOpts = new wxBoxSizer( wxVERTICAL );
454 
455  wxBoxSizer* bSizerGeneralOpts1;
456  bSizerGeneralOpts1 = new wxBoxSizer( wxVERTICAL );
457 
458  m_staticTextDefVal = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Default Values:"), wxDefaultPosition, wxDefaultSize, 0 );
459  m_staticTextDefVal->Wrap( -1 );
460  bSizerGeneralOpts1->Add( m_staticTextDefVal, 0, wxALL, 5 );
461 
462  wxBoxSizer* bSizerDefTextSize;
463  bSizerDefTextSize = new wxBoxSizer( wxHORIZONTAL );
464 
465  wxBoxSizer* bSizerDefTsizeX;
466  bSizerDefTsizeX = new wxBoxSizer( wxVERTICAL );
467 
468  m_staticTextDefTsX = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Text Size X (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
469  m_staticTextDefTsX->Wrap( -1 );
470  bSizerDefTsizeX->Add( m_staticTextDefTsX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
471 
472  m_textCtrlDefaultTextSizeX = new wxTextCtrl( m_swGeneralOpts, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
473  bSizerDefTsizeX->Add( m_textCtrlDefaultTextSizeX, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
474 
475 
476  bSizerDefTextSize->Add( bSizerDefTsizeX, 1, wxEXPAND, 5 );
477 
478  wxBoxSizer* bSizerDefTsizeY;
479  bSizerDefTsizeY = new wxBoxSizer( wxVERTICAL );
480 
481  m_staticTextDefTsY = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Text Size Y (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
482  m_staticTextDefTsY->Wrap( -1 );
483  bSizerDefTsizeY->Add( m_staticTextDefTsY, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
484 
485  m_textCtrlDefaultTextSizeY = new wxTextCtrl( m_swGeneralOpts, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
486  bSizerDefTsizeY->Add( m_textCtrlDefaultTextSizeY, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
487 
488 
489  bSizerDefTextSize->Add( bSizerDefTsizeY, 1, wxEXPAND, 5 );
490 
491 
492  bSizerGeneralOpts1->Add( bSizerDefTextSize, 0, wxEXPAND, 5 );
493 
494  wxBoxSizer* bSizerDefLineWidth;
495  bSizerDefLineWidth = new wxBoxSizer( wxHORIZONTAL );
496 
497  wxBoxSizer* bSizer25;
498  bSizer25 = new wxBoxSizer( wxVERTICAL );
499 
500  m_staticTextDefLineW = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Line Thickness (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
501  m_staticTextDefLineW->Wrap( -1 );
502  bSizer25->Add( m_staticTextDefLineW, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
503 
504  m_textCtrlDefaultLineWidth = new wxTextCtrl( m_swGeneralOpts, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
505  bSizer25->Add( m_textCtrlDefaultLineWidth, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
506 
507 
508  bSizerDefLineWidth->Add( bSizer25, 1, 0, 5 );
509 
510  wxBoxSizer* bSizerDefTextThickness;
511  bSizerDefTextThickness = new wxBoxSizer( wxVERTICAL );
512 
513  m_staticText22 = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Text Thickness"), wxDefaultPosition, wxDefaultSize, 0 );
514  m_staticText22->Wrap( -1 );
515  bSizerDefTextThickness->Add( m_staticText22, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
516 
517  m_textCtrlDefaultTextThickness = new wxTextCtrl( m_swGeneralOpts, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
518  bSizerDefTextThickness->Add( m_textCtrlDefaultTextThickness, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
519 
520 
521  bSizerDefLineWidth->Add( bSizerDefTextThickness, 1, 0, 5 );
522 
523 
524  bSizerGeneralOpts1->Add( bSizerDefLineWidth, 0, wxEXPAND, 5 );
525 
526 
527  bSizerGeneralOpts->Add( bSizerGeneralOpts1, 0, 0, 5 );
528 
529  m_buttonDefault = new wxButton( m_swGeneralOpts, wxID_ANY, _("Set to Default"), wxDefaultPosition, wxDefaultSize, 0 );
530  bSizerGeneralOpts->Add( m_buttonDefault, 0, wxALL|wxEXPAND, 5 );
531 
532  m_staticline9 = new wxStaticLine( m_swGeneralOpts, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
533  bSizerGeneralOpts->Add( m_staticline9, 0, wxEXPAND | wxALL, 5 );
534 
535  wxBoxSizer* bSizerGeneraMargins;
536  bSizerGeneraMargins = new wxBoxSizer( wxVERTICAL );
537 
538  m_staticTextMargins = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Page Margins"), wxDefaultPosition, wxDefaultSize, 0 );
539  m_staticTextMargins->Wrap( -1 );
540  bSizerGeneraMargins->Add( m_staticTextMargins, 0, wxALL, 5 );
541 
542  wxBoxSizer* bSizerDefLRMargins;
543  bSizerDefLRMargins = new wxBoxSizer( wxHORIZONTAL );
544 
545  wxBoxSizer* bSizerDefLeftMargin;
546  bSizerDefLeftMargin = new wxBoxSizer( wxVERTICAL );
547 
548  m_staticTextLeftMargin = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Left Margin (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
549  m_staticTextLeftMargin->Wrap( -1 );
550  bSizerDefLeftMargin->Add( m_staticTextLeftMargin, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
551 
552  m_textCtrlLeftMargin = new wxTextCtrl( m_swGeneralOpts, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
553  bSizerDefLeftMargin->Add( m_textCtrlLeftMargin, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
554 
555 
556  bSizerDefLRMargins->Add( bSizerDefLeftMargin, 1, wxEXPAND, 5 );
557 
558  wxBoxSizer* bSizerDefTsizeY1;
559  bSizerDefTsizeY1 = new wxBoxSizer( wxVERTICAL );
560 
561  m_staticTextDefRightMargin = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Right Margin (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
562  m_staticTextDefRightMargin->Wrap( -1 );
563  bSizerDefTsizeY1->Add( m_staticTextDefRightMargin, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
564 
565  m_textCtrlRightMargin = new wxTextCtrl( m_swGeneralOpts, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
566  bSizerDefTsizeY1->Add( m_textCtrlRightMargin, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
567 
568 
569  bSizerDefLRMargins->Add( bSizerDefTsizeY1, 1, wxEXPAND, 5 );
570 
571 
572  bSizerGeneraMargins->Add( bSizerDefLRMargins, 0, wxEXPAND, 5 );
573 
574  wxBoxSizer* bSizerDefTBMargins;
575  bSizerDefTBMargins = new wxBoxSizer( wxHORIZONTAL );
576 
577  wxBoxSizer* bSizerTopMargin;
578  bSizerTopMargin = new wxBoxSizer( wxVERTICAL );
579 
580  m_staticTextTopMargin = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Top Margin (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
581  m_staticTextTopMargin->Wrap( -1 );
582  bSizerTopMargin->Add( m_staticTextTopMargin, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
583 
584  m_textCtrlTopMargin = new wxTextCtrl( m_swGeneralOpts, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
585  bSizerTopMargin->Add( m_textCtrlTopMargin, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
586 
587 
588  bSizerDefTBMargins->Add( bSizerTopMargin, 1, 0, 5 );
589 
590  wxBoxSizer* bSizerDefBottomMargin;
591  bSizerDefBottomMargin = new wxBoxSizer( wxVERTICAL );
592 
593  m_staticTextBottomMargin = new wxStaticText( m_swGeneralOpts, wxID_ANY, _("Bottom Margin (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
594  m_staticTextBottomMargin->Wrap( -1 );
595  bSizerDefBottomMargin->Add( m_staticTextBottomMargin, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
596 
597  m_textCtrlDefaultBottomMargin = new wxTextCtrl( m_swGeneralOpts, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
598  bSizerDefBottomMargin->Add( m_textCtrlDefaultBottomMargin, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
599 
600 
601  bSizerDefTBMargins->Add( bSizerDefBottomMargin, 1, 0, 5 );
602 
603 
604  bSizerGeneraMargins->Add( bSizerDefTBMargins, 0, wxEXPAND, 5 );
605 
606 
607  bSizerGeneralOpts->Add( bSizerGeneraMargins, 0, 0, 5 );
608 
609  m_buttonGeneralOptsOK = new wxButton( m_swGeneralOpts, wxID_ANY, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
610  m_buttonGeneralOptsOK->SetDefault();
611  bSizerGeneralOpts->Add( m_buttonGeneralOptsOK, 0, wxALL|wxEXPAND, 5 );
612 
613 
614  m_swGeneralOpts->SetSizer( bSizerGeneralOpts );
615  m_swGeneralOpts->Layout();
616  bSizerGeneralOpts->Fit( m_swGeneralOpts );
617  m_notebook->AddPage( m_swGeneralOpts, _("General Options"), false );
618 
619  bSizerpanel->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
620 
621 
622  this->SetSizer( bSizerpanel );
623  this->Layout();
624 
625  // Connect Events
626  m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_PROPERTIES_BASE::OnAcceptPrms ), NULL, this );
627  m_buttonDefault->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_PROPERTIES_BASE::OnSetDefaultValues ), NULL, this );
628  m_buttonGeneralOptsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_PROPERTIES_BASE::OnAcceptPrms ), NULL, this );
629 }
630 
632 {
633  // Disconnect Events
634  m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_PROPERTIES_BASE::OnAcceptPrms ), NULL, this );
635  m_buttonDefault->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_PROPERTIES_BASE::OnSetDefaultValues ), NULL, this );
636  m_buttonGeneralOptsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_PROPERTIES_BASE::OnAcceptPrms ), NULL, this );
637 
638 }
wxStaticText * m_staticTextThickness
wxTextCtrl * m_textCtrlDefaultTextThickness
wxStaticText * m_staticTextTsizeY
wxStaticText * m_staticTextOrgEnd
wxStaticText * m_staticTextVjust
wxScrolledWindow * m_swItemProperties
wxStaticText * m_staticTextBitmapPPI
wxTextCtrl * m_textCtrlDefaultBottomMargin
wxStaticText * m_staticTextInclabel
wxStaticText * m_staticTextOrgPos
wxStaticText * m_staticTextBottomMargin
wxStaticText * m_staticTextComment
wxTextCtrl * m_textCtrlDefaultLineWidth
wxStaticText * m_staticTextDefRightMargin
wxTextCtrl * m_textCtrlDefaultTextSizeY
wxStaticText * m_staticTextLeftMargin
wxStaticText * m_staticTextRepeatCnt
wxStaticText * m_staticTextRepeatPrms
PANEL_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(324, 782), long style=wxTAB_TRAVERSAL)
wxStaticText * m_staticTextMargins
wxStaticText * m_staticTextInfoThickness
wxBoxSizer * m_SizerTextIncrementLabel
wxStaticText * m_staticTextTopMargin
wxStaticText * m_staticTextPageOpt
virtual void OnAcceptPrms(wxCommandEvent &event)
wxStaticText * m_staticTextHjust
wxScrolledWindow * m_swGeneralOpts
wxStaticText * m_staticTextConstraintY
wxStaticText * m_staticTexTsizeX
wxStaticText * m_staticTextConstraintX
wxStaticText * m_staticTextDefLineW
virtual void OnSetDefaultValues(wxCommandEvent &event)
wxTextCtrl * m_textCtrlDefaultTextSizeX
wxStaticText * m_staticTextConstraints