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 );
167 fgFeatureConstraints->Add(
m_minGrooveWidthCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxTOP, 5 );
174 fgFeatureConstraints->Add(
m_staticline3, 0, wxTOP|wxEXPAND, 10 );
177 fgFeatureConstraints->Add(
m_staticline4, 0, wxEXPAND|wxTOP, 10 );
180 fgFeatureConstraints->Add(
m_staticline5, 0, wxEXPAND|wxTOP, 10 );
183 fgFeatureConstraints->Add(
m_staticline6, 0, wxEXPAND|wxTOP, 10 );
187 fgFeatureConstraints->Add(
m_staticText24, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 4 );
190 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
193 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
196 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
199 fgFeatureConstraints->Add(
m_bitmapMinViaDrill, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
203 fgFeatureConstraints->Add(
m_MinDrillTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
206 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.") );
208 fgFeatureConstraints->Add(
m_MinDrillCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
212 fgFeatureConstraints->Add(
m_MinDrillUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
215 fgFeatureConstraints->Add(
m_bitmapMinHoleClearance, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
219 fgFeatureConstraints->Add(
m_HoleToHoleTitle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
222 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.)") );
224 fgFeatureConstraints->Add(
m_SetHoleToHoleCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
228 fgFeatureConstraints->Add(
m_HoleToHoleUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
231 fgFeatureConstraints->Add(
m_staticline8, 0, wxEXPAND|wxTOP, 10 );
234 fgFeatureConstraints->Add(
m_staticline9, 0, wxEXPAND|wxTOP, 10 );
237 fgFeatureConstraints->Add(
m_staticline10, 0, wxEXPAND|wxTOP, 10 );
240 fgFeatureConstraints->Add(
m_staticline11, 0, wxEXPAND|wxTOP, 10 );
244 fgFeatureConstraints->Add(
m_staticText25, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 4 );
247 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
250 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
253 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
256 fgFeatureConstraints->Add(
m_bitmapMinuViaDiameter, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
260 fgFeatureConstraints->Add(
m_uviaMinSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
263 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.") );
265 fgFeatureConstraints->Add(
m_uviaMinSizeCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
269 fgFeatureConstraints->Add(
m_uviaMinSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
272 fgFeatureConstraints->Add(
m_bitmapMinuViaDrill, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
276 fgFeatureConstraints->Add(
m_uviaMinDrillLabel, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
279 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.") );
281 fgFeatureConstraints->Add(
m_uviaMinDrillCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
285 fgFeatureConstraints->Add(
m_uviaMinDrillUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
291 fgFeatureConstraints->Add(
m_staticline12, 0, wxEXPAND|wxTOP, 10 );
294 fgFeatureConstraints->Add(
m_staticline13, 0, wxEXPAND|wxTOP, 10 );
297 fgFeatureConstraints->Add(
m_staticline14, 0, wxEXPAND|wxTOP, 10 );
301 fgFeatureConstraints->Add(
m_staticText28, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 4 );
304 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
307 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
310 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
313 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
320 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.)") );
322 fgFeatureConstraints->Add(
m_silkClearanceCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP, 5 );
329 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
333 fgFeatureConstraints->Add(
m_textHeightLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
336 fgFeatureConstraints->Add(
m_textHeightCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
340 fgFeatureConstraints->Add(
m_textHeightUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
343 fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
350 fgFeatureConstraints->Add(
m_textThicknessCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
357 sbFeatureConstraints->Add( fgFeatureConstraints, 1, wxEXPAND|wxLEFT, 5 );
360 bScrolledSizer->Add( sbFeatureConstraints, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
363 bScrolledSizer->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 15 );
365 wxBoxSizer* sbFeatureRules;
366 sbFeatureRules =
new wxBoxSizer( wxVERTICAL );
368 wxBoxSizer* bSizerArcToPoly;
369 bSizerArcToPoly =
new wxBoxSizer( wxVERTICAL );
375 wxFlexGridSizer* fgSizer2;
376 fgSizer2 =
new wxFlexGridSizer( 0, 4, 3, 0 );
377 fgSizer2->AddGrowableCol( 2 );
378 fgSizer2->SetFlexibleDirection( wxBOTH );
379 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
382 fgSizer2->Add( 15, 0, 0, 0, 5 );
386 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.") );
388 fgSizer2->Add(
m_maxErrorTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxLEFT, 5 );
391 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.") );
393 fgSizer2->Add(
m_maxErrorCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
397 fgSizer2->Add(
m_maxErrorUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
400 bSizerArcToPoly->Add( fgSizer2, 0, wxEXPAND|wxBOTTOM, 5 );
407 sbFeatureRules->Add( bSizerArcToPoly, 0, wxEXPAND, 5 );
419 bSizer9 =
new wxBoxSizer( wxHORIZONTAL );
422 bSizer9->Add(
m_filletBitmap, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
430 wxBoxSizer* bSizer111;
431 bSizer111 =
new wxBoxSizer( wxHORIZONTAL );
434 bSizer111->Add(
m_spokeBitmap, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
449 wxBoxSizer* bSizer11;
450 bSizer11 =
new wxBoxSizer( wxVERTICAL );
460 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.") );
465 sbFeatureRules->Add( bSizer11, 1, wxEXPAND, 5 );
468 bScrolledSizer->Add( sbFeatureRules, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
471 bScrolledSizer->Add( 0, 0, 1, wxEXPAND, 0 );
480 this->SetSizer( bMainSizer );
482 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()
wxTextCtrl * m_minGrooveWidthCtrl
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
wxStaticText * m_minGrooveWidthUnits
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
wxStaticText * m_minGrooveWidthLabel
wxStaticLine * m_staticline11
wxStaticBitmap * m_bitmapMinGrooveWidth
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