16PANEL_SETUP_FORMATTING_BASE::
PANEL_SETUP_FORMATTING_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* bPanelSizer;
19 bPanelSizer =
new wxBoxSizer( wxHORIZONTAL );
21 wxBoxSizer* bLeftColumn;
22 bLeftColumn =
new wxBoxSizer( wxVERTICAL );
24 m_staticText26 =
new wxStaticText(
this, wxID_ANY,
_(
"Text"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
29 bLeftColumn->Add(
m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
31 wxFlexGridSizer* fgSizer2;
32 fgSizer2 =
new wxFlexGridSizer( 0, 3, 5, 5 );
33 fgSizer2->AddGrowableCol( 1 );
34 fgSizer2->SetFlexibleDirection( wxHORIZONTAL );
35 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
37 m_textSizeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default text size:"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_textSizeCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44 m_textSizeUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
46 fgSizer2->Add(
m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5 );
48 m_overbarHieghtLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Overbar offset ratio:"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_overbarHeightCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
55 m_overbarHeightUnits =
new wxStaticText(
this, wxID_ANY,
_(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_textOffsetRatioLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Label offset ratio:"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_textOffsetRatioLabel->SetToolTip(
_(
"Percentage of the text size to offset labels above (or below) a wire, bus, or pin") );
65 m_textOffsetRatioCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
66 m_textOffsetRatioCtrl->SetToolTip(
_(
"Percentage of the text size to offset labels above (or below) a wire, bus, or pin") );
70 m_offsetRatioUnits =
new wxStaticText(
this, wxID_ANY,
_(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_labelSizeRatioLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Global label margin ratio:"), wxDefaultPosition, wxDefaultSize, 0 );
76 m_labelSizeRatioLabel->SetToolTip(
_(
"Percentage of the text size to use as space around a global label") );
80 m_labelSizeRatioCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
81 m_labelSizeRatioCtrl->SetToolTip(
_(
"Percentage of the text size to use as space around a global label") );
90 bLeftColumn->Add( fgSizer2, 0, wxEXPAND|wxALL, 5 );
93 bLeftColumn->Add( 0, 5, 0, wxEXPAND, 5 );
95 m_staticText27 =
new wxStaticText(
this, wxID_ANY,
_(
"Symbols"), wxDefaultPosition, wxDefaultSize, 0 );
99 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
100 bLeftColumn->Add(
m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
102 wxFlexGridSizer* fgSizer321;
103 fgSizer321 =
new wxFlexGridSizer( 0, 3, 5, 0 );
104 fgSizer321->AddGrowableCol( 1 );
105 fgSizer321->SetFlexibleDirection( wxBOTH );
106 fgSizer321->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
108 m_lineWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
110 fgSizer321->Add(
m_lineWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
112 m_lineWidthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
113 fgSizer321->Add(
m_lineWidthCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
115 m_lineWidthUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
117 fgSizer321->Add(
m_lineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE|wxLEFT|wxRIGHT, 5 );
119 m_pinSymbolSizeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Pin symbol size:"), wxDefaultPosition, wxDefaultSize, 0 );
123 m_pinSymbolSizeCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
126 m_pinSymbolSizeUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
128 fgSizer321->Add(
m_pinSymbolSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE|wxLEFT|wxRIGHT, 5 );
131 bLeftColumn->Add( fgSizer321, 0, wxEXPAND|wxALL, 5 );
133 m_showDNPMarkers =
new wxCheckBox(
this, wxID_ANY,
_(
"Show 'Do not populate' markers"), wxDefaultPosition, wxDefaultSize, 0 );
135 m_showDNPMarkers->SetToolTip(
_(
"Draw a cross over symbols marked 'Do not populate'") );
140 bLeftColumn->Add( 0, 5, 0, wxEXPAND, 5 );
142 m_staticText28 =
new wxStaticText(
this, wxID_ANY,
_(
"Connections"), wxDefaultPosition, wxDefaultSize, 0 );
146 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
147 bLeftColumn->Add(
m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
149 wxGridBagSizer* gbSizer1;
150 gbSizer1 =
new wxGridBagSizer( 5, 5 );
151 gbSizer1->SetFlexibleDirection( wxBOTH );
152 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
154 m_junctionDotLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Junction dot size:"), wxDefaultPosition, wxDefaultSize, 0 );
156 gbSizer1->Add(
m_junctionDotLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
158 wxString m_choiceJunctionDotSizeChoices[] = {
_(
"None"),
_(
"Smallest"),
_(
"Small"),
_(
"Default"),
_(
"Large"),
_(
"Largest") };
159 int m_choiceJunctionDotSizeNChoices =
sizeof( m_choiceJunctionDotSizeChoices ) /
sizeof( wxString );
160 m_choiceJunctionDotSize =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceJunctionDotSizeNChoices, m_choiceJunctionDotSizeChoices, 0 );
162 gbSizer1->Add(
m_choiceJunctionDotSize, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
164 m_hopOverLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Hop-over size:"), wxDefaultPosition, wxDefaultSize, 0 );
166 gbSizer1->Add(
m_hopOverLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
168 wxString m_choiceHopOverSizeChoices[] = {
_(
"None"),
_(
"Smallest"),
_(
"Small"),
_(
"Medium"),
_(
"Large"),
_(
"Largest") };
169 int m_choiceHopOverSizeNChoices =
sizeof( m_choiceHopOverSizeChoices ) /
sizeof( wxString );
170 m_choiceHopOverSize =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceHopOverSizeNChoices, m_choiceHopOverSizeChoices, 0 );
172 gbSizer1->Add(
m_choiceHopOverSize, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
174 m_connectionGridLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Connection grid:"), wxDefaultPosition, wxDefaultSize, 0 );
176 gbSizer1->Add(
m_connectionGridLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
178 m_connectionGridCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
179 gbSizer1->Add(
m_connectionGridCtrl, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
181 m_connectionGridUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
183 gbSizer1->Add(
m_connectionGridUnits, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
186 gbSizer1->AddGrowableCol( 1 );
188 bLeftColumn->Add( gbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
191 bPanelSizer->Add( bLeftColumn, 1, wxEXPAND|wxRIGHT, 15 );
193 wxBoxSizer* bRightColumn;
194 bRightColumn =
new wxBoxSizer( wxVERTICAL );
196 m_staticText29 =
new wxStaticText(
this, wxID_ANY,
_(
"Inter-sheet References"), wxDefaultPosition, wxDefaultSize, 0 );
200 m_staticline4 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
201 bRightColumn->Add(
m_staticline4, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
204 bSizer5 =
new wxBoxSizer( wxVERTICAL );
210 bRightColumn->Add( bSizer5, 0, wxEXPAND|wxALL, 5 );
212 wxBoxSizer* bSizerMargins;
213 bSizerMargins =
new wxBoxSizer( wxVERTICAL );
215 m_listOwnPage =
new wxCheckBox(
this, wxID_ANY,
_(
"Show own page reference"), wxDefaultPosition, wxDefaultSize, 0 );
217 bSizerMargins->Add(
m_listOwnPage, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
219 m_radioFormatStandard =
new wxRadioButton(
this, wxID_ANY,
_(
"Standard (1,2,3)"), wxDefaultPosition, wxDefaultSize, 0 );
223 m_radioFormatAbbreviated =
new wxRadioButton(
this, wxID_ANY,
_(
"Abbreviated (1..3)"), wxDefaultPosition, wxDefaultSize, 0 );
226 wxFlexGridSizer* fgSizer4;
227 fgSizer4 =
new wxFlexGridSizer( 0, 2, 0, 0 );
228 fgSizer4->AddGrowableCol( 1 );
229 fgSizer4->SetFlexibleDirection( wxBOTH );
230 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
232 m_prefixLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
234 fgSizer4->Add(
m_prefixLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
236 m_prefixCtrl =
new wxTextCtrl(
this, wxID_ANY,
_(
"["), wxDefaultPosition, wxDefaultSize, 0 );
239 fgSizer4->Add(
m_prefixCtrl, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
241 m_suffixLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Suffix:"), wxDefaultPosition, wxDefaultSize, 0 );
243 fgSizer4->Add(
m_suffixLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
245 m_suffixCtrl =
new wxTextCtrl(
this, wxID_ANY,
_(
"]"), wxDefaultPosition, wxDefaultSize, 0 );
248 fgSizer4->Add(
m_suffixCtrl, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
251 bSizerMargins->Add( fgSizer4, 1, wxEXPAND, 5 );
254 bRightColumn->Add( bSizerMargins, 1, wxEXPAND|wxLEFT, 25 );
256 m_staticText30 =
new wxStaticText(
this, wxID_ANY,
_(
"Dashed Lines"), wxDefaultPosition, wxDefaultSize, 0 );
260 m_staticline5 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
261 bRightColumn->Add(
m_staticline5, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
263 wxFlexGridSizer* fgSizer41;
264 fgSizer41 =
new wxFlexGridSizer( 0, 2, 5, 0 );
265 fgSizer41->SetFlexibleDirection( wxBOTH );
266 fgSizer41->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
268 dashLengthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Dash length:"), wxDefaultPosition, wxDefaultSize, 0 );
270 fgSizer41->Add(
dashLengthLabel, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
272 m_dashLengthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
275 gapLengthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Gap length:"), wxDefaultPosition, wxDefaultSize, 0 );
277 fgSizer41->Add(
gapLengthLabel, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
279 m_gapLengthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
283 bRightColumn->Add( fgSizer41, 0, wxEXPAND|wxALL, 5 );
286 bSizer6 =
new wxBoxSizer( wxVERTICAL );
288 m_dashedLineHelp =
new wxStaticText(
this, wxID_ANY,
_(
"Dash and dot lengths are ratios of the line width."), wxDefaultPosition, wxDefaultSize, 0 );
293 bRightColumn->Add( bSizer6, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
296 bRightColumn->Add( 0, 5, 0, wxEXPAND, 5 );
298 m_staticText31 =
new wxStaticText(
this, wxID_ANY,
_(
"Operating-point Overlay"), wxDefaultPosition, wxDefaultSize, 0 );
302 m_staticline6 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
303 bRightColumn->Add(
m_staticline6, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
305 wxFlexGridSizer* fgSizer;
306 fgSizer =
new wxFlexGridSizer( 4, 2, 6, 0 );
307 fgSizer->AddGrowableCol( 1 );
308 fgSizer->SetFlexibleDirection( wxBOTH );
309 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
311 wxStaticText* vPrecisionLabel;
312 vPrecisionLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Significant digits (voltages):"), wxDefaultPosition, wxDefaultSize, 0 );
313 vPrecisionLabel->Wrap( -1 );
314 fgSizer->Add( vPrecisionLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
316 m_vPrecisionCtrl =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 10, 3 );
319 wxStaticText* vRangeLabel;
320 vRangeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Range (voltages):"), wxDefaultPosition, wxDefaultSize, 0 );
321 vRangeLabel->Wrap( -1 );
322 fgSizer->Add( vRangeLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
324 wxString m_vRangeCtrlChoices[] = {
_(
"Auto"),
_(
"fV"),
_(
"pV"),
_(
"nV"),
_(
"uV"),
_(
"mV"),
_(
"V"),
_(
"KV"),
_(
"MV"),
_(
"GV"),
_(
"TV"),
_(
"PV") };
325 int m_vRangeCtrlNChoices =
sizeof( m_vRangeCtrlChoices ) /
sizeof( wxString );
326 m_vRangeCtrl =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_vRangeCtrlNChoices, m_vRangeCtrlChoices, 0 );
328 fgSizer->Add(
m_vRangeCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
330 wxStaticText* iPrecisionLabel;
331 iPrecisionLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Significant digits (currents):"), wxDefaultPosition, wxDefaultSize, 0 );
332 iPrecisionLabel->Wrap( -1 );
333 fgSizer->Add( iPrecisionLabel, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
335 m_iPrecisionCtrl =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 10, 3 );
338 wxStaticText* iRangeLabel;
339 iRangeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Range (currents):"), wxDefaultPosition, wxDefaultSize, 0 );
340 iRangeLabel->Wrap( -1 );
341 fgSizer->Add( iRangeLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
343 wxString m_iRangeCtrlChoices[] = {
_(
"Auto"),
_(
"fA"),
_(
"pA"),
_(
"nA"),
_(
"uA"),
_(
"mA"),
_(
"A"),
_(
"KA"),
_(
"MA"),
_(
"GA"),
_(
"TA"),
_(
"PA") };
344 int m_iRangeCtrlNChoices =
sizeof( m_iRangeCtrlChoices ) /
sizeof( wxString );
345 m_iRangeCtrl =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_iRangeCtrlNChoices, m_iRangeCtrlChoices, 0 );
347 fgSizer->Add(
m_iRangeCtrl, 0, wxBOTTOM|wxEXPAND|wxRIGHT|wxLEFT, 5 );
350 bRightColumn->Add( fgSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
353 bPanelSizer->Add( bRightColumn, 1, wxEXPAND|wxLEFT, 10 );
356 this->SetSizer( bPanelSizer );
358 bPanelSizer->Fit(
this );