KiCad PCB EDA Suite
PANEL_SETUP_FEATURE_CONSTRAINTS_BASE Class Reference

Class PANEL_SETUP_FEATURE_CONSTRAINTS_BASE. More...

#include <panel_setup_feature_constraints_base.h>

Inheritance diagram for PANEL_SETUP_FEATURE_CONSTRAINTS_BASE:
PANEL_SETUP_FEATURE_CONSTRAINTS

Public Member Functions

 PANEL_SETUP_FEATURE_CONSTRAINTS_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL)
 
 ~PANEL_SETUP_FEATURE_CONSTRAINTS_BASE ()
 

Protected Attributes

wxCheckBox * m_OptAllowBlindBuriedVias
 
wxCheckBox * m_OptAllowMicroVias
 
wxCheckBox * m_OptRequireCourtyards
 
wxCheckBox * m_OptOverlappingCourtyards
 
wxStaticText * m_TrackMinWidthTitle
 
wxTextCtrl * m_TrackMinWidthCtrl
 
wxStaticText * m_TrackMinWidthUnits
 
wxStaticText * m_ViaMinTitle
 
wxTextCtrl * m_SetViasMinSizeCtrl
 
wxStaticText * m_ViaMinUnits
 
wxStaticText * m_ViaMinDrillTitle
 
wxTextCtrl * m_SetViasMinDrillCtrl
 
wxStaticText * m_ViaMinDrillUnits
 
wxStaticText * m_uviaMinSizeLabel
 
wxTextCtrl * m_uviaMinSizeCtrl
 
wxStaticText * m_uviaMinSizeUnits
 
wxStaticText * m_uviaMinDrillLabel
 
wxTextCtrl * m_uviaMinDrillCtrl
 
wxStaticText * m_uviaMinDrillUnits
 
wxStaticText * m_HoleToHoleTitle
 
wxTextCtrl * m_SetHoleToHoleCtrl
 
wxStaticText * m_HoleToHoleUnits
 

Detailed Description

Constructor & Destructor Documentation

PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::PANEL_SETUP_FEATURE_CONSTRAINTS_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint pos = wxDefaultPosition,
const wxSize &  size = wxSize( -1,-1 ),
long  style = wxTAB_TRAVERSAL 
)

Definition at line 12 of file panel_setup_feature_constraints_base.cpp.

References m_HoleToHoleTitle, m_HoleToHoleUnits, m_OptAllowBlindBuriedVias, m_OptAllowMicroVias, m_OptOverlappingCourtyards, m_OptRequireCourtyards, m_SetHoleToHoleCtrl, m_SetViasMinDrillCtrl, m_SetViasMinSizeCtrl, m_TrackMinWidthCtrl, m_TrackMinWidthTitle, m_TrackMinWidthUnits, m_uviaMinDrillCtrl, m_uviaMinDrillLabel, m_uviaMinDrillUnits, m_uviaMinSizeCtrl, m_uviaMinSizeLabel, m_uviaMinSizeUnits, m_ViaMinDrillTitle, m_ViaMinDrillUnits, m_ViaMinTitle, and m_ViaMinUnits.

12  : wxPanel( parent, id, pos, size, style )
13 {
14  wxBoxSizer* bMainSizer;
15  bMainSizer = new wxBoxSizer( wxHORIZONTAL );
16 
17  wxBoxSizer* sbFeatureRules;
18  sbFeatureRules = new wxBoxSizer( wxVERTICAL );
19 
20  m_OptAllowBlindBuriedVias = new wxCheckBox( this, wxID_ANY, _("Allow blind/buried vias"), wxDefaultPosition, wxDefaultSize, 0 );
21  sbFeatureRules->Add( m_OptAllowBlindBuriedVias, 0, wxRIGHT|wxTOP, 5 );
22 
23  m_OptAllowMicroVias = new wxCheckBox( this, wxID_ANY, _("Allow micro vias (uVias)"), wxDefaultPosition, wxDefaultSize, 0 );
24  sbFeatureRules->Add( m_OptAllowMicroVias, 0, wxRIGHT|wxTOP, 5 );
25 
26 
27  sbFeatureRules->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
28 
29  m_OptRequireCourtyards = new wxCheckBox( this, wxID_ANY, _("Require courtyard definitions in footprints"), wxDefaultPosition, wxDefaultSize, 0 );
30  sbFeatureRules->Add( m_OptRequireCourtyards, 0, wxTOP|wxRIGHT, 5 );
31 
32  m_OptOverlappingCourtyards = new wxCheckBox( this, wxID_ANY, _("Prohibit overlapping courtyards"), wxDefaultPosition, wxDefaultSize, 0 );
33  sbFeatureRules->Add( m_OptOverlappingCourtyards, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
34 
35 
36  bMainSizer->Add( sbFeatureRules, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
37 
38 
39  bMainSizer->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 25 );
40 
41  wxBoxSizer* sbFeatureConstraints;
42  sbFeatureConstraints = new wxBoxSizer( wxVERTICAL );
43 
44  wxFlexGridSizer* fgFeatureConstraints;
45  fgFeatureConstraints = new wxFlexGridSizer( 0, 3, 3, 0 );
46  fgFeatureConstraints->AddGrowableCol( 1 );
47  fgFeatureConstraints->SetFlexibleDirection( wxBOTH );
48  fgFeatureConstraints->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
49 
50  m_TrackMinWidthTitle = new wxStaticText( this, wxID_ANY, _("Minimum track width:"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
51  m_TrackMinWidthTitle->Wrap( -1 );
52  fgFeatureConstraints->Add( m_TrackMinWidthTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxBOTTOM, 5 );
53 
54  m_TrackMinWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
55  m_TrackMinWidthCtrl->SetMinSize( wxSize( 120,-1 ) );
56 
57  fgFeatureConstraints->Add( m_TrackMinWidthCtrl, 0, wxALIGN_LEFT|wxALIGN_TOP|wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
58 
59  m_TrackMinWidthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
60  m_TrackMinWidthUnits->Wrap( -1 );
61  fgFeatureConstraints->Add( m_TrackMinWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxBOTTOM, 5 );
62 
63 
64  fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
65 
66 
67  fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
68 
69 
70  fgFeatureConstraints->Add( 0, 0, 1, wxALL|wxEXPAND, 5 );
71 
72  m_ViaMinTitle = new wxStaticText( this, wxID_ANY, _("Minimum via diameter:"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
73  m_ViaMinTitle->Wrap( -1 );
74  fgFeatureConstraints->Add( m_ViaMinTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
75 
76  m_SetViasMinSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
77  fgFeatureConstraints->Add( m_SetViasMinSizeCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
78 
79  m_ViaMinUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
80  m_ViaMinUnits->Wrap( -1 );
81  fgFeatureConstraints->Add( m_ViaMinUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
82 
83  m_ViaMinDrillTitle = new wxStaticText( this, wxID_ANY, _("Minimum via drill:"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
84  m_ViaMinDrillTitle->Wrap( -1 );
85  fgFeatureConstraints->Add( m_ViaMinDrillTitle, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
86 
87  m_SetViasMinDrillCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
88  fgFeatureConstraints->Add( m_SetViasMinDrillCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
89 
90  m_ViaMinDrillUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
91  m_ViaMinDrillUnits->Wrap( -1 );
92  fgFeatureConstraints->Add( m_ViaMinDrillUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
93 
94 
95  fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
96 
97 
98  fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
99 
100 
101  fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 );
102 
103  m_uviaMinSizeLabel = new wxStaticText( this, wxID_ANY, _("Minimum uVia diameter:"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
104  m_uviaMinSizeLabel->Wrap( -1 );
105  fgFeatureConstraints->Add( m_uviaMinSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
106 
107  m_uviaMinSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
108  fgFeatureConstraints->Add( m_uviaMinSizeCtrl, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
109 
110  m_uviaMinSizeUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
111  m_uviaMinSizeUnits->Wrap( -1 );
112  fgFeatureConstraints->Add( m_uviaMinSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
113 
114  m_uviaMinDrillLabel = new wxStaticText( this, wxID_ANY, _("Minimum uVia drill:"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
115  m_uviaMinDrillLabel->Wrap( -1 );
116  fgFeatureConstraints->Add( m_uviaMinDrillLabel, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
117 
118  m_uviaMinDrillCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
119  fgFeatureConstraints->Add( m_uviaMinDrillCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
120 
121  m_uviaMinDrillUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT );
122  m_uviaMinDrillUnits->Wrap( -1 );
123  fgFeatureConstraints->Add( m_uviaMinDrillUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
124 
125 
126  fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
127 
128 
129  fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
130 
131 
132  fgFeatureConstraints->Add( 0, 0, 1, wxEXPAND, 5 );
133 
134  m_HoleToHoleTitle = new wxStaticText( this, wxID_ANY, _("Minimum hole to hole:"), wxDefaultPosition, wxDefaultSize, 0 );
135  m_HoleToHoleTitle->Wrap( -1 );
136  fgFeatureConstraints->Add( m_HoleToHoleTitle, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 5 );
137 
138  m_SetHoleToHoleCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
139  fgFeatureConstraints->Add( m_SetHoleToHoleCtrl, 0, wxEXPAND|wxALL, 5 );
140 
141  m_HoleToHoleUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
142  m_HoleToHoleUnits->Wrap( -1 );
143  fgFeatureConstraints->Add( m_HoleToHoleUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 5 );
144 
145 
146  sbFeatureConstraints->Add( fgFeatureConstraints, 1, wxEXPAND|wxTOP|wxLEFT, 5 );
147 
148 
149  bMainSizer->Add( sbFeatureConstraints, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
150 
151 
152  this->SetSizer( bMainSizer );
153  this->Layout();
154  bMainSizer->Fit( this );
155 }
PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::~PANEL_SETUP_FEATURE_CONSTRAINTS_BASE ( )

Definition at line 157 of file panel_setup_feature_constraints_base.cpp.

158 {
159 }

Member Data Documentation

wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_HoleToHoleTitle
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_HoleToHoleUnits
protected
wxCheckBox* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_OptAllowBlindBuriedVias
protected
wxCheckBox* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_OptAllowMicroVias
protected
wxCheckBox* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_OptOverlappingCourtyards
protected
wxCheckBox* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_OptRequireCourtyards
protected
wxTextCtrl* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_SetHoleToHoleCtrl
protected
wxTextCtrl* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_SetViasMinDrillCtrl
protected
wxTextCtrl* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_SetViasMinSizeCtrl
protected
wxTextCtrl* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_TrackMinWidthCtrl
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_TrackMinWidthTitle
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_TrackMinWidthUnits
protected
wxTextCtrl* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_uviaMinDrillCtrl
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_uviaMinDrillLabel
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_uviaMinDrillUnits
protected
wxTextCtrl* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_uviaMinSizeCtrl
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_uviaMinSizeLabel
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_uviaMinSizeUnits
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_ViaMinDrillTitle
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_ViaMinDrillUnits
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_ViaMinTitle
protected
wxStaticText* PANEL_SETUP_FEATURE_CONSTRAINTS_BASE::m_ViaMinUnits
protected

The documentation for this class was generated from the following files: