16PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
18 wxBoxSizer* bSizerpanel;
19 bSizerpanel =
new wxBoxSizer( wxVERTICAL );
21 m_notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
22 m_swItemProperties =
new wxScrolledWindow(
m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxTAB_TRAVERSAL|wxVSCROLL );
26 wxBoxSizer* bSizerButt;
27 bSizerButt =
new wxBoxSizer( wxHORIZONTAL );
31 m_staticTextType->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_SLANT, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
33 bSizerButt->Add(
m_staticTextType, 1, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 4 );
36 bSizerButt->Add(
m_buttonHelp, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
38 wxString m_choicePageOptChoices[] = {
_(
"Show on all pages"),
_(
"First page only"),
_(
"Subsequent pages only") };
39 int m_choicePageOptNChoices =
sizeof( m_choicePageOptChoices ) /
sizeof( wxString );
62 m_stcText->MarkerDefine( wxSTC_MARKNUM_FOLDER, wxSTC_MARK_BOXPLUS );
63 m_stcText->MarkerSetBackground( wxSTC_MARKNUM_FOLDER, wxColour( wxT(
"BLACK") ) );
64 m_stcText->MarkerSetForeground( wxSTC_MARKNUM_FOLDER, wxColour( wxT(
"WHITE") ) );
65 m_stcText->MarkerDefine( wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_BOXMINUS );
66 m_stcText->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT(
"BLACK") ) );
67 m_stcText->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT(
"WHITE") ) );
68 m_stcText->MarkerDefine( wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_EMPTY );
69 m_stcText->MarkerDefine( wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_BOXPLUS );
70 m_stcText->MarkerSetBackground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT(
"BLACK") ) );
71 m_stcText->MarkerSetForeground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT(
"WHITE") ) );
72 m_stcText->MarkerDefine( wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_BOXMINUS );
73 m_stcText->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT(
"BLACK") ) );
74 m_stcText->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT(
"WHITE") ) );
75 m_stcText->MarkerDefine( wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_EMPTY );
76 m_stcText->MarkerDefine( wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_EMPTY );
77 m_stcText->SetSelBackground(
true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
78 m_stcText->SetSelForeground(
true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
81 wxBoxSizer* bSizerFontOpt;
82 bSizerFontOpt =
new wxBoxSizer( wxVERTICAL );
84 wxGridBagSizer* gbSizer11;
85 gbSizer11 =
new wxGridBagSizer( 3, 5 );
86 gbSizer11->SetFlexibleDirection( wxBOTH );
87 gbSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
89 wxBoxSizer* formattingSizer;
90 formattingSizer =
new wxBoxSizer( wxHORIZONTAL );
93 m_bold->SetToolTip(
_(
"Bold") );
95 formattingSizer->Add(
m_bold, 0, wxALIGN_CENTER_VERTICAL, 5 );
100 formattingSizer->Add(
m_italic, 0, wxALIGN_CENTER_VERTICAL, 5 );
105 formattingSizer->Add(
m_separator2, 0, wxALIGN_CENTER_VERTICAL, 5 );
108 formattingSizer->Add(
m_alignLeft, 0, wxALIGN_CENTER_VERTICAL, 5 );
111 formattingSizer->Add(
m_alignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
114 formattingSizer->Add(
m_alignRight, 0, wxALIGN_CENTER_VERTICAL, 5 );
119 formattingSizer->Add(
m_separator3, 0, wxALIGN_CENTER_VERTICAL, 5 );
122 formattingSizer->Add(
m_vAlignTop, 0, wxALIGN_CENTER_VERTICAL, 5 );
125 formattingSizer->Add(
m_vAlignMiddle, 0, wxALIGN_CENTER_VERTICAL, 5 );
128 formattingSizer->Add(
m_vAlignBottom, 0, wxALIGN_CENTER_VERTICAL, 5 );
133 formattingSizer->Add(
m_separator4, 0, wxALIGN_CENTER_VERTICAL, 5 );
136 wxBoxSizer* bSizer22;
137 bSizer22 =
new wxBoxSizer( wxVERTICAL );
140 bSizer22->Add(
m_textColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
149 gbSizer11->Add( formattingSizer, wxGBPosition( 0, 0 ), wxGBSpan( 1, 4 ), wxTOP|wxBOTTOM|wxEXPAND, 5 );
153 gbSizer11->Add(
m_fontLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
155 wxString m_fontCtrlChoices[] = {
_(
"Default Font"),
_(
"KiCad Font") };
156 int m_fontCtrlNChoices =
sizeof( m_fontCtrlChoices ) /
sizeof( wxString );
159 gbSizer11->Add(
m_fontCtrl, wxGBPosition( 1, 1 ), wxGBSpan( 1, 3 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
163 gbSizer11->Add(
m_staticTextTsizeX, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
166 gbSizer11->Add(
m_textCtrlTextSizeX, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
170 gbSizer11->Add(
m_textSizeXUnits, wxGBPosition( 2, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
174 gbSizer11->Add(
m_staticTextTsizeY, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
177 gbSizer11->Add(
m_textCtrlTextSizeY, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
181 gbSizer11->Add(
m_textSizeYUnits, wxGBPosition( 3, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
187 gbSizer11->Add(
m_constraintXLabel, wxGBPosition( 4, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
190 gbSizer11->Add(
m_constraintXCtrl, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
194 gbSizer11->Add(
m_constraintXUnits, wxGBPosition( 4, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
200 gbSizer11->Add(
m_constraintYLabel, wxGBPosition( 5, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
203 gbSizer11->Add(
m_constraintYCtrl, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
207 gbSizer11->Add(
m_constraintYUnits, wxGBPosition( 5, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
210 gbSizer11->AddGrowableCol( 2 );
212 bSizerFontOpt->Add( gbSizer11, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
217 wxFlexGridSizer* fgSizer2;
218 fgSizer2 =
new wxFlexGridSizer( 0, 3, 3, 0 );
219 fgSizer2->AddGrowableCol( 1 );
220 fgSizer2->SetFlexibleDirection( wxBOTH );
221 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
242 wxFlexGridSizer* fgSizer3;
243 fgSizer3 =
new wxFlexGridSizer( 0, 3, 3, 0 );
244 fgSizer3->AddGrowableCol( 1 );
245 fgSizer3->SetFlexibleDirection( wxBOTH );
246 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
250 fgSizer3->Add(
m_staticTextPosX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
252 m_textCtrlPosX =
new wxTextCtrl(
sbSizerPos->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
253 fgSizer3->Add(
m_textCtrlPosX, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
257 fgSizer3->Add(
m_TextPosXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 5 );
261 fgSizer3->Add(
m_staticTextPosY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
263 m_textCtrlPosY =
new wxTextCtrl(
sbSizerPos->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
264 fgSizer3->Add(
m_textCtrlPosY, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
268 fgSizer3->Add(
m_TextPosYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 5 );
285 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
288 sbSizerPos->Add( fgSizer3, 0, wxEXPAND|wxBOTTOM, 5 );
295 wxFlexGridSizer* fgSizer4;
296 fgSizer4 =
new wxFlexGridSizer( 0, 3, 3, 0 );
297 fgSizer4->AddGrowableCol( 1 );
298 fgSizer4->SetFlexibleDirection( wxBOTH );
299 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
303 fgSizer4->Add(
m_staticTextEndX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
306 fgSizer4->Add(
m_textCtrlEndX, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
310 fgSizer4->Add(
m_TextEndXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 5 );
314 fgSizer4->Add(
m_staticTextEndY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
317 fgSizer4->Add(
m_textCtrlEndY, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
321 fgSizer4->Add(
m_TextEndYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
338 fgSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
346 wxBoxSizer* sizerMisc;
347 sizerMisc =
new wxBoxSizer( wxHORIZONTAL );
349 wxGridBagSizer* gbSizer1;
350 gbSizer1 =
new wxGridBagSizer( 3, 0 );
351 gbSizer1->SetFlexibleDirection( wxBOTH );
352 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
356 gbSizer1->Add(
m_lineWidthLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
359 gbSizer1->Add(
m_lineWidthCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
363 gbSizer1->Add(
m_lineWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
367 gbSizer1->Add(
m_staticTextRot, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
370 gbSizer1->Add(
m_textCtrlRotation, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
374 gbSizer1->Add(
m_staticTextBitmapDPI, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
377 gbSizer1->Add(
m_textCtrlBitmapDPI, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 3 );
380 gbSizer1->AddGrowableCol( 1 );
382 sizerMisc->Add( gbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT, 3 );
387 wxStaticBoxSizer* m_sbStep;
388 m_sbStep =
new wxStaticBoxSizer(
new wxStaticBox(
m_swItemProperties, wxID_ANY,
_(
"Repeat Parameters") ), wxVERTICAL );
390 wxFlexGridSizer* fgSizer8;
391 fgSizer8 =
new wxFlexGridSizer( 0, 3, 3, 0 );
392 fgSizer8->AddGrowableCol( 1 );
393 fgSizer8->SetFlexibleDirection( wxBOTH );
394 fgSizer8->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
396 m_staticTextRepeatCnt =
new wxStaticText( m_sbStep->GetStaticBox(), wxID_ANY,
_(
"Count:"), wxDefaultPosition, wxDefaultSize, 0 );
400 m_textCtrlRepeatCount =
new wxTextCtrl( m_sbStep->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
404 fgSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
406 m_staticTextInclabel =
new wxStaticText( m_sbStep->GetStaticBox(), wxID_ANY,
_(
"Step text:"), wxDefaultPosition, wxDefaultSize, 0 );
410 m_textCtrlTextIncrement =
new wxTextCtrl( m_sbStep->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
416 fgSizer8->Add( 0, 0, 0, wxEXPAND, 5 );
418 m_staticTextStepX =
new wxStaticText( m_sbStep->GetStaticBox(), wxID_ANY,
_(
"Step X:"), wxDefaultPosition, wxDefaultSize, 0 );
420 fgSizer8->Add(
m_staticTextStepX, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 3 );
422 m_textCtrlStepX =
new wxTextCtrl( m_sbStep->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
423 m_textCtrlStepX->SetToolTip(
_(
"Distance on the X axis to step for each repeat.") );
425 fgSizer8->Add(
m_textCtrlStepX, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
427 m_TextStepXUnits =
new wxStaticText( m_sbStep->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
429 fgSizer8->Add(
m_TextStepXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 5 );
431 m_staticTextStepY =
new wxStaticText( m_sbStep->GetStaticBox(), wxID_ANY,
_(
"Step Y:"), wxDefaultPosition, wxDefaultSize, 0 );
433 fgSizer8->Add(
m_staticTextStepY, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 3 );
435 m_textCtrlStepY =
new wxTextCtrl( m_sbStep->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
436 m_textCtrlStepY->SetToolTip(
_(
"Distance to step on Y axis for each repeat.") );
438 fgSizer8->Add(
m_textCtrlStepY, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
440 m_TextStepYUnits =
new wxStaticText( m_sbStep->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
442 fgSizer8->Add(
m_TextStepYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 5 );
445 m_sbStep->Add( fgSizer8, 0, wxEXPAND|wxBOTTOM, 5 );
455 m_swGeneralOpts =
new wxScrolledWindow(
m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxTAB_TRAVERSAL|wxVSCROLL );
457 wxBoxSizer* bSizerGeneralOpts;
458 bSizerGeneralOpts =
new wxBoxSizer( wxVERTICAL );
460 wxStaticBoxSizer* sbSizer1;
461 sbSizer1 =
new wxStaticBoxSizer(
new wxStaticBox(
m_swGeneralOpts, wxID_ANY,
_(
"Default Values") ), wxVERTICAL );
463 wxFlexGridSizer* fgSizer5;
464 fgSizer5 =
new wxFlexGridSizer( 0, 2, 0, 0 );
465 fgSizer5->AddGrowableCol( 0 );
466 fgSizer5->SetFlexibleDirection( wxBOTH );
467 fgSizer5->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
469 m_staticTextDefTsX =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Text width:"), wxDefaultPosition, wxDefaultSize, 0 );
474 fgSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
476 m_textCtrlDefaultTextSizeX =
new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
479 m_defaultTextSizeXUnits =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
483 m_staticTextDefTsY =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Text height:"), wxDefaultPosition, wxDefaultSize, 0 );
488 fgSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
490 m_textCtrlDefaultTextSizeY =
new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
493 m_defaultTextSizeYUnits =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
497 m_defaultLineWidthLabel =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Line thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
502 fgSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
504 m_defaultLineWidthCtrl =
new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
507 m_defaultLineWidthUnits =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
511 m_defaultTextThicknessLabel =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Text thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
516 fgSizer5->Add( 0, 0, 1, wxEXPAND|wxRIGHT, 5 );
518 m_defaultTextThicknessCtrl =
new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
526 fgSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
529 sbSizer1->Add( fgSizer5, 1, wxEXPAND, 5 );
531 m_buttonDefault =
new wxButton( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Set to Default"), wxDefaultPosition, wxDefaultSize, 0 );
535 bSizerGeneralOpts->Add( sbSizer1, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
537 wxStaticBoxSizer* bSizerGeneraMargins;
538 bSizerGeneraMargins =
new wxStaticBoxSizer(
new wxStaticBox(
m_swGeneralOpts, wxID_ANY,
_(
"Page Margins") ), wxVERTICAL );
540 wxFlexGridSizer* fgSizer6;
541 fgSizer6 =
new wxFlexGridSizer( 0, 2, 0, 0 );
542 fgSizer6->AddGrowableCol( 0 );
543 fgSizer6->SetFlexibleDirection( wxBOTH );
544 fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
546 m_leftMarginLabel =
new wxStaticText( bSizerGeneraMargins->GetStaticBox(), wxID_ANY,
_(
"Left:"), wxDefaultPosition, wxDefaultSize, 0 );
551 fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
553 m_leftMarginCtrl =
new wxTextCtrl( bSizerGeneraMargins->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
554 fgSizer6->Add(
m_leftMarginCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
556 m_leftMarginUnits =
new wxStaticText( bSizerGeneraMargins->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
558 fgSizer6->Add(
m_leftMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 5 );
560 m_rightMarginLabel =
new wxStaticText( bSizerGeneraMargins->GetStaticBox(), wxID_ANY,
_(
"Right:"), wxDefaultPosition, wxDefaultSize, 0 );
565 fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
567 m_rightMarginCtrl =
new wxTextCtrl( bSizerGeneraMargins->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
568 fgSizer6->Add(
m_rightMarginCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
570 m_rightMarginUnits =
new wxStaticText( bSizerGeneraMargins->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
572 fgSizer6->Add(
m_rightMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 5 );
574 m_topMarginLabel =
new wxStaticText( bSizerGeneraMargins->GetStaticBox(), wxID_ANY,
_(
"Top:"), wxDefaultPosition, wxDefaultSize, 0 );
579 fgSizer6->Add( 0, 0, 1, wxEXPAND|wxRIGHT, 5 );
581 m_topMarginCtrl =
new wxTextCtrl( bSizerGeneraMargins->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
582 fgSizer6->Add(
m_topMarginCtrl, 0, wxEXPAND|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
584 m_topMarginUnits =
new wxStaticText( bSizerGeneraMargins->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
586 fgSizer6->Add(
m_topMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
588 m_bottomMarginLabel =
new wxStaticText( bSizerGeneraMargins->GetStaticBox(), wxID_ANY,
_(
"Bottom:"), wxDefaultPosition, wxDefaultSize, 0 );
593 fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
595 m_bottomMarginCtrl =
new wxTextCtrl( bSizerGeneraMargins->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
596 fgSizer6->Add(
m_bottomMarginCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
598 m_bottomMarginUnits =
new wxStaticText( bSizerGeneraMargins->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
600 fgSizer6->Add(
m_bottomMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
603 bSizerGeneraMargins->Add( fgSizer6, 1, wxEXPAND, 5 );
606 bSizerGeneralOpts->Add( bSizerGeneraMargins, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
614 bSizerpanel->Add(
m_notebook, 1, wxEXPAND, 5 );
617 this->SetSizer( bSizerpanel );
619 bSizerpanel->Fit(
this );
A simple color swatch of the kind used to set layer colors.
virtual void onScintillaFocusLost(wxFocusEvent &event)
wxStaticText * m_bottomMarginUnits
wxTextCtrl * m_constraintXCtrl
wxTextCtrl * m_textCtrlRepeatCount
virtual void OnSetDefaultValues(wxCommandEvent &event)
BITMAP_BUTTON * m_separator2
wxStaticText * m_lineWidthLabel
wxTextCtrl * m_rightMarginCtrl
wxScrolledWindow * m_swItemProperties
wxTextCtrl * m_leftMarginCtrl
wxStaticBoxSizer * m_sbSizerEndPosition
wxTextCtrl * m_textCtrlPosY
wxStaticText * m_staticTextType
wxStaticText * m_staticTextEndY
wxStaticText * m_leftMarginLabel
wxStaticText * m_leftMarginUnits
wxStaticText * m_fontLabel
wxTextCtrl * m_textCtrlEndX
wxStaticText * m_constraintYUnits
virtual void OnUpdateUI(wxUpdateUIEvent &event)
wxStaticText * m_topMarginLabel
wxTextCtrl * m_textCtrlComment
wxBoxSizer * m_SizerTextOptions
wxStaticText * m_TextStepXUnits
virtual void onModify(wxCommandEvent &event)
wxComboBox * m_comboBoxCornerPos
wxButton * m_buttonDefault
wxStaticText * m_constraintXLabel
wxStaticText * m_staticTextTsizeX
wxStaticText * m_lineWidthUnits
wxStyledTextCtrl * m_stcText
wxTextCtrl * m_constraintYCtrl
wxScrolledWindow * m_swGeneralOpts
BITMAP_BUTTON * m_alignCenter
wxStaticText * m_staticTextTsizeY
wxTextCtrl * m_defaultLineWidthCtrl
wxStaticText * m_staticTextDefTsY
wxTextCtrl * m_defaultTextThicknessCtrl
wxStaticText * m_staticTextInclabel
wxStaticText * m_constraintYLabel
wxStaticText * m_TextPosXUnits
wxStaticText * m_staticTextRepeatCnt
BITMAP_BUTTON * m_separator3
wxStaticText * m_staticTextComment
wxStaticText * m_TextStepYUnits
wxTextCtrl * m_textCtrlRotation
wxTextCtrl * m_textCtrlDefaultTextSizeY
wxStaticText * m_staticTextPosY
wxStaticText * m_staticTextDefTsX
BITMAP_BUTTON * m_separator4
wxStaticText * m_topMarginUnits
virtual void onHelp(wxCommandEvent &event)
wxTextCtrl * m_textCtrlStepX
wxTextCtrl * m_textCtrlTextSizeX
wxTextCtrl * m_textCtrlEndY
wxStaticText * m_rightMarginUnits
wxTextCtrl * m_textCtrlBitmapDPI
wxComboBox * m_comboBoxCornerEnd
wxPanel * m_panelBorderColor1
wxStaticText * m_TextEndYUnits
wxStaticText * m_staticTextEndX
wxStaticText * m_staticTextStepY
wxTextCtrl * m_textCtrlTextSizeY
wxStaticText * m_staticTextBitmapDPI
wxBoxSizer * m_SizerItemProperties
wxStaticText * m_defaultLineWidthUnits
PANEL_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxTextCtrl * m_textCtrlPosX
COLOR_SWATCH * m_textColorSwatch
BITMAP_BUTTON * m_alignRight
wxStaticText * m_defaultTextSizeXUnits
BITMAP_BUTTON * m_vAlignMiddle
wxStaticText * m_bottomMarginLabel
wxStaticText * m_staticTextPosX
wxStaticText * m_TextPosYUnits
wxStaticText * m_staticTextSizeInfo
wxTextCtrl * m_textCtrlStepY
wxTextCtrl * m_textCtrlDefaultTextSizeX
wxTextCtrl * m_bottomMarginCtrl
wxStaticText * m_defaultLineWidthLabel
wxTextCtrl * m_lineWidthCtrl
wxStaticText * m_TextEndXUnits
wxStaticText * m_defaultTextThicknessLabel
virtual void onTextFocusLost(wxFocusEvent &event)
wxTextCtrl * m_textCtrlTextIncrement
wxTextCtrl * m_topMarginCtrl
wxStaticText * m_staticTextOrgEnd
wxStaticBoxSizer * sbSizerPos
wxStaticText * m_defaultTextThicknessUnits
wxStaticText * m_staticTextOrgPos
wxStaticText * m_rightMarginLabel
wxStaticText * m_staticTextRot
BITMAP_BUTTON * m_vAlignTop
wxStaticText * m_constraintXUnits
BITMAP_BUTTON * m_vAlignBottom
BITMAP_BUTTON * m_alignLeft
wxStaticText * m_textSizeYUnits
wxStaticText * m_staticTextStepX
wxChoice * m_choicePageOpt
wxStaticText * m_defaultTextSizeYUnits
wxStaticText * m_textSizeXUnits