16DIALOG_DIMENSION_PROPERTIES_BASE::DIALOG_DIMENSION_PROPERTIES_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
18 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
22 m_sizerLeader =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Leader Format") ), wxVERTICAL );
24 wxGridBagSizer* gbSizerLeader;
25 gbSizerLeader =
new wxGridBagSizer( 0, 0 );
26 gbSizerLeader->SetFlexibleDirection( wxBOTH );
27 gbSizerLeader->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 gbSizerLeader->Add(
m_lblLeaderValue, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
34 gbSizerLeader->Add(
m_txtLeaderValue, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
37 gbSizerLeader->Add( 60, 0, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
43 gbSizerLeader->Add(
m_lblTextFrame, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
45 wxString m_cbTextFrameChoices[] = {
_(
"None"),
_(
"Rectangle"),
_(
"Circle") };
46 int m_cbTextFrameNChoices =
sizeof( m_cbTextFrameChoices ) /
sizeof( wxString );
47 m_cbTextFrame =
new wxChoice(
m_sizerLeader->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbTextFrameNChoices, m_cbTextFrameChoices, 0 );
49 m_cbTextFrame->SetToolTip(
_(
"Draw a shape around the leader text") );
51 gbSizerLeader->Add(
m_cbTextFrame, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
55 gbSizerLeader->Add(
m_lblLeaderLayer, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
58 gbSizerLeader->Add(
m_cbLeaderLayer, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
61 gbSizerLeader->AddGrowableCol( 1 );
62 gbSizerLeader->AddGrowableCol( 4 );
69 m_sizerCenter =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Dimension Format") ), wxVERTICAL );
71 wxGridBagSizer* gbSizerCenter;
72 gbSizerCenter =
new wxGridBagSizer( 0, 0 );
73 gbSizerCenter->SetFlexibleDirection( wxBOTH );
74 gbSizerCenter->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
78 gbSizerCenter->Add(
m_lblCenterLayer, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
81 gbSizerCenter->Add(
m_cbCenterLayer, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
89 m_sizerFormat =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Dimension Format") ), wxVERTICAL );
91 wxGridBagSizer* gbSizerFormat;
92 gbSizerFormat =
new wxGridBagSizer( 3, 0 );
93 gbSizerFormat->SetFlexibleDirection( wxBOTH );
94 gbSizerFormat->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
96 m_lblValue =
new wxStaticText(
m_sizerFormat->GetStaticBox(), wxID_ANY,
_(
"Value:"), wxDefaultPosition, wxDefaultSize, 0 );
98 m_lblValue->SetToolTip(
_(
"Measured value of this dimension") );
100 gbSizerFormat->Add(
m_lblValue, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
102 m_txtValue =
new wxTextCtrl(
m_sizerFormat->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
104 m_txtValue->SetToolTip(
_(
"Measured value of this dimension") );
106 gbSizerFormat->Add(
m_txtValue, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
109 m_cbOverrideValue->SetToolTip(
_(
"When checked, the actual measurement is ignored and any value can be entered") );
111 gbSizerFormat->Add(
m_cbOverrideValue, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
114 gbSizerFormat->Add( 40, 0, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), 0, 5 );
116 m_lblUnits =
new wxStaticText(
m_sizerFormat->GetStaticBox(), wxID_ANY,
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
118 m_lblUnits->SetToolTip(
_(
"Units of this dimension (\"automatic\" to follow the units selected in the editor)") );
120 gbSizerFormat->Add(
m_lblUnits, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
122 wxString m_cbUnitsChoices[] = {
_(
"Inches"),
_(
"Mils"),
_(
"Millimeters"),
_(
"Automatic") };
123 int m_cbUnitsNChoices =
sizeof( m_cbUnitsChoices ) /
sizeof( wxString );
124 m_cbUnits =
new wxChoice(
m_sizerFormat->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbUnitsNChoices, m_cbUnitsChoices, 0 );
126 m_cbUnits->SetToolTip(
_(
"Units of this dimension (\"automatic\" to follow the units selected in the editor)") );
128 gbSizerFormat->Add(
m_cbUnits, wxGBPosition( 0, 5 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
130 m_lblPrefix =
new wxStaticText(
m_sizerFormat->GetStaticBox(), wxID_ANY,
_(
"Prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
132 m_lblPrefix->SetToolTip(
_(
"Text to print before the dimension value") );
134 gbSizerFormat->Add(
m_lblPrefix, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
136 m_txtPrefix =
new wxTextCtrl(
m_sizerFormat->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
137 m_txtPrefix->SetToolTip(
_(
"Text to print before the dimension value") );
139 gbSizerFormat->Add(
m_txtPrefix, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
145 gbSizerFormat->Add(
m_txtUnitsFormat, wxGBPosition( 1, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
147 wxString m_cbUnitsFormatChoices[] = {
_(
"1234"),
_(
"1234 mm"),
_(
"1234 (mm)") };
148 int m_cbUnitsFormatNChoices =
sizeof( m_cbUnitsFormatChoices ) /
sizeof( wxString );
149 m_cbUnitsFormat =
new wxChoice(
m_sizerFormat->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbUnitsFormatNChoices, m_cbUnitsFormatChoices, 0 );
153 gbSizerFormat->Add(
m_cbUnitsFormat, wxGBPosition( 1, 5 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
155 m_lblSuffix =
new wxStaticText(
m_sizerFormat->GetStaticBox(), wxID_ANY,
_(
"Suffix:"), wxDefaultPosition, wxDefaultSize, 0 );
157 m_lblSuffix->SetToolTip(
_(
"Text to print after the dimension value") );
159 gbSizerFormat->Add(
m_lblSuffix, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
161 m_txtSuffix =
new wxTextCtrl(
m_sizerFormat->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
162 m_txtSuffix->SetToolTip(
_(
"Text to print after the dimension value") );
164 gbSizerFormat->Add(
m_txtSuffix, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
168 m_lblPrecision->SetToolTip(
_(
"Choose how many digits of precision to display") );
170 gbSizerFormat->Add(
m_lblPrecision, wxGBPosition( 2, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
174 gbSizerFormat->Add(
m_lblArrowDirection, wxGBPosition( 3, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
176 wxString m_cbPrecisionChoices[] = {
_(
"0"),
_(
"0.0"),
_(
"0.00"),
_(
"0.000"),
_(
"0.0000"),
_(
"0.00000"),
_(
"0.00 in / 0 mils / 0.0 mm"),
_(
"0.000 / 0 / 0.00"),
_(
"0.0000 / 0.0 / 0.000"),
_(
"0.00000 / 0.00 / 0.0000") };
177 int m_cbPrecisionNChoices =
sizeof( m_cbPrecisionChoices ) /
sizeof( wxString );
178 m_cbPrecision =
new wxChoice(
m_sizerFormat->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbPrecisionNChoices, m_cbPrecisionChoices, 0 );
180 m_cbPrecision->SetToolTip(
_(
"Choose how many digits of precision to display") );
182 gbSizerFormat->Add(
m_cbPrecision, wxGBPosition( 2, 5 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
184 wxString m_cbArrowDirectionChoices[] = {
_(
"Inward"),
_(
"Outward") };
185 int m_cbArrowDirectionNChoices =
sizeof( m_cbArrowDirectionChoices ) /
sizeof( wxString );
186 m_cbArrowDirection =
new wxChoice(
m_sizerFormat->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbArrowDirectionNChoices, m_cbArrowDirectionChoices, 0 );
188 m_cbArrowDirection->SetToolTip(
_(
"Chose Dimension Arrow Direction\nAutomatic: Determined based on text position.\nInward: >-----<\nOutward: <----->") );
190 gbSizerFormat->Add(
m_cbArrowDirection, wxGBPosition( 3, 5 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
193 gbSizerFormat->Add(
m_cbLayer, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
195 m_lblLayer =
new wxStaticText(
m_sizerFormat->GetStaticBox(), wxID_ANY,
_(
"Layer:"), wxDefaultPosition, wxDefaultSize, 0 );
197 gbSizerFormat->Add(
m_lblLayer, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
200 m_cbSuppressZeroes->SetToolTip(
_(
"When checked, \"0.100\" will be shown as \"0.1\" even if the precision setting is higher") );
202 gbSizerFormat->Add(
m_cbSuppressZeroes, wxGBPosition( 4, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
204 m_lblPreview =
new wxStaticText(
m_sizerFormat->GetStaticBox(), wxID_ANY,
_(
"Preview:"), wxDefaultPosition, wxDefaultSize, 0 );
206 gbSizerFormat->Add(
m_lblPreview, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
210 gbSizerFormat->Add(
m_staticTextPreview, wxGBPosition( 4, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxEXPAND, 5 );
213 gbSizerFormat->AddGrowableCol( 1 );
214 gbSizerFormat->AddGrowableCol( 5 );
216 m_sizerFormat->Add( gbSizerFormat, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
221 m_sizerText =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Dimension Text") ), wxVERTICAL );
223 wxGridBagSizer* gbSizerText;
224 gbSizerText =
new wxGridBagSizer( 3, 0 );
225 gbSizerText->SetFlexibleDirection( wxBOTH );
226 gbSizerText->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
228 m_fontLabel =
new wxStaticText(
m_sizerText->GetStaticBox(), wxID_ANY,
_(
"Font:"), wxDefaultPosition, wxDefaultSize, 0 );
230 gbSizerText->Add(
m_fontLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
232 wxString m_fontCtrlChoices[] = {
_(
"KiCad Font") };
233 int m_fontCtrlNChoices =
sizeof( m_fontCtrlChoices ) /
sizeof( wxString );
236 gbSizerText->Add(
m_fontCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND, 5 );
238 wxBoxSizer* bSizerButtonBar;
239 bSizerButtonBar =
new wxBoxSizer( wxHORIZONTAL );
244 bSizerButtonBar->Add(
m_separator0, 0, wxALIGN_CENTER_VERTICAL, 5 );
247 bSizerButtonBar->Add(
m_bold, 0, wxALIGN_CENTER_VERTICAL, 5 );
250 bSizerButtonBar->Add(
m_italic, 0, wxALIGN_CENTER_VERTICAL, 5 );
255 bSizerButtonBar->Add(
m_separator1, 0, wxALIGN_CENTER_VERTICAL, 5 );
258 bSizerButtonBar->Add(
m_alignLeft, 0, wxALIGN_CENTER_VERTICAL, 5 );
261 bSizerButtonBar->Add(
m_alignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
264 bSizerButtonBar->Add(
m_alignRight, 0, wxALIGN_CENTER_VERTICAL, 5 );
269 bSizerButtonBar->Add(
m_separator2, 0, wxALIGN_CENTER_VERTICAL, 5 );
272 bSizerButtonBar->Add(
m_mirrored, 0, wxALIGN_CENTER_VERTICAL, 5 );
277 bSizerButtonBar->Add(
m_separator3, 0, wxALIGN_CENTER_VERTICAL, 5 );
280 gbSizerText->Add( bSizerButtonBar, wxGBPosition( 0, 4 ), wxGBSpan( 1, 3 ), wxEXPAND|wxBOTTOM|wxALIGN_CENTER_VERTICAL, 5 );
286 gbSizerText->Add(
m_lblTextWidth, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
288 m_txtTextWidth =
new wxTextCtrl(
m_sizerText->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
289 gbSizerText->Add(
m_txtTextWidth, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
293 gbSizerText->Add(
m_lblTextWidthUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
296 gbSizerText->Add( 40, 0, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
298 m_lblTextPosX =
new wxStaticText(
m_sizerText->GetStaticBox(), wxID_ANY,
_(
"Position X:"), wxDefaultPosition, wxDefaultSize, 0 );
302 gbSizerText->Add(
m_lblTextPosX, wxGBPosition( 1, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
304 m_txtTextPosX =
new wxTextCtrl(
m_sizerText->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
305 gbSizerText->Add(
m_txtTextPosX, wxGBPosition( 1, 5 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
309 gbSizerText->Add(
m_lblTextPosXUnits, wxGBPosition( 1, 6 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT|wxRIGHT, 5 );
315 gbSizerText->Add(
m_lblTextHeight, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
317 m_txtTextHeight =
new wxTextCtrl(
m_sizerText->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
318 gbSizerText->Add(
m_txtTextHeight, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
322 gbSizerText->Add(
m_lblTextHeightUnits, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
324 m_lblTextPosY =
new wxStaticText(
m_sizerText->GetStaticBox(), wxID_ANY,
_(
"Position Y:"), wxDefaultPosition, wxDefaultSize, 0 );
328 gbSizerText->Add(
m_lblTextPosY, wxGBPosition( 2, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
330 m_txtTextPosY =
new wxTextCtrl(
m_sizerText->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
331 gbSizerText->Add(
m_txtTextPosY, wxGBPosition( 2, 5 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
335 gbSizerText->Add(
m_lblTextPosYUnits, wxGBPosition( 2, 6 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
341 gbSizerText->Add(
m_lblTextThickness, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
343 m_txtTextThickness =
new wxTextCtrl(
m_sizerText->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
344 gbSizerText->Add(
m_txtTextThickness, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
348 gbSizerText->Add(
m_lblTextThicknessUnits, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
354 gbSizerText->Add(
m_lblTextOrientation, wxGBPosition( 3, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
361 gbSizerText->Add(
m_cbTextOrientation, wxGBPosition( 3, 5 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
365 gbSizerText->Add(
m_lblTextPositionMode, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
367 wxString m_cbTextPositionModeChoices[] = {
_(
"Outside"),
_(
"Inline"),
_(
"Manual") };
368 int m_cbTextPositionModeNChoices =
sizeof( m_cbTextPositionModeChoices ) /
sizeof( wxString );
369 m_cbTextPositionMode =
new wxChoice(
m_sizerText->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbTextPositionModeNChoices, m_cbTextPositionModeChoices, 0 );
371 m_cbTextPositionMode->SetToolTip(
_(
"Choose how to position the text relative to the dimension line") );
373 gbSizerText->Add(
m_cbTextPositionMode, wxGBPosition( 4, 1 ), wxGBSpan( 1, 2 ), wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
375 m_cbKeepAligned =
new wxCheckBox(
m_sizerText->GetStaticBox(), wxID_ANY,
_(
"Keep aligned with dimension"), wxDefaultPosition, wxDefaultSize, 0 );
376 m_cbKeepAligned->SetToolTip(
_(
"Automatically set the text orientation to match the dimension lines") );
378 gbSizerText->Add(
m_cbKeepAligned, wxGBPosition( 4, 4 ), wxGBSpan( 1, 3 ), wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
381 gbSizerText->AddGrowableCol( 1 );
382 gbSizerText->AddGrowableCol( 5 );
384 m_sizerText->Add( gbSizerText, 0, wxBOTTOM|wxEXPAND|wxLEFT, 5 );
389 wxStaticBoxSizer* sbSizerLine;
390 sbSizerLine =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Dimension Line") ), wxVERTICAL );
392 wxGridBagSizer* gbSizerLine;
393 gbSizerLine =
new wxGridBagSizer( 3, 0 );
394 gbSizerLine->SetFlexibleDirection( wxBOTH );
395 gbSizerLine->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
397 m_lblLineThickness =
new wxStaticText( sbSizerLine->GetStaticBox(), wxID_ANY,
_(
"Line thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
401 gbSizerLine->Add(
m_lblLineThickness, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
403 m_txtLineThickness =
new wxTextCtrl( sbSizerLine->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
404 gbSizerLine->Add(
m_txtLineThickness, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
406 m_lblLineThicknessUnits =
new wxStaticText( sbSizerLine->GetStaticBox(), wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
408 gbSizerLine->Add(
m_lblLineThicknessUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
411 gbSizerLine->Add( 40, 0, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
413 m_lblArrowLength =
new wxStaticText( sbSizerLine->GetStaticBox(), wxID_ANY,
_(
"Arrow length:"), wxDefaultPosition, wxDefaultSize, 0 );
415 gbSizerLine->Add(
m_lblArrowLength, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
417 m_txtArrowLength =
new wxTextCtrl( sbSizerLine->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
418 gbSizerLine->Add(
m_txtArrowLength, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
420 m_lblArrowLengthUnits =
new wxStaticText( sbSizerLine->GetStaticBox(), wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
422 gbSizerLine->Add(
m_lblArrowLengthUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
424 m_lblExtensionOffset =
new wxStaticText( sbSizerLine->GetStaticBox(), wxID_ANY,
_(
"Extension line offset:"), wxDefaultPosition, wxDefaultSize, 0 );
426 m_lblExtensionOffset->SetToolTip(
_(
"Gap between the measured points and the start of the extension lines") );
428 gbSizerLine->Add(
m_lblExtensionOffset, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
430 m_txtExtensionOffset =
new wxTextCtrl( sbSizerLine->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
431 m_txtExtensionOffset->SetToolTip(
_(
"Gap between the measured points and the start of the extension lines") );
433 gbSizerLine->Add(
m_txtExtensionOffset, wxGBPosition( 0, 5 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
435 m_lblExtensionOffsetUnits =
new wxStaticText( sbSizerLine->GetStaticBox(), wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
437 gbSizerLine->Add(
m_lblExtensionOffsetUnits, wxGBPosition( 0, 6 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
439 m_lblExtensionOvershoot =
new wxStaticText( sbSizerLine->GetStaticBox(), wxID_ANY,
_(
"Extension line overshoot:"), wxDefaultPosition, wxDefaultSize, 0 );
441 gbSizerLine->Add(
m_lblExtensionOvershoot, wxGBPosition( 1, 4 ), wxGBSpan( 1, 1 ), wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
443 m_txtExtensionOvershoot =
new wxTextCtrl( sbSizerLine->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
444 gbSizerLine->Add(
m_txtExtensionOvershoot, wxGBPosition( 1, 5 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
451 gbSizerLine->AddGrowableCol( 1 );
452 gbSizerLine->AddGrowableCol( 5 );
454 sbSizerLine->Add( gbSizerLine, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
457 m_mainSizer->Add( sbSizerLine, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 10 );
473 this->Centre( wxBOTH );
wxStaticText * m_lblTextThickness
wxCheckBox * m_cbSuppressZeroes
wxTextCtrl * m_txtLineThickness
PCB_LAYER_BOX_SELECTOR * m_cbLeaderLayer
BITMAP_BUTTON * m_separator2
wxStaticText * m_lblLeaderLayer
wxStaticBoxSizer * m_sizerCenter
wxStaticText * m_lblPreview
virtual void onAlignButton(wxCommandEvent &event)
BITMAP_BUTTON * m_alignCenter
wxComboBox * m_cbTextOrientation
PCB_LAYER_BOX_SELECTOR * m_cbCenterLayer
wxStaticText * m_lblTextPosXUnits
wxStaticText * m_lblTextPosYUnits
virtual void onThickness(wxCommandEvent &event)
wxStaticText * m_lblTextThicknessUnits
wxStaticText * m_lblArrowLength
wxTextCtrl * m_txtTextPosX
wxStaticText * m_lblExtensionOvershootUnits
~DIALOG_DIMENSION_PROPERTIES_BASE()
wxStaticText * m_lblTextPosX
wxTextCtrl * m_txtExtensionOffset
wxStaticText * m_lblLayer
wxStaticText * m_lblPrecision
wxStaticText * m_staticTextPreview
virtual void onFontSelected(wxCommandEvent &event)
wxStaticText * m_lblValue
wxChoice * m_cbUnitsFormat
wxStaticText * m_lblTextHeight
wxTextCtrl * m_txtArrowLength
wxStaticText * m_lblTextWidthUnits
wxStaticBoxSizer * m_sizerText
wxStaticText * m_lblTextPositionMode
wxStaticText * m_lblUnits
BITMAP_BUTTON * m_alignRight
wxCheckBox * m_cbKeepAligned
wxStdDialogButtonSizer * m_sdbSizer
BITMAP_BUTTON * m_mirrored
wxTextCtrl * m_txtTextPosY
wxStaticText * m_lblArrowDirection
wxStaticText * m_lblTextPosY
wxStaticText * m_lblTextWidth
virtual void OnInitDlg(wxInitDialogEvent &event)
wxChoice * m_cbTextPositionMode
wxTextCtrl * m_txtTextHeight
wxTextCtrl * m_txtTextThickness
DIALOG_DIMENSION_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Dimension Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU)
wxTextCtrl * m_txtTextWidth
wxStaticBoxSizer * m_sizerLeader
wxStaticText * m_lblExtensionOffset
wxTextCtrl * m_txtLeaderValue
wxStaticText * m_lblExtensionOffsetUnits
wxStaticText * m_lblLeaderValue
wxStaticText * m_lblLineThickness
virtual void OnDimensionUnitsChange(wxCommandEvent &event)
wxStaticText * m_txtUnitsFormat
wxStaticText * m_lblArrowLengthUnits
wxStaticText * m_lblPrefix
wxStaticBoxSizer * m_sizerFormat
BITMAP_BUTTON * m_separator1
virtual void OnOkClick(wxCommandEvent &event)
wxButton * m_sdbSizerCancel
wxStaticText * m_lblExtensionOvershoot
wxStaticText * m_lblSuffix
BITMAP_BUTTON * m_alignLeft
virtual void onBoldToggle(wxCommandEvent &event)
BITMAP_BUTTON * m_separator0
wxCheckBox * m_cbOverrideValue
PCB_LAYER_BOX_SELECTOR * m_cbLayer
wxStaticText * m_lblLineThicknessUnits
BITMAP_BUTTON * m_separator3
wxStaticText * m_lblTextHeightUnits
wxStaticText * m_fontLabel
wxStaticText * m_lblCenterLayer
wxChoice * m_cbArrowDirection
wxStaticText * m_lblTextFrame
wxTextCtrl * m_txtExtensionOvershoot
wxStaticText * m_lblTextOrientation
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Class to display a pcb layer list in a wxBitmapComboBox.