KiCad PCB EDA Suite
dialog_rule_area_properties_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_RULE_AREA_PROPERTIES_BASE::DIALOG_RULE_AREA_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bUpperSizer;
20  bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
21 
22  wxBoxSizer* bLayersListSizer;
23  bLayersListSizer = new wxBoxSizer( wxVERTICAL );
24 
25  m_staticTextLayerSelection = new wxStaticText( this, wxID_ANY, _("Layers:"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_staticTextLayerSelection->Wrap( -1 );
27  bLayersListSizer->Add( m_staticTextLayerSelection, 0, wxALL, 5 );
28 
29  m_layers = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_NO_HEADER|wxBORDER_SIMPLE );
30  bLayersListSizer->Add( m_layers, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
31 
32 
33  bUpperSizer->Add( bLayersListSizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
34 
35 
36  bUpperSizer->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
37 
38  wxBoxSizer* bSizerRight;
39  bSizerRight = new wxBoxSizer( wxVERTICAL );
40 
41  m_staticTextBasicRules = new wxStaticText( this, wxID_ANY, _("Basic rules:"), wxDefaultPosition, wxDefaultSize, 0 );
42  m_staticTextBasicRules->Wrap( -1 );
43  bSizerRight->Add( m_staticTextBasicRules, 0, wxRIGHT|wxLEFT, 5 );
44 
45 
46  bSizerRight->Add( 0, 3, 0, wxEXPAND, 5 );
47 
48  m_cbTracksCtrl = new wxCheckBox( this, wxID_ANY, _("Keep out tracks"), wxDefaultPosition, wxDefaultSize, 0 );
49  m_cbTracksCtrl->SetToolTip( _("Prevent tracks from routing into this area") );
50 
51  bSizerRight->Add( m_cbTracksCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
52 
53  m_cbViasCtrl = new wxCheckBox( this, wxID_ANY, _("Keep out vias"), wxDefaultPosition, wxDefaultSize, 0 );
54  m_cbViasCtrl->SetToolTip( _("Prevent vias from being placed in this area") );
55 
56  bSizerRight->Add( m_cbViasCtrl, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 5 );
57 
58  m_cbPadsCtrl = new wxCheckBox( this, wxID_ANY, _("Keep out pads"), wxDefaultPosition, wxDefaultSize, 0 );
59  m_cbPadsCtrl->SetToolTip( _("Raise a DRC error if a pad overlaps this area") );
60 
61  bSizerRight->Add( m_cbPadsCtrl, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
62 
63  m_cbCopperPourCtrl = new wxCheckBox( this, wxID_ANY, _("Keep out copper fill"), wxDefaultPosition, wxDefaultSize, 0 );
64  m_cbCopperPourCtrl->SetToolTip( _("Zones will not fill copper into this area") );
65 
66  bSizerRight->Add( m_cbCopperPourCtrl, 0, wxALL|wxEXPAND, 5 );
67 
68  m_cbFootprintsCtrl = new wxCheckBox( this, wxID_ANY, _("Keep out footprints"), wxDefaultPosition, wxDefaultSize, 0 );
69  m_cbFootprintsCtrl->SetToolTip( _("Raise a DRC error if a footprint courtyard overlaps this area") );
70 
71  bSizerRight->Add( m_cbFootprintsCtrl, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
72 
73 
74  bSizerRight->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
75 
76  wxBoxSizer* bSizer6;
77  bSizer6 = new wxBoxSizer( wxVERTICAL );
78 
79  m_staticText3 = new wxStaticText( this, wxID_ANY, _("Area name:"), wxDefaultPosition, wxDefaultSize, 0 );
80  m_staticText3->Wrap( -1 );
81  m_staticText3->SetToolTip( _("A unique name for this rule area for use in DRC rules") );
82 
83  bSizer6->Add( m_staticText3, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
84 
85 
86  bSizer6->Add( 0, 2, 1, wxEXPAND, 5 );
87 
88  m_tcName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
89  m_tcName->SetToolTip( _("A unique name for this rule area for use in DRC rules") );
90 
91  bSizer6->Add( m_tcName, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
92 
93 
94  bSizerRight->Add( bSizer6, 1, wxEXPAND, 5 );
95 
96  m_cbConstrainCtrl = new wxCheckBox( this, wxID_ANY, _("Constrain outline to H, V and 45 deg"), wxDefaultPosition, wxDefaultSize, 0 );
97  m_cbConstrainCtrl->SetToolTip( _("Draw the area using horizontal, vertical and 45 degree lines only") );
98 
99  bSizerRight->Add( m_cbConstrainCtrl, 0, wxALL, 5 );
100 
101  m_cbLocked = new wxCheckBox( this, wxID_ANY, _("Locked"), wxDefaultPosition, wxDefaultSize, 0 );
102  bSizerRight->Add( m_cbLocked, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
103 
104  wxBoxSizer* bSizerLowerRight;
105  bSizerLowerRight = new wxBoxSizer( wxHORIZONTAL );
106 
107  m_staticTextStyle = new wxStaticText( this, wxID_ANY, _("Outline display:"), wxDefaultPosition, wxDefaultSize, 0 );
108  m_staticTextStyle->Wrap( -1 );
109  bSizerLowerRight->Add( m_staticTextStyle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
110 
111  wxString m_OutlineDisplayCtrlChoices[] = { _("Line"), _("Hatched"), _("Fully hatched") };
112  int m_OutlineDisplayCtrlNChoices = sizeof( m_OutlineDisplayCtrlChoices ) / sizeof( wxString );
113  m_OutlineDisplayCtrl = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_OutlineDisplayCtrlNChoices, m_OutlineDisplayCtrlChoices, 0 );
114  m_OutlineDisplayCtrl->SetSelection( 0 );
115  bSizerLowerRight->Add( m_OutlineDisplayCtrl, 0, wxALL, 5 );
116 
117 
118  bSizerRight->Add( bSizerLowerRight, 0, wxEXPAND, 5 );
119 
120 
121  bUpperSizer->Add( bSizerRight, 0, wxEXPAND|wxALL, 5 );
122 
123 
124  bMainSizer->Add( bUpperSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
125 
126  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
127  bMainSizer->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
128 
129  m_sdbSizerButtons = new wxStdDialogButtonSizer();
130  m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
132  m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
134  m_sdbSizerButtons->Realize();
135 
136  bMainSizer->Add( m_sdbSizerButtons, 0, wxEXPAND|wxALL, 5 );
137 
138 
139  this->SetSizer( bMainSizer );
140  this->Layout();
141  bMainSizer->Fit( this );
142 
143  this->Centre( wxBOTH );
144 
145  // Connect Events
146  m_layers->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::OnLayerSelection ), NULL, this );
147  m_layers->Connect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::onLayerListRightDown ), NULL, this );
148  m_layers->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::OnSizeLayersList ), NULL, this );
149 }
150 
152 {
153  // Disconnect Events
154  m_layers->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::OnLayerSelection ), NULL, this );
155  m_layers->Disconnect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::onLayerListRightDown ), NULL, this );
156  m_layers->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::OnSizeLayersList ), NULL, this );
157 
158 }
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
virtual void OnLayerSelection(wxDataViewEvent &event)
DIALOG_RULE_AREA_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Rule Area Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxFULL_REPAINT_ON_RESIZE|wxBORDER_SUNKEN)
#define _(s)
virtual void onLayerListRightDown(wxMouseEvent &event)
virtual void OnSizeLayersList(wxSizeEvent &event)