KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
dialog_label_properties_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a-dirty)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10#include "widgets/font_choice.h"
12#include "widgets/wx_grid.h"
13
15
17
18DIALOG_LABEL_PROPERTIES_BASE::DIALOG_LABEL_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 )
19{
20 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
21
22 wxBoxSizer* bMainSizer;
23 bMainSizer = new wxBoxSizer( wxVERTICAL );
24
25 m_textEntrySizer = new wxFlexGridSizer( 5, 2, 1, 3 );
26 m_textEntrySizer->AddGrowableCol( 1 );
27 m_textEntrySizer->AddGrowableRow( 1 );
28 m_textEntrySizer->SetFlexibleDirection( wxBOTH );
29 m_textEntrySizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30
31 m_labelSingleLine = new wxStaticText( this, wxID_ANY, _("Label:"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_labelSingleLine->Wrap( -1 );
33 m_labelSingleLine->SetToolTip( _("Enter the text to be used within the schematic") );
34
35 m_textEntrySizer->Add( m_labelSingleLine, 0, wxALIGN_CENTER_VERTICAL, 2 );
36
37 m_valueSingleLine = new wxTextCtrl( this, wxID_VALUESINGLE, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER|wxTE_RICH );
38 m_textEntrySizer->Add( m_valueSingleLine, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 2 );
39
40 m_labelCombo = new wxStaticText( this, wxID_ANY, _("Label:"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_labelCombo->Wrap( -1 );
42 m_textEntrySizer->Add( m_labelCombo, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
43
44 m_valueCombo = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxTE_PROCESS_ENTER );
45 m_textEntrySizer->Add( m_valueCombo, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
46
47 m_labelMultiLine = new wxStaticText( this, wxID_ANY, _("Label:"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_labelMultiLine->Wrap( -1 );
49 m_labelMultiLine->SetToolTip( _("Enter the text to be used within the schematic") );
50
51 m_textEntrySizer->Add( m_labelMultiLine, 0, wxALIGN_CENTER_VERTICAL, 2 );
52
53 m_valueMultiLine = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
54 m_textEntrySizer->Add( m_valueMultiLine, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 2 );
55
56
57 m_textEntrySizer->Add( 0, 0, 1, wxEXPAND, 5 );
58
59 wxBoxSizer* bSizer7;
60 bSizer7 = new wxBoxSizer( wxHORIZONTAL );
61
62 m_cbMultiLine = new wxCheckBox( this, wxID_ANY, _("Multiple label input"), wxDefaultPosition, wxDefaultSize, 0 );
63 bSizer7->Add( m_cbMultiLine, 0, 0, 5 );
64
65
66 bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
67
68 m_syntaxHelp = new wxHyperlinkCtrl( this, wxID_ANY, _("Syntax help"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_ALIGN_RIGHT|wxHL_CONTEXTMENU );
69 m_syntaxHelp->SetToolTip( _("Show syntax help window") );
70
71 bSizer7->Add( m_syntaxHelp, 1, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
72
73
74 m_textEntrySizer->Add( bSizer7, 1, wxEXPAND, 5 );
75
76
77 bMainSizer->Add( m_textEntrySizer, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 12 );
78
79 wxStaticBoxSizer* sbFields;
80 sbFields = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Fields") ), wxVERTICAL );
81
82 m_grid = new WX_GRID( sbFields->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
83
84 // Grid
85 m_grid->CreateGrid( 4, 14 );
86 m_grid->EnableEditing( true );
87 m_grid->EnableGridLines( true );
88 m_grid->EnableDragGridSize( false );
89 m_grid->SetMargins( 0, 0 );
90
91 // Columns
92 m_grid->SetColSize( 0, 72 );
93 m_grid->SetColSize( 1, 84 );
94 m_grid->SetColSize( 2, 48 );
95 m_grid->SetColSize( 3, 48 );
96 m_grid->SetColSize( 4, 70 );
97 m_grid->SetColSize( 5, 70 );
98 m_grid->SetColSize( 6, 48 );
99 m_grid->SetColSize( 7, 48 );
100 m_grid->SetColSize( 8, 80 );
101 m_grid->SetColSize( 9, 48 );
102 m_grid->SetColSize( 10, 80 );
103 m_grid->SetColSize( 11, 80 );
104 m_grid->SetColSize( 12, 100 );
105 m_grid->SetColSize( 13, 48 );
106 m_grid->EnableDragColMove( false );
107 m_grid->EnableDragColSize( true );
108 m_grid->SetColLabelValue( 0, _("Name") );
109 m_grid->SetColLabelValue( 1, _("Value") );
110 m_grid->SetColLabelValue( 2, _("Show") );
111 m_grid->SetColLabelValue( 3, _("Show Name") );
112 m_grid->SetColLabelValue( 4, _("H Align") );
113 m_grid->SetColLabelValue( 5, _("V Align") );
114 m_grid->SetColLabelValue( 6, _("Italic") );
115 m_grid->SetColLabelValue( 7, _("Bold") );
116 m_grid->SetColLabelValue( 8, _("Text Size") );
117 m_grid->SetColLabelValue( 9, _("Orientation") );
118 m_grid->SetColLabelValue( 10, _("X Position") );
119 m_grid->SetColLabelValue( 11, _("Y Position") );
120 m_grid->SetColLabelValue( 12, _("Font") );
121 m_grid->SetColLabelValue( 13, _("Color") );
122 m_grid->SetColLabelSize( 22 );
123 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
124
125 // Rows
126 m_grid->EnableDragRowSize( true );
127 m_grid->SetRowLabelSize( 0 );
128 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
129
130 // Label Appearance
131
132 // Cell Defaults
133 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
134 m_grid->SetMinSize( wxSize( -1,100 ) );
135
136 sbFields->Add( m_grid, 1, wxALL|wxEXPAND, 5 );
137
138 wxBoxSizer* bButtonSize;
139 bButtonSize = new wxBoxSizer( wxHORIZONTAL );
140
141 m_bpAdd = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
142 m_bpAdd->SetToolTip( _("Add field") );
143
144 bButtonSize->Add( m_bpAdd, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
145
146 m_bpMoveUp = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
147 m_bpMoveUp->SetToolTip( _("Move up") );
148
149 bButtonSize->Add( m_bpMoveUp, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
150
151 m_bpMoveDown = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
152 m_bpMoveDown->SetToolTip( _("Move down") );
153
154 bButtonSize->Add( m_bpMoveDown, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
155
156
157 bButtonSize->Add( 20, 0, 0, wxEXPAND, 10 );
158
159 m_bpDelete = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
160 m_bpDelete->SetToolTip( _("Delete field") );
161
162 bButtonSize->Add( m_bpDelete, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
163
164
165 sbFields->Add( bButtonSize, 0, wxALL|wxEXPAND, 5 );
166
167
168 bMainSizer->Add( sbFields, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
169
170 wxBoxSizer* optionsSizer;
171 optionsSizer = new wxBoxSizer( wxHORIZONTAL );
172
173 m_shapeSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Shape") ), wxVERTICAL );
174
175 m_input = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Input"), wxDefaultPosition, wxDefaultSize, 0 );
176 m_shapeSizer->Add( m_input, 0, wxBOTTOM|wxRIGHT, 2 );
177
178 m_output = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Output"), wxDefaultPosition, wxDefaultSize, 0 );
179 m_shapeSizer->Add( m_output, 0, wxBOTTOM|wxRIGHT, 3 );
180
181 m_bidirectional = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Bidirectional"), wxDefaultPosition, wxDefaultSize, 0 );
182 m_shapeSizer->Add( m_bidirectional, 0, wxBOTTOM|wxRIGHT, 3 );
183
184 m_triState = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Tri-state"), wxDefaultPosition, wxDefaultSize, 0 );
185 m_shapeSizer->Add( m_triState, 0, wxBOTTOM|wxRIGHT, 3 );
186
187 m_passive = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Passive"), wxDefaultPosition, wxDefaultSize, 0 );
188 m_shapeSizer->Add( m_passive, 0, wxBOTTOM|wxRIGHT, 3 );
189
190 m_dot = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Dot"), wxDefaultPosition, wxDefaultSize, 0 );
191 m_shapeSizer->Add( m_dot, 0, wxBOTTOM|wxRIGHT, 3 );
192
193 m_circle = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Circle"), wxDefaultPosition, wxDefaultSize, 0 );
194 m_shapeSizer->Add( m_circle, 0, wxBOTTOM|wxRIGHT, 3 );
195
196 m_diamond = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Diamond"), wxDefaultPosition, wxDefaultSize, 0 );
197 m_shapeSizer->Add( m_diamond, 0, wxBOTTOM|wxRIGHT, 3 );
198
199 m_rectangle = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Rectangle"), wxDefaultPosition, wxDefaultSize, 0 );
200 m_shapeSizer->Add( m_rectangle, 0, wxBOTTOM|wxRIGHT, 3 );
201
202
203 optionsSizer->Add( m_shapeSizer, 0, wxBOTTOM|wxEXPAND|wxRIGHT|wxTOP, 5 );
204
205 wxStaticBoxSizer* formatting;
206 formatting = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Formatting") ), wxVERTICAL );
207
208 m_formattingGB = new wxGridBagSizer( 3, 1 );
209 m_formattingGB->SetFlexibleDirection( wxBOTH );
210 m_formattingGB->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
211
212 m_fontLabel = new wxStaticText( formatting->GetStaticBox(), wxID_ANY, _("Font:"), wxDefaultPosition, wxDefaultSize, 0 );
213 m_fontLabel->Wrap( -1 );
214 m_formattingGB->Add( m_fontLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
215
216 wxString m_fontCtrlChoices[] = { _("Default Font"), _("KiCad Font") };
217 int m_fontCtrlNChoices = sizeof( m_fontCtrlChoices ) / sizeof( wxString );
218 m_fontCtrl = new FONT_CHOICE( formatting->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fontCtrlNChoices, m_fontCtrlChoices, 0 );
219 m_fontCtrl->SetSelection( 0 );
220 m_formattingGB->Add( m_fontCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
221
222 m_iconBar = new wxBoxSizer( wxHORIZONTAL );
223
224 m_separator1 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
225 m_separator1->Enable( false );
226
227 m_iconBar->Add( m_separator1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
228
229 m_bold = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
230 m_bold->SetToolTip( _("Bold") );
231
232 m_iconBar->Add( m_bold, 0, wxALIGN_CENTER_VERTICAL, 5 );
233
234 m_italic = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
235 m_italic->SetToolTip( _("Italic") );
236
237 m_iconBar->Add( m_italic, 0, wxALIGN_CENTER_VERTICAL, 5 );
238
239 m_separator2 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
240 m_separator2->Enable( false );
241
242 m_iconBar->Add( m_separator2, 0, wxALIGN_CENTER_VERTICAL, 5 );
243
244 m_spin0 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
245 m_iconBar->Add( m_spin0, 0, wxALIGN_CENTER_VERTICAL, 5 );
246
247 m_spin1 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
248 m_iconBar->Add( m_spin1, 0, wxALIGN_CENTER_VERTICAL, 5 );
249
250 m_spin2 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
251 m_iconBar->Add( m_spin2, 0, wxALIGN_CENTER_VERTICAL, 5 );
252
253 m_spin3 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
254 m_iconBar->Add( m_spin3, 0, wxALIGN_CENTER_VERTICAL, 5 );
255
256 m_autoRotate = new wxCheckBox( formatting->GetStaticBox(), wxID_ANY, _("Auto"), wxDefaultPosition, wxDefaultSize, 0 );
257 m_iconBar->Add( m_autoRotate, 0, wxALL, 5 );
258
259 m_separator3 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
260 m_separator3->Enable( false );
261
262 m_iconBar->Add( m_separator3, 0, wxALIGN_CENTER_VERTICAL, 5 );
263
264
265 m_formattingGB->Add( m_iconBar, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxEXPAND|wxRIGHT|wxLEFT, 5 );
266
267 m_textSizeLabel = new wxStaticText( formatting->GetStaticBox(), wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
268 m_textSizeLabel->Wrap( -1 );
269 m_formattingGB->Add( m_textSizeLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 4 );
270
271 wxBoxSizer* bSizer71;
272 bSizer71 = new wxBoxSizer( wxHORIZONTAL );
273
274 m_textSizeCtrl = new wxTextCtrl( formatting->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
275 bSizer71->Add( m_textSizeCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
276
277 m_textSizeUnits = new wxStaticText( formatting->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
278 m_textSizeUnits->Wrap( -1 );
279 bSizer71->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
280
281 m_textColorLabel = new wxStaticText( formatting->GetStaticBox(), wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
282 m_textColorLabel->Wrap( -1 );
283 bSizer71->Add( m_textColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
284
285
286 bSizer71->Add( 5, 0, 0, 0, 5 );
287
288 m_panelBorderColor1 = new wxPanel( formatting->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
289 wxBoxSizer* bSizer22;
290 bSizer22 = new wxBoxSizer( wxVERTICAL );
291
292 m_textColorSwatch = new COLOR_SWATCH( m_panelBorderColor1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
293 bSizer22->Add( m_textColorSwatch, 0, 0, 5 );
294
295
296 m_panelBorderColor1->SetSizer( bSizer22 );
297 m_panelBorderColor1->Layout();
298 bSizer22->Fit( m_panelBorderColor1 );
299 bSizer71->Add( m_panelBorderColor1, 0, wxALIGN_CENTER_VERTICAL, 5 );
300
301
302 m_formattingGB->Add( bSizer71, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
303
304
305 formatting->Add( m_formattingGB, 1, wxBOTTOM|wxEXPAND, 5 );
306
307
308 optionsSizer->Add( formatting, 1, wxBOTTOM|wxEXPAND|wxTOP, 5 );
309
310
311 bMainSizer->Add( optionsSizer, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
312
313 m_sdbSizer1 = new wxStdDialogButtonSizer();
314 m_sdbSizer1OK = new wxButton( this, wxID_OK );
315 m_sdbSizer1->AddButton( m_sdbSizer1OK );
316 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
317 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
318 m_sdbSizer1->Realize();
319
320 bMainSizer->Add( m_sdbSizer1, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
321
322
323 this->SetSizer( bMainSizer );
324 this->Layout();
325 bMainSizer->Fit( this );
326
327 // Connect Events
328 this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnUpdateUI ) );
329 m_valueSingleLine->Connect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
330 m_valueSingleLine->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnEnterKey ), NULL, this );
331 m_valueCombo->Connect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
332 m_valueCombo->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnEnterKey ), NULL, this );
333 m_valueMultiLine->Connect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
334 m_cbMultiLine->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::onMultiLabelCheck ), NULL, this );
335 m_syntaxHelp->Connect( wxEVT_COMMAND_HYPERLINK, wxHyperlinkEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnFormattingHelp ), NULL, this );
336 m_grid->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnSizeGrid ), NULL, this );
337 m_bpAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnAddField ), NULL, this );
338 m_bpMoveUp->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnMoveUp ), NULL, this );
339 m_bpMoveDown->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnMoveDown ), NULL, this );
340 m_bpDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnDeleteField ), NULL, this );
341}
342
344{
345 // Disconnect Events
346 this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnUpdateUI ) );
347 m_valueSingleLine->Disconnect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
348 m_valueSingleLine->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnEnterKey ), NULL, this );
349 m_valueCombo->Disconnect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
350 m_valueCombo->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnEnterKey ), NULL, this );
351 m_valueMultiLine->Disconnect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
352 m_cbMultiLine->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::onMultiLabelCheck ), NULL, this );
353 m_syntaxHelp->Disconnect( wxEVT_COMMAND_HYPERLINK, wxHyperlinkEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnFormattingHelp ), NULL, this );
354 m_grid->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnSizeGrid ), NULL, this );
355 m_bpAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnAddField ), NULL, this );
356 m_bpMoveUp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnMoveUp ), NULL, this );
357 m_bpMoveDown->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnMoveDown ), NULL, this );
358 m_bpDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnDeleteField ), NULL, this );
359
360}
A bitmap button widget that behaves like an AUI toolbar item's button when it is drawn.
Definition: bitmap_button.h:42
bool Enable(bool aEnable=true) override
Enable the button.
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:57
virtual void OnEnterKey(wxCommandEvent &event)
virtual void OnMoveDown(wxCommandEvent &event)
virtual void onMultiLabelCheck(wxCommandEvent &event)
virtual void OnMoveUp(wxCommandEvent &event)
virtual void OnFormattingHelp(wxHyperlinkEvent &event)
DIALOG_LABEL_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Label Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnAddField(wxCommandEvent &event)
virtual void OnSizeGrid(wxSizeEvent &event)
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void OnValueCharHook(wxKeyEvent &event)
virtual void OnDeleteField(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:52
A bitmap button widget that behaves like a standard dialog button except with an icon.
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...
Definition: wx_grid.cpp:254
#define _(s)