KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eeschema/dialogs/dialog_shape_properties_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf02)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10
12
14
15BEGIN_EVENT_TABLE( DIALOG_SHAPE_PROPERTIES_BASE, DIALOG_SHIM )
22END_EVENT_TABLE()
23
24DIALOG_SHAPE_PROPERTIES_BASE::DIALOG_SHAPE_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 )
25{
26 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
27
28 wxBoxSizer* mainSizer;
29 mainSizer = new wxBoxSizer( wxVERTICAL );
30
31 m_infoBar = new WX_INFOBAR( this );
32 m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
33 m_infoBar->SetEffectDuration( 500 );
34 m_infoBar->Hide();
35
36 mainSizer->Add( m_infoBar, 0, wxBOTTOM|wxEXPAND, 5 );
37
38 wxBoxSizer* bColumns;
39 bColumns = new wxBoxSizer( wxHORIZONTAL );
40
41 m_borderSizer = new wxGridBagSizer( 3, 3 );
42 m_borderSizer->SetFlexibleDirection( wxBOTH );
43 m_borderSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
44 m_borderSizer->SetEmptyCellSize( wxSize( 36,-1 ) );
45
46 m_borderCheckbox = new wxCheckBox( this, wxID_ANY, _("Border"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_borderSizer->Add( m_borderCheckbox, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM, 2 );
48
49 m_borderWidthLabel = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
50 m_borderWidthLabel->Wrap( -1 );
51 m_borderSizer->Add( m_borderWidthLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
52
53 wxBoxSizer* bSizer7;
54 bSizer7 = new wxBoxSizer( wxHORIZONTAL );
55
56 m_borderWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
57 bSizer7->Add( m_borderWidthCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
58
59 m_borderWidthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_borderWidthUnits->Wrap( -1 );
61 bSizer7->Add( m_borderWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
62
63 m_borderColorLabel = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_borderColorLabel->Wrap( -1 );
65 bSizer7->Add( m_borderColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
66
67
68 bSizer7->Add( 5, 0, 0, 0, 5 );
69
70 m_panelBorderColor = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
71 wxBoxSizer* bSizer23;
72 bSizer23 = new wxBoxSizer( wxVERTICAL );
73
74 m_borderColorSwatch = new COLOR_SWATCH( m_panelBorderColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
75 bSizer23->Add( m_borderColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
76
77
78 m_panelBorderColor->SetSizer( bSizer23 );
79 m_panelBorderColor->Layout();
80 bSizer23->Fit( m_panelBorderColor );
81 bSizer7->Add( m_panelBorderColor, 0, wxALIGN_CENTER_VERTICAL, 5 );
82
83
84 m_borderSizer->Add( bSizer7, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
85
86 m_borderStyleLabel = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
87 m_borderStyleLabel->Wrap( -1 );
88 m_borderSizer->Add( m_borderStyleLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
89
90 m_borderStyleCombo = new wxBitmapComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
91 m_borderStyleCombo->SetMinSize( wxSize( 240,-1 ) );
92
93 m_borderSizer->Add( m_borderStyleCombo, wxGBPosition( 2, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
94
95 m_helpLabel1 = new wxStaticText( this, wxID_ANY, _("Set border width to 0 to use schematic's default line width."), wxDefaultPosition, wxDefaultSize, 0 );
96 m_helpLabel1->Wrap( 320 );
97 m_borderSizer->Add( m_helpLabel1, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxTOP, 8 );
98
99
100 bColumns->Add( m_borderSizer, 9, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
101
102
103 bColumns->Add( 15, 0, 0, wxEXPAND, 5 );
104
105 m_fillBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
106 m_schematicPage = new wxPanel( m_fillBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
107 wxBoxSizer* bSizer8;
108 bSizer8 = new wxBoxSizer( wxVERTICAL );
109
110 m_fillSizer = new wxGridBagSizer( 3, 3 );
111 m_fillSizer->SetFlexibleDirection( wxBOTH );
112 m_fillSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
113 m_fillSizer->SetEmptyCellSize( wxSize( 36,12 ) );
114
115 m_filledCtrl = new wxCheckBox( m_schematicPage, wxID_ANY, _("Filled shape"), wxDefaultPosition, wxDefaultSize, 0 );
116 m_fillSizer->Add( m_filledCtrl, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM, 2 );
117
118 wxBoxSizer* bSizer81;
119 bSizer81 = new wxBoxSizer( wxHORIZONTAL );
120
121 m_fillColorLabel = new wxStaticText( m_schematicPage, wxID_ANY, _("Fill color:"), wxDefaultPosition, wxDefaultSize, 0 );
122 m_fillColorLabel->Wrap( -1 );
123 bSizer81->Add( m_fillColorLabel, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
124
125 m_panelFillColor = new wxPanel( m_schematicPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
126 wxBoxSizer* bSizer21;
127 bSizer21 = new wxBoxSizer( wxVERTICAL );
128
129 m_fillColorSwatch = new COLOR_SWATCH( m_panelFillColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
130 bSizer21->Add( m_fillColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
131
132
133 m_panelFillColor->SetSizer( bSizer21 );
134 m_panelFillColor->Layout();
135 bSizer21->Fit( m_panelFillColor );
136 bSizer81->Add( m_panelFillColor, 0, wxALIGN_CENTER_VERTICAL, 5 );
137
138
139 m_fillSizer->Add( bSizer81, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
140
141 m_helpLabel2 = new wxStaticText( m_schematicPage, wxID_ANY, _("Clear colors to use Schematic Editor colors."), wxDefaultPosition, wxDefaultSize, 0 );
142 m_helpLabel2->Wrap( -1 );
143 m_fillSizer->Add( m_helpLabel2, wxGBPosition( 4, 0 ), wxGBSpan( 1, 2 ), wxTOP|wxRIGHT, 8 );
144
145
146 bSizer8->Add( m_fillSizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
147
148
149 m_schematicPage->SetSizer( bSizer8 );
150 m_schematicPage->Layout();
151 bSizer8->Fit( m_schematicPage );
152 m_fillBook->AddPage( m_schematicPage, _("a page"), false );
153 m_symbolEditorPage = new wxPanel( m_fillBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
154 wxBoxSizer* bSizer9;
155 bSizer9 = new wxBoxSizer( wxVERTICAL );
156
157 wxStaticBoxSizer* bSizerFill;
158 bSizerFill = new wxStaticBoxSizer( new wxStaticBox( m_symbolEditorPage, wxID_ANY, _("Fill Style") ), wxVERTICAL );
159
160 wxGridBagSizer* gbSizer1;
161 gbSizer1 = new wxGridBagSizer( 3, 0 );
162 gbSizer1->SetFlexibleDirection( wxBOTH );
163 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
164
165 m_rbFillNone = new wxRadioButton( bSizerFill->GetStaticBox(), NO_FILL, _("Do not fill"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
166 gbSizer1->Add( m_rbFillNone, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
167
168 m_rbFillOutline = new wxRadioButton( bSizerFill->GetStaticBox(), FILLED_SHAPE, _("Fill with body outline color"), wxDefaultPosition, wxDefaultSize, 0 );
169 gbSizer1->Add( m_rbFillOutline, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
170
171 m_rbFillBackground = new wxRadioButton( bSizerFill->GetStaticBox(), FILLED_WITH_BG_BODYCOLOR, _("Fill with body background color"), wxDefaultPosition, wxDefaultSize, 0 );
172 gbSizer1->Add( m_rbFillBackground, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
173
174 m_rbFillCustom = new wxRadioButton( bSizerFill->GetStaticBox(), FILLED_WITH_COLOR, _("Fill with:"), wxDefaultPosition, wxDefaultSize, 0 );
175 gbSizer1->Add( m_rbFillCustom, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
176
177 m_customColorSwatch = new COLOR_SWATCH( bSizerFill->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
178 gbSizer1->Add( m_customColorSwatch, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
179
180
181 bSizerFill->Add( gbSizer1, 1, wxEXPAND|wxBOTTOM, 5 );
182
183
184 bSizer9->Add( bSizerFill, 1, wxEXPAND, 5 );
185
186
187 m_symbolEditorPage->SetSizer( bSizer9 );
188 m_symbolEditorPage->Layout();
189 bSizer9->Fit( m_symbolEditorPage );
190 m_fillBook->AddPage( m_symbolEditorPage, _("a page"), false );
191
192 bColumns->Add( m_fillBook, 8, wxEXPAND | wxALL, 10 );
193
194
195 mainSizer->Add( bColumns, 0, wxEXPAND, 5 );
196
197 m_symbolEditorSizer = new wxBoxSizer( wxVERTICAL );
198
199
200 m_symbolEditorSizer->Add( 0, 10, 0, wxEXPAND, 5 );
201
202 wxBoxSizer* bColumns2;
203 bColumns2 = new wxBoxSizer( wxHORIZONTAL );
204
205 wxBoxSizer* bLeft2;
206 bLeft2 = new wxBoxSizer( wxVERTICAL );
207
208 m_privateCheckbox = new wxCheckBox( this, wxID_ANY, _("Private to Symbol Editor"), wxDefaultPosition, wxDefaultSize, 0 );
209 bLeft2->Add( m_privateCheckbox, 0, wxTOP, 5 );
210
211
212 bColumns2->Add( bLeft2, 9, wxEXPAND|wxRIGHT|wxLEFT, 10 );
213
214
215 bColumns2->Add( 15, 0, 0, wxEXPAND, 5 );
216
217 wxBoxSizer* bRight2;
218 bRight2 = new wxBoxSizer( wxVERTICAL );
219
220 m_checkApplyToAllUnits = new wxCheckBox( this, wxID_ANY, _("Common to all &units in symbol"), wxDefaultPosition, wxDefaultSize, 0 );
221 bRight2->Add( m_checkApplyToAllUnits, 0, wxTOP|wxRIGHT, 5 );
222
223 m_checkApplyToAllBodyStyles = new wxCheckBox( this, wxID_ANY, _("Common to all body &styles (De Morgan)"), wxDefaultPosition, wxDefaultSize, 0 );
224 bRight2->Add( m_checkApplyToAllBodyStyles, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
225
226
227 bColumns2->Add( bRight2, 8, wxEXPAND|wxRIGHT|wxLEFT, 10 );
228
229
230 m_symbolEditorSizer->Add( bColumns2, 1, wxEXPAND, 5 );
231
232
233 mainSizer->Add( m_symbolEditorSizer, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
234
235 m_sdbSizer = new wxStdDialogButtonSizer();
236 m_sdbSizerOK = new wxButton( this, wxID_OK );
237 m_sdbSizer->AddButton( m_sdbSizerOK );
238 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
239 m_sdbSizer->AddButton( m_sdbSizerCancel );
240 m_sdbSizer->Realize();
241
242 mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
243
244
245 this->SetSizer( mainSizer );
246 this->Layout();
247 mainSizer->Fit( this );
248
249 this->Centre( wxBOTH );
250}
251
253{
254}
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:57
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
A modified version of the wxInfoBar class that allows us to:
Definition: wx_infobar.h:76
#define _(s)
@ FILLED_WITH_COLOR
@ FILLED_WITH_BG_BODYCOLOR
@ FILLED_SHAPE