KiCad PCB EDA Suite
eeschema/dialogs/panel_setup_formatting_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12BEGIN_EVENT_TABLE( PANEL_SETUP_FORMATTING_BASE, wxPanel )
14END_EVENT_TABLE()
15
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 )
17{
18 wxBoxSizer* bPanelSizer;
19 bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
20
21 wxBoxSizer* bLeftColumn;
22 bLeftColumn = new wxBoxSizer( wxVERTICAL );
23
24 wxStaticBoxSizer* sbSizer1;
25 sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Annotations") ), wxVERTICAL );
26
27 wxBoxSizer* bSizer6;
28 bSizer6 = new wxBoxSizer( wxHORIZONTAL );
29
30 m_staticText26 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Symbol unit notation:"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_staticText26->Wrap( -1 );
32 bSizer6->Add( m_staticText26, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
33
34 wxString m_choiceSeparatorRefIdChoices[] = { _("A"), _(".A"), _("-A"), _("_A"), _(".1"), _("-1"), _("_1") };
35 int m_choiceSeparatorRefIdNChoices = sizeof( m_choiceSeparatorRefIdChoices ) / sizeof( wxString );
36 m_choiceSeparatorRefId = new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceSeparatorRefIdNChoices, m_choiceSeparatorRefIdChoices, 0 );
37 m_choiceSeparatorRefId->SetSelection( 0 );
38 bSizer6->Add( m_choiceSeparatorRefId, 1, wxEXPAND|wxRIGHT, 5 );
39
40
41 sbSizer1->Add( bSizer6, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
42
43
44 bLeftColumn->Add( sbSizer1, 0, wxEXPAND|wxALL, 5 );
45
46 wxStaticBoxSizer* sbSizer4;
47 sbSizer4 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Text") ), wxVERTICAL );
48
49 wxFlexGridSizer* fgSizer2;
50 fgSizer2 = new wxFlexGridSizer( 0, 3, 5, 5 );
51 fgSizer2->AddGrowableCol( 1 );
52 fgSizer2->SetFlexibleDirection( wxHORIZONTAL );
53 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
54
55 m_textSizeLabel = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("Default text size:"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_textSizeLabel->Wrap( -1 );
57 fgSizer2->Add( m_textSizeLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
58
59 m_textSizeCtrl = new wxTextCtrl( sbSizer4->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
60 fgSizer2->Add( m_textSizeCtrl, 0, wxEXPAND, 5 );
61
62 m_textSizeUnits = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_textSizeUnits->Wrap( -1 );
64 fgSizer2->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5 );
65
66 m_textOffsetRatioLabel = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("Label offset ratio:"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_textOffsetRatioLabel->Wrap( -1 );
68 m_textOffsetRatioLabel->SetToolTip( _("Percentage of the text size to offset labels above (or below) a wire, bus, or pin") );
69
70 fgSizer2->Add( m_textOffsetRatioLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
71
72 m_textOffsetRatioCtrl = new wxTextCtrl( sbSizer4->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
73 m_textOffsetRatioCtrl->SetToolTip( _("Percentage of the text size to offset labels above (or below) a wire, bus, or pin") );
74
75 fgSizer2->Add( m_textOffsetRatioCtrl, 0, wxEXPAND, 5 );
76
77 m_offsetRatioUnits = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_offsetRatioUnits->Wrap( -1 );
79 fgSizer2->Add( m_offsetRatioUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5 );
80
81 m_labelSizeRatioLabel = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("Global label margin:"), wxDefaultPosition, wxDefaultSize, 0 );
82 m_labelSizeRatioLabel->Wrap( -1 );
83 m_labelSizeRatioLabel->SetToolTip( _("Percentage of the text size to use as space around a global label") );
84
85 fgSizer2->Add( m_labelSizeRatioLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
86
87 m_labelSizeRatioCtrl = new wxTextCtrl( sbSizer4->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
88 m_labelSizeRatioCtrl->SetToolTip( _("Percentage of the text size to use as space around a global label") );
89
90 fgSizer2->Add( m_labelSizeRatioCtrl, 0, wxEXPAND, 5 );
91
92 m_labelSizeRatioUnits = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
93 m_labelSizeRatioUnits->Wrap( -1 );
94 fgSizer2->Add( m_labelSizeRatioUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5 );
95
96
97 sbSizer4->Add( fgSizer2, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
98
99
100 bLeftColumn->Add( sbSizer4, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
101
102 wxStaticBoxSizer* sbSizer41;
103 sbSizer41 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Symbols") ), wxVERTICAL );
104
105 wxFlexGridSizer* fgSizer321;
106 fgSizer321 = new wxFlexGridSizer( 0, 3, 5, 0 );
107 fgSizer321->AddGrowableCol( 1 );
108 fgSizer321->SetFlexibleDirection( wxBOTH );
109 fgSizer321->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
110
111 m_lineWidthLabel = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
112 m_lineWidthLabel->Wrap( -1 );
113 fgSizer321->Add( m_lineWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
114
115 m_lineWidthCtrl = new wxTextCtrl( sbSizer41->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
116 fgSizer321->Add( m_lineWidthCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
117
118 m_lineWidthUnits = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
119 m_lineWidthUnits->Wrap( -1 );
120 fgSizer321->Add( m_lineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE|wxLEFT|wxRIGHT, 5 );
121
122 m_pinSymbolSizeLabel = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("Pin symbol size:"), wxDefaultPosition, wxDefaultSize, 0 );
123 m_pinSymbolSizeLabel->Wrap( -1 );
124 fgSizer321->Add( m_pinSymbolSizeLabel, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
125
126 m_pinSymbolSizeCtrl = new wxTextCtrl( sbSizer41->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
127 fgSizer321->Add( m_pinSymbolSizeCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
128
129 m_pinSymbolSizeUnits = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
130 m_pinSymbolSizeUnits->Wrap( -1 );
131 fgSizer321->Add( m_pinSymbolSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE|wxLEFT|wxRIGHT, 5 );
132
133
134 sbSizer41->Add( fgSizer321, 1, wxEXPAND|wxBOTTOM, 5 );
135
136
137 bLeftColumn->Add( sbSizer41, 0, wxEXPAND|wxALL, 5 );
138
139 wxStaticBoxSizer* sbSizer2;
140 sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Connections") ), wxVERTICAL );
141
142 wxBoxSizer* bSizer61;
143 bSizer61 = new wxBoxSizer( wxHORIZONTAL );
144
145 m_staticText261 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Junction dot size:"), wxDefaultPosition, wxDefaultSize, 0 );
146 m_staticText261->Wrap( -1 );
147 bSizer61->Add( m_staticText261, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
148
149 wxString m_choiceJunctionDotSizeChoices[] = { _("None"), _("Smallest"), _("Small"), _("Default"), _("Large"), _("Largest") };
150 int m_choiceJunctionDotSizeNChoices = sizeof( m_choiceJunctionDotSizeChoices ) / sizeof( wxString );
151 m_choiceJunctionDotSize = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceJunctionDotSizeNChoices, m_choiceJunctionDotSizeChoices, 0 );
152 m_choiceJunctionDotSize->SetSelection( 3 );
153 bSizer61->Add( m_choiceJunctionDotSize, 1, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
154
155
156 sbSizer2->Add( bSizer61, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
157
158
159 bLeftColumn->Add( sbSizer2, 1, wxEXPAND|wxALL, 5 );
160
161
162 bPanelSizer->Add( bLeftColumn, 1, wxEXPAND, 10 );
163
164 wxBoxSizer* bRightColumn;
165 bRightColumn = new wxBoxSizer( wxVERTICAL );
166
167 wxStaticBoxSizer* sbSizerIREf;
168 sbSizerIREf = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Inter-sheet References") ), wxVERTICAL );
169
170 m_showIntersheetsReferences = new wxCheckBox( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Show inter-sheet references"), wxDefaultPosition, wxDefaultSize, 0 );
171 sbSizerIREf->Add( m_showIntersheetsReferences, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
172
173 wxBoxSizer* bSizerMargins;
174 bSizerMargins = new wxBoxSizer( wxVERTICAL );
175
176 m_listOwnPage = new wxCheckBox( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Show own page reference"), wxDefaultPosition, wxDefaultSize, 0 );
177 m_listOwnPage->SetValue(true);
178 bSizerMargins->Add( m_listOwnPage, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
179
180 m_radioFormatStandard = new wxRadioButton( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Standard (1,2,3)"), wxDefaultPosition, wxDefaultSize, 0 );
181 m_radioFormatStandard->SetValue( true );
182 bSizerMargins->Add( m_radioFormatStandard, 0, wxALL, 5 );
183
184 m_radioFormatAbbreviated = new wxRadioButton( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Abbreviated (1..3)"), wxDefaultPosition, wxDefaultSize, 0 );
185 bSizerMargins->Add( m_radioFormatAbbreviated, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
186
187 wxFlexGridSizer* fgSizer4;
188 fgSizer4 = new wxFlexGridSizer( 0, 2, 0, 0 );
189 fgSizer4->AddGrowableCol( 1 );
190 fgSizer4->SetFlexibleDirection( wxBOTH );
191 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
192
193 m_prefixLabel = new wxStaticText( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
194 m_prefixLabel->Wrap( -1 );
195 fgSizer4->Add( m_prefixLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
196
197 m_prefixCtrl = new wxTextCtrl( sbSizerIREf->GetStaticBox(), wxID_ANY, _("["), wxDefaultPosition, wxDefaultSize, 0 );
198 fgSizer4->Add( m_prefixCtrl, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
199
200 m_suffixLabel = new wxStaticText( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Suffix:"), wxDefaultPosition, wxDefaultSize, 0 );
201 m_suffixLabel->Wrap( -1 );
202 fgSizer4->Add( m_suffixLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
203
204 m_suffixCtrl = new wxTextCtrl( sbSizerIREf->GetStaticBox(), wxID_ANY, _("]"), wxDefaultPosition, wxDefaultSize, 0 );
205 fgSizer4->Add( m_suffixCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
206
207
208 bSizerMargins->Add( fgSizer4, 1, wxEXPAND, 5 );
209
210
211 sbSizerIREf->Add( bSizerMargins, 1, wxEXPAND|wxLEFT, 15 );
212
213
214 bRightColumn->Add( sbSizerIREf, 0, wxALL|wxEXPAND, 5 );
215
216 wxStaticBoxSizer* sbSizer6;
217 sbSizer6 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Dashed Lines") ), wxVERTICAL );
218
219 wxFlexGridSizer* fgSizer41;
220 fgSizer41 = new wxFlexGridSizer( 0, 2, 5, 0 );
221 fgSizer41->SetFlexibleDirection( wxBOTH );
222 fgSizer41->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
223
224 dashLengthLabel = new wxStaticText( sbSizer6->GetStaticBox(), wxID_ANY, _("Dash length:"), wxDefaultPosition, wxDefaultSize, 0 );
225 dashLengthLabel->Wrap( -1 );
226 fgSizer41->Add( dashLengthLabel, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
227
228 m_dashLengthCtrl = new wxTextCtrl( sbSizer6->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
229 fgSizer41->Add( m_dashLengthCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
230
231 gapLengthLabel = new wxStaticText( sbSizer6->GetStaticBox(), wxID_ANY, _("Gap length:"), wxDefaultPosition, wxDefaultSize, 0 );
232 gapLengthLabel->Wrap( -1 );
233 fgSizer41->Add( gapLengthLabel, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
234
235 m_gapLengthCtrl = new wxTextCtrl( sbSizer6->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
236 fgSizer41->Add( m_gapLengthCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
237
238
239 sbSizer6->Add( fgSizer41, 0, wxEXPAND|wxBOTTOM, 5 );
240
241 m_dashedLineHelp = new wxStaticText( sbSizer6->GetStaticBox(), wxID_ANY, _("Dash and dot lengths are ratios of the line width."), wxDefaultPosition, wxDefaultSize, 0 );
242 m_dashedLineHelp->Wrap( -1 );
243 sbSizer6->Add( m_dashedLineHelp, 0, wxALL, 5 );
244
245
246 bRightColumn->Add( sbSizer6, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
247
248
249 bPanelSizer->Add( bRightColumn, 1, wxRIGHT|wxLEFT|wxEXPAND, 10 );
250
251
252 this->SetSizer( bPanelSizer );
253 this->Layout();
254 bPanelSizer->Fit( this );
255}
256
258{
259}
const char * name
Definition: DXF_plotter.cpp:56
#define _(s)