12PANEL_SETUP_CONSTRAINTS_BASE::PANEL_SETUP_CONSTRAINTS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
14 wxBoxSizer* bMainSizer;
15 bMainSizer =
new wxBoxSizer( wxHORIZONTAL );
17 m_scrolledWindow =
new wxScrolledWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
19 wxBoxSizer* bScrolledSizer;
20 bScrolledSizer =
new wxBoxSizer( wxHORIZONTAL );
22 wxBoxSizer* sbFeatureConstraints;
23 sbFeatureConstraints =
new wxBoxSizer( wxVERTICAL );
25 wxFlexGridSizer* fgFeatureConstraints;
26 fgFeatureConstraints =
new wxFlexGridSizer( 0, 4, 0, 0 );
27 fgFeatureConstraints->SetFlexibleDirection( wxBOTH );
28 fgFeatureConstraints->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
32 fgFeatureConstraints->Add(
m_staticText23, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxBOTTOM|wxLEFT, 4 );
35 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
38 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
41 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
44 fgFeatureConstraints->Add(
m_bitmapClearance, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
48 fgFeatureConstraints->Add(
m_clearanceTitle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
51 m_clearanceCtrl->SetToolTip(
_(
"The minimum clearance between copper items which do not belong to the same net. If set, this is an absolute minimum which cannot be reduced by netclasses, custom rules, or other settings.") );
53 fgFeatureConstraints->Add(
m_clearanceCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM, 5 );
57 fgFeatureConstraints->Add(
m_clearanceUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
60 fgFeatureConstraints->Add(
m_bitmapMinTrackWidth, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
64 fgFeatureConstraints->Add(
m_TrackMinWidthTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
67 m_TrackMinWidthCtrl->SetToolTip(
_(
"The minimum track width. If set, this is an absolute minimum and cannot be reduced by netclasses, custom rules, or other settings.") );
70 fgFeatureConstraints->Add(
m_TrackMinWidthCtrl, 0, wxALIGN_LEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
74 fgFeatureConstraints->Add(
m_TrackMinWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
77 fgFeatureConstraints->Add(
m_bitmapMinConn, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
81 fgFeatureConstraints->Add(
m_MinConnTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
84 m_MinConnCtrl->SetToolTip(
_(
"The minimum copper width of connected copper items.") );
87 fgFeatureConstraints->Add(
m_MinConnCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxBOTTOM|wxEXPAND|wxTOP, 5 );
91 fgFeatureConstraints->Add(
m_MinConnUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
94 fgFeatureConstraints->Add(
m_bitmapMinViaAnnulus, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
101 m_ViaMinAnnulusCtrl->SetToolTip(
_(
"The minimum annular ring width. If set, this is an absolute minimum and cannot be reduced by netclasses, custom rules, or other settings.") );
103 fgFeatureConstraints->Add(
m_ViaMinAnnulusCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM, 5 );
110 fgFeatureConstraints->Add(
m_bitmapMinViaDiameter, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
114 fgFeatureConstraints->Add(
m_ViaMinTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
117 m_SetViasMinSizeCtrl->SetToolTip(
_(
"The minimum via diameter. If set, this is an absolute minimum and cannot be reduced by netclasses, custom rules, or other settings.") );
119 fgFeatureConstraints->Add(
m_SetViasMinSizeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM, 5 );
123 fgFeatureConstraints->Add(
m_ViaMinUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
126 fgFeatureConstraints->Add(
m_bitmapHoleClearance, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
130 fgFeatureConstraints->Add(
m_HoleClearanceLabel, 0, wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
133 m_HoleClearanceCtrl->SetToolTip(
_(
"The minimum clearance between a hole and an unassociated copper item. If set, this is an absolute minimum and cannot be reduced by custom rules or other settings.") );
135 fgFeatureConstraints->Add(
m_HoleClearanceCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
142 fgFeatureConstraints->Add(
m_bitmapEdgeClearance, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
149 m_EdgeClearanceCtrl->SetToolTip(
_(
"The minimum clearance between the board edge and any copper item. If set, this is an absolute minimum and cannot be reduced by custom rules or other settings.") );
151 fgFeatureConstraints->Add(
m_EdgeClearanceCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
158 fgFeatureConstraints->Add(
m_staticline3, 0, wxTOP|wxEXPAND, 10 );
161 fgFeatureConstraints->Add(
m_staticline4, 0, wxEXPAND|wxTOP, 10 );
164 fgFeatureConstraints->Add(
m_staticline5, 0, wxEXPAND|wxTOP, 10 );
167 fgFeatureConstraints->Add(
m_staticline6, 0, wxEXPAND|wxTOP, 10 );
171 fgFeatureConstraints->Add(
m_staticText24, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 4 );
174 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
177 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
180 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
183 fgFeatureConstraints->Add(
m_bitmapMinViaDrill, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
187 fgFeatureConstraints->Add(
m_MinDrillTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
190 m_MinDrillCtrl->SetToolTip(
_(
"The minimum through-hole size. If set, this is an absolute minimum and cannot be reduced by netclasses, custom rules or other settings.") );
192 fgFeatureConstraints->Add(
m_MinDrillCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
196 fgFeatureConstraints->Add(
m_MinDrillUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
199 fgFeatureConstraints->Add(
m_bitmapMinHoleClearance, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
203 fgFeatureConstraints->Add(
m_HoleToHoleTitle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
206 m_SetHoleToHoleCtrl->SetToolTip(
_(
"The minimum clearance between two drilled holes. If set, this is an absolute minimum and cannot be reduced by custom rules or other settings. (Note: does not apply to milled holes.)") );
208 fgFeatureConstraints->Add(
m_SetHoleToHoleCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
212 fgFeatureConstraints->Add(
m_HoleToHoleUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
215 fgFeatureConstraints->Add(
m_staticline8, 0, wxEXPAND|wxTOP, 10 );
218 fgFeatureConstraints->Add(
m_staticline9, 0, wxEXPAND|wxTOP, 10 );
221 fgFeatureConstraints->Add(
m_staticline10, 0, wxEXPAND|wxTOP, 10 );
224 fgFeatureConstraints->Add(
m_staticline11, 0, wxEXPAND|wxTOP, 10 );
228 fgFeatureConstraints->Add(
m_staticText25, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 4 );
231 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
234 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
237 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
240 fgFeatureConstraints->Add(
m_bitmapMinuViaDiameter, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
244 fgFeatureConstraints->Add(
m_uviaMinSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
247 m_uviaMinSizeCtrl->SetToolTip(
_(
"The minimum diameter for micro-vias. If set, this is an absolute minimum and cannot be reduced by netclasses, custom rules, or other settings.") );
249 fgFeatureConstraints->Add(
m_uviaMinSizeCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
253 fgFeatureConstraints->Add(
m_uviaMinSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
256 fgFeatureConstraints->Add(
m_bitmapMinuViaDrill, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
260 fgFeatureConstraints->Add(
m_uviaMinDrillLabel, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
263 m_uviaMinDrillCtrl->SetToolTip(
_(
"The minimum micro-via hole size. If set, this is an absolute minimum and cannot be reduced by netclasses, custom rules, or other settings.") );
265 fgFeatureConstraints->Add(
m_uviaMinDrillCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
269 fgFeatureConstraints->Add(
m_uviaMinDrillUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
275 fgFeatureConstraints->Add(
m_staticline12, 0, wxEXPAND|wxTOP, 10 );
278 fgFeatureConstraints->Add(
m_staticline13, 0, wxEXPAND|wxTOP, 10 );
281 fgFeatureConstraints->Add(
m_staticline14, 0, wxEXPAND|wxTOP, 10 );
285 fgFeatureConstraints->Add(
m_staticText28, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 4 );
288 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
291 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
294 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
297 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
304 m_silkClearanceCtrl->SetToolTip(
_(
"Minimum clearance between two items on the same silkscreen layer. If set this can improve legibility. (Note: does not apply to multiple shapes within a single footprint.)") );
306 fgFeatureConstraints->Add(
m_silkClearanceCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP, 5 );
313 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
317 fgFeatureConstraints->Add(
m_textHeightLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
320 fgFeatureConstraints->Add(
m_textHeightCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
324 fgFeatureConstraints->Add(
m_textHeightUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
327 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
334 fgFeatureConstraints->Add(
m_textThicknessCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
341 sbFeatureConstraints->Add( fgFeatureConstraints, 1, wxEXPAND|wxLEFT, 5 );
344 bScrolledSizer->Add( sbFeatureConstraints, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
347 bScrolledSizer->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 15 );
349 wxBoxSizer* sbFeatureRules;
350 sbFeatureRules =
new wxBoxSizer( wxVERTICAL );
352 wxBoxSizer* bSizerArcToPoly;
353 bSizerArcToPoly =
new wxBoxSizer( wxVERTICAL );
359 wxFlexGridSizer* fgSizer2;
360 fgSizer2 =
new wxFlexGridSizer( 0, 4, 3, 0 );
361 fgSizer2->AddGrowableCol( 2 );
362 fgSizer2->SetFlexibleDirection( wxBOTH );
363 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
366 fgSizer2->Add( 15, 0, 0, 0, 5 );
370 m_maxErrorTitle->SetToolTip(
_(
"This is the maximum distance between a circle and the polygonal shape that approximate it.\nThe error max defines the number of segments of this polygon.") );
372 fgSizer2->Add(
m_maxErrorTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
375 m_maxErrorCtrl->SetToolTip(
_(
"The maximum allowed deviation between a true arc or circle and segments used to approximate it. Smaller values produce smoother graphics at the expense of performance.") );
377 fgSizer2->Add(
m_maxErrorCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
381 fgSizer2->Add(
m_maxErrorUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
384 bSizerArcToPoly->Add( fgSizer2, 0, wxEXPAND|wxBOTTOM, 5 );
391 sbFeatureRules->Add( bSizerArcToPoly, 0, wxEXPAND, 5 );
403 bSizer9 =
new wxBoxSizer( wxHORIZONTAL );
406 bSizer9->Add(
m_filletBitmap, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
414 wxBoxSizer* bSizer111;
415 bSizer111 =
new wxBoxSizer( wxHORIZONTAL );
418 bSizer111->Add(
m_spokeBitmap, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
433 wxBoxSizer* bSizer11;
434 bSizer11 =
new wxBoxSizer( wxVERTICAL );
444 m_useHeightForLengthCalcs->SetToolTip(
_(
"When enabled, the distance between copper layers will be included in track length calculations for tracks with vias. When disabled, via stackup height is ignored.") );
449 sbFeatureRules->Add( bSizer11, 1, wxEXPAND, 5 );
452 bScrolledSizer->Add( sbFeatureRules, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
455 bScrolledSizer->Add( 0, 0, 1, wxEXPAND, 0 );
464 this->SetSizer( bMainSizer );
466 bMainSizer->Fit(
this );
wxScrolledWindow * m_scrolledWindow
wxCheckBox * m_useHeightForLengthCalcs
wxTextCtrl * m_MinDrillCtrl
wxStaticText * m_TrackMinWidthTitle
wxStaticText * m_TrackMinWidthUnits
wxStaticText * m_uviaMinSizeLabel
wxStaticText * m_MinDrillTitle
wxStaticLine * m_staticline6
wxStaticBitmap * m_bitmapMinViaDiameter
wxBoxSizer * m_bSizerPolygonFillOption
wxStaticText * m_ViaMinTitle
wxTextCtrl * m_SetHoleToHoleCtrl
wxStaticText * m_stCircleToPolyOpt
wxTextCtrl * m_ViaMinAnnulusCtrl
wxStaticBitmap * m_bitmapMinuViaDrill
wxStaticText * m_MinConnUnits
wxStaticLine * m_staticline12
wxStaticText * m_HoleClearanceUnits
wxTextCtrl * m_textHeightCtrl
wxStaticText * m_MinDrillUnits
~PANEL_SETUP_CONSTRAINTS_BASE()
wxStaticText * m_staticText33
wxTextCtrl * m_clearanceCtrl
wxStaticBitmap * m_bitmapMinViaAnnulus
wxStaticLine * m_staticline5
wxStaticText * m_staticText23
wxStaticText * m_EdgeClearanceLabel
wxStaticBitmap * m_bitmapMinTrackWidth
wxStaticText * m_staticText24
wxStaticLine * m_staticline111
wxTextCtrl * m_uviaMinSizeCtrl
wxStaticText * m_textThicknessUnits
wxStaticText * m_ViaMinAnnulusTitle
wxStaticLine * m_staticline4
wxStaticText * m_textHeightLabel
wxStaticLine * m_staticline14
wxStaticLine * m_staticline10
wxStaticText * m_HoleToHoleTitle
wxStaticText * m_textThicknessLabel
wxCheckBox * m_allowExternalFilletsOpt
wxStaticText * m_maxErrorTitle
wxStaticText * m_MinConnTitle
wxStaticText * m_ViaMinUnits
wxStaticText * m_uviaMinDrillUnits
wxStaticText * m_staticText28
wxStaticText * m_uviaMinSizeUnits
wxStaticBitmap * m_spokeBitmap
wxStaticLine * m_staticline11
wxTextCtrl * m_maxErrorCtrl
wxStaticLine * m_staticline8
wxStaticText * m_HoleClearanceLabel
wxStaticBitmap * m_bitmapEdgeClearance
wxStaticBitmap * m_bitmapClearance
wxStaticText * m_EdgeClearanceUnits
wxStaticText * m_clearanceTitle
wxStaticLine * m_staticline15
wxStaticText * m_stCircleToPolyWarning
wxStaticText * m_stZoneFilledPolysOpt
wxTextCtrl * m_SetViasMinSizeCtrl
wxStaticLine * m_staticline1
wxStaticText * m_clearanceUnits
wxStaticBitmap * m_bitmapHoleClearance
wxStaticText * m_ViaMinAnnulusUnits
wxStaticText * m_textHeightUnits
wxStaticText * m_minResolvedSpokesLabel
wxStaticBitmap * m_filletBitmap
wxStaticText * m_uviaMinDrillLabel
wxStaticLine * m_staticline3
wxStaticText * m_HoleToHoleUnits
wxStaticLine * m_staticline9
wxStaticBitmap * m_bitmapMinuViaDiameter
wxStaticText * m_silkClearanceLabel
wxStaticText * m_maxErrorUnits
wxTextCtrl * m_EdgeClearanceCtrl
wxTextCtrl * m_HoleClearanceCtrl
wxStaticBitmap * m_bitmapMinViaDrill
wxStaticText * m_staticText25
wxTextCtrl * m_uviaMinDrillCtrl
wxTextCtrl * m_silkClearanceCtrl
wxStaticText * m_silkClearanceUnits
wxTextCtrl * m_textThicknessCtrl
wxStaticBitmap * m_bitmapMinConn
wxSpinCtrl * m_minResolvedSpokeCountCtrl
wxTextCtrl * m_MinConnCtrl
PANEL_SETUP_CONSTRAINTS_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_TrackMinWidthCtrl
wxStaticLine * m_staticline13
wxStaticBitmap * m_bitmapMinHoleClearance