KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_rule_area_properties_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_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 bMainSizer = new wxBoxSizer( wxVERTICAL );
17
18 wxBoxSizer* bUpperSizer;
19 bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
20
21 wxBoxSizer* bLayersListSizer;
22 bLayersListSizer = new wxBoxSizer( wxVERTICAL );
23
24 bLayersListSizer->SetMinSize( wxSize( 240,560 ) );
25 m_staticTextLayerSelection = new wxStaticText( this, wxID_ANY, _("Layers:"), wxDefaultPosition, wxDefaultSize, 0 );
27 bLayersListSizer->Add( m_staticTextLayerSelection, 0, wxALL, 4 );
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, 4, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
34
35 wxBoxSizer* bSizerRight;
36 bSizerRight = new wxBoxSizer( wxVERTICAL );
37
38 wxBoxSizer* bSizer6;
39 bSizer6 = new wxBoxSizer( wxVERTICAL );
40
41 m_nameLabel = new wxStaticText( this, wxID_ANY, _("Area name:"), wxDefaultPosition, wxDefaultSize, 0 );
42 m_nameLabel->Wrap( -1 );
43 m_nameLabel->SetToolTip( _("A unique name for this rule area for use in DRC rules") );
44
45 bSizer6->Add( m_nameLabel, 0, wxRIGHT|wxLEFT, 5 );
46
47
48 bSizer6->Add( 0, 2, 0, 0, 5 );
49
50 m_tcName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
51 m_tcName->SetToolTip( _("A unique name for this rule area for use in DRC rules") );
52
53 bSizer6->Add( m_tcName, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
54
55 m_cbLocked = new wxCheckBox( this, wxID_ANY, _("Locked"), wxDefaultPosition, wxDefaultSize, 0 );
56 bSizer6->Add( m_cbLocked, 0, wxALL, 5 );
57
58
59 bSizerRight->Add( bSizer6, 0, wxEXPAND, 5 );
60
61 m_areaPropertiesNb = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
62
63 bSizerRight->Add( m_areaPropertiesNb, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
64
65 wxGridBagSizer* gbSizer1;
66 gbSizer1 = new wxGridBagSizer( 3, 3 );
67 gbSizer1->SetFlexibleDirection( wxBOTH );
68 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
69 gbSizer1->SetEmptyCellSize( wxSize( -1,2 ) );
70
71 m_staticTextStyle = new wxStaticText( this, wxID_ANY, _("Outline display:"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_staticTextStyle->Wrap( -1 );
73 gbSizer1->Add( m_staticTextStyle, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
74
75 wxString m_OutlineDisplayCtrlChoices[] = { _("Line"), _("Hatched"), _("Fully hatched") };
76 int m_OutlineDisplayCtrlNChoices = sizeof( m_OutlineDisplayCtrlChoices ) / sizeof( wxString );
77 m_OutlineDisplayCtrl = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_OutlineDisplayCtrlNChoices, m_OutlineDisplayCtrlChoices, 0 );
78 m_OutlineDisplayCtrl->SetSelection( 0 );
79 gbSizer1->Add( m_OutlineDisplayCtrl, wxGBPosition( 2, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
80
81 m_stBorderHatchPitchText = new wxStaticText( this, wxID_ANY, _("Outline hatch pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
82 m_stBorderHatchPitchText->Wrap( -1 );
83 gbSizer1->Add( m_stBorderHatchPitchText, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
84
85 m_outlineHatchPitchCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
86 m_outlineHatchPitchCtrl->SetToolTip( _("A unique name for this rule area for use in DRC rules") );
87
88 gbSizer1->Add( m_outlineHatchPitchCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
89
90 m_outlineHatchUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
91 m_outlineHatchUnits->Wrap( -1 );
92 gbSizer1->Add( m_outlineHatchUnits, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
93
94
95 bSizerRight->Add( gbSizer1, 0, wxEXPAND|wxALL, 5 );
96
97
98 bSizerRight->Add( 0, 0, 0, wxEXPAND, 5 );
99
100
101 bUpperSizer->Add( bSizerRight, 7, wxEXPAND|wxALL, 5 );
102
103
104 bMainSizer->Add( bUpperSizer, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
105
106 m_sdbSizerButtons = new wxStdDialogButtonSizer();
107 m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
109 m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
111 m_sdbSizerButtons->Realize();
112
113 bMainSizer->Add( m_sdbSizerButtons, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
114
115
116 this->SetSizer( bMainSizer );
117 this->Layout();
118 bMainSizer->Fit( this );
119
120 this->Centre( wxBOTH );
121
122 // Connect Events
123 m_layers->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::OnLayerSelection ), NULL, this );
124 m_layers->Connect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::onLayerListRightDown ), NULL, this );
125 m_layers->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::OnSizeLayersList ), NULL, this );
126}
127
129{
130 // Disconnect Events
131 m_layers->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::OnLayerSelection ), NULL, this );
132 m_layers->Disconnect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::onLayerListRightDown ), NULL, this );
133 m_layers->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_RULE_AREA_PROPERTIES_BASE::OnSizeLayersList ), NULL, this );
134
135}
virtual void onLayerListRightDown(wxMouseEvent &event)
virtual void OnSizeLayersList(wxSizeEvent &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=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxFULL_REPAINT_ON_RESIZE|wxBORDER_SUNKEN)
virtual void OnLayerSelection(wxDataViewEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)