KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_label_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
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
48 m_textEntrySizer->Add( 0, 0, 1, wxEXPAND, 5 );
49
50 m_syntaxHelp = new wxHyperlinkCtrl( this, wxID_ANY, _("Syntax help"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
51 m_syntaxHelp->SetToolTip( _("Show syntax help window") );
52
53 m_textEntrySizer->Add( m_syntaxHelp, 1, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxRIGHT|wxLEFT, 5 );
54
55
56 bMainSizer->Add( m_textEntrySizer, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 12 );
57
58 wxStaticBoxSizer* sbFields;
59 sbFields = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Fields") ), wxVERTICAL );
60
61 m_grid = new WX_GRID( sbFields->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
62
63 // Grid
64 m_grid->CreateGrid( 4, 14 );
65 m_grid->EnableEditing( true );
66 m_grid->EnableGridLines( true );
67 m_grid->EnableDragGridSize( false );
68 m_grid->SetMargins( 0, 0 );
69
70 // Columns
71 m_grid->SetColSize( 0, 72 );
72 m_grid->SetColSize( 1, 84 );
73 m_grid->SetColSize( 2, 48 );
74 m_grid->SetColSize( 3, 48 );
75 m_grid->SetColSize( 4, 70 );
76 m_grid->SetColSize( 5, 70 );
77 m_grid->SetColSize( 6, 48 );
78 m_grid->SetColSize( 7, 48 );
79 m_grid->SetColSize( 8, 80 );
80 m_grid->SetColSize( 9, 48 );
81 m_grid->SetColSize( 10, 80 );
82 m_grid->SetColSize( 11, 80 );
83 m_grid->SetColSize( 12, 100 );
84 m_grid->SetColSize( 13, 48 );
85 m_grid->EnableDragColMove( false );
86 m_grid->EnableDragColSize( true );
87 m_grid->SetColLabelValue( 0, _("Name") );
88 m_grid->SetColLabelValue( 1, _("Value") );
89 m_grid->SetColLabelValue( 2, _("Show") );
90 m_grid->SetColLabelValue( 3, _("Show Name") );
91 m_grid->SetColLabelValue( 4, _("H Align") );
92 m_grid->SetColLabelValue( 5, _("V Align") );
93 m_grid->SetColLabelValue( 6, _("Italic") );
94 m_grid->SetColLabelValue( 7, _("Bold") );
95 m_grid->SetColLabelValue( 8, _("Text Size") );
96 m_grid->SetColLabelValue( 9, _("Orientation") );
97 m_grid->SetColLabelValue( 10, _("X Position") );
98 m_grid->SetColLabelValue( 11, _("Y Position") );
99 m_grid->SetColLabelValue( 12, _("Font") );
100 m_grid->SetColLabelValue( 13, _("Color") );
101 m_grid->SetColLabelSize( 22 );
102 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
103
104 // Rows
105 m_grid->EnableDragRowSize( true );
106 m_grid->SetRowLabelSize( 0 );
107 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
108
109 // Label Appearance
110
111 // Cell Defaults
112 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
113 m_grid->SetMinSize( wxSize( -1,100 ) );
114
115 sbFields->Add( m_grid, 1, wxALL|wxEXPAND, 5 );
116
117 wxBoxSizer* bButtonSize;
118 bButtonSize = new wxBoxSizer( wxHORIZONTAL );
119
120 m_bpAdd = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
121 m_bpAdd->SetToolTip( _("Add field") );
122
123 bButtonSize->Add( m_bpAdd, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
124
125 m_bpMoveUp = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
126 m_bpMoveUp->SetToolTip( _("Move up") );
127
128 bButtonSize->Add( m_bpMoveUp, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
129
130 m_bpMoveDown = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
131 m_bpMoveDown->SetToolTip( _("Move down") );
132
133 bButtonSize->Add( m_bpMoveDown, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
134
135
136 bButtonSize->Add( 20, 0, 0, wxEXPAND, 10 );
137
138 m_bpDelete = new STD_BITMAP_BUTTON( sbFields->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
139 m_bpDelete->SetToolTip( _("Delete field") );
140
141 bButtonSize->Add( m_bpDelete, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
142
143
144 sbFields->Add( bButtonSize, 0, wxALL|wxEXPAND, 5 );
145
146
147 bMainSizer->Add( sbFields, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
148
149 wxBoxSizer* optionsSizer;
150 optionsSizer = new wxBoxSizer( wxHORIZONTAL );
151
152 m_shapeSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Shape") ), wxVERTICAL );
153
154 m_input = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Input"), wxDefaultPosition, wxDefaultSize, 0 );
155 m_shapeSizer->Add( m_input, 0, wxBOTTOM|wxRIGHT, 2 );
156
157 m_output = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Output"), wxDefaultPosition, wxDefaultSize, 0 );
158 m_shapeSizer->Add( m_output, 0, wxBOTTOM|wxRIGHT, 3 );
159
160 m_bidirectional = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Bidirectional"), wxDefaultPosition, wxDefaultSize, 0 );
161 m_shapeSizer->Add( m_bidirectional, 0, wxBOTTOM|wxRIGHT, 3 );
162
163 m_triState = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Tri-state"), wxDefaultPosition, wxDefaultSize, 0 );
164 m_shapeSizer->Add( m_triState, 0, wxBOTTOM|wxRIGHT, 3 );
165
166 m_passive = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Passive"), wxDefaultPosition, wxDefaultSize, 0 );
167 m_shapeSizer->Add( m_passive, 0, wxBOTTOM|wxRIGHT, 3 );
168
169 m_dot = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Dot"), wxDefaultPosition, wxDefaultSize, 0 );
170 m_shapeSizer->Add( m_dot, 0, wxBOTTOM|wxRIGHT, 3 );
171
172 m_circle = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Circle"), wxDefaultPosition, wxDefaultSize, 0 );
173 m_shapeSizer->Add( m_circle, 0, wxBOTTOM|wxRIGHT, 3 );
174
175 m_diamond = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Diamond"), wxDefaultPosition, wxDefaultSize, 0 );
176 m_shapeSizer->Add( m_diamond, 0, wxBOTTOM|wxRIGHT, 3 );
177
178 m_rectangle = new wxRadioButton( m_shapeSizer->GetStaticBox(), wxID_ANY, _("Rectangle"), wxDefaultPosition, wxDefaultSize, 0 );
179 m_shapeSizer->Add( m_rectangle, 0, wxBOTTOM|wxRIGHT, 3 );
180
181
182 optionsSizer->Add( m_shapeSizer, 0, wxBOTTOM|wxEXPAND|wxRIGHT|wxTOP, 5 );
183
184 wxStaticBoxSizer* formatting;
185 formatting = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Formatting") ), wxVERTICAL );
186
187 m_formattingGB = new wxGridBagSizer( 3, 1 );
188 m_formattingGB->SetFlexibleDirection( wxBOTH );
189 m_formattingGB->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
190
191 m_fontLabel = new wxStaticText( formatting->GetStaticBox(), wxID_ANY, _("Font:"), wxDefaultPosition, wxDefaultSize, 0 );
192 m_fontLabel->Wrap( -1 );
193 m_formattingGB->Add( m_fontLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
194
195 wxString m_fontCtrlChoices[] = { _("Default Font"), _("KiCad Font") };
196 int m_fontCtrlNChoices = sizeof( m_fontCtrlChoices ) / sizeof( wxString );
197 m_fontCtrl = new FONT_CHOICE( formatting->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fontCtrlNChoices, m_fontCtrlChoices, 0 );
198 m_fontCtrl->SetSelection( 0 );
199 m_formattingGB->Add( m_fontCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
200
201 m_iconBar = new wxBoxSizer( wxHORIZONTAL );
202
203 m_separator1 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
204 m_separator1->Enable( false );
205
206 m_iconBar->Add( m_separator1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
207
208 m_bold = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
209 m_bold->SetToolTip( _("Bold") );
210
211 m_iconBar->Add( m_bold, 0, wxALIGN_CENTER_VERTICAL, 5 );
212
213 m_italic = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
214 m_italic->SetToolTip( _("Italic") );
215
216 m_iconBar->Add( m_italic, 0, wxALIGN_CENTER_VERTICAL, 5 );
217
218 m_separator2 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
219 m_separator2->Enable( false );
220
221 m_iconBar->Add( m_separator2, 0, wxALIGN_CENTER_VERTICAL, 5 );
222
223 m_spin0 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
224 m_iconBar->Add( m_spin0, 0, wxALIGN_CENTER_VERTICAL, 5 );
225
226 m_spin1 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
227 m_iconBar->Add( m_spin1, 0, wxALIGN_CENTER_VERTICAL, 5 );
228
229 m_spin2 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
230 m_iconBar->Add( m_spin2, 0, wxALIGN_CENTER_VERTICAL, 5 );
231
232 m_spin3 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
233 m_iconBar->Add( m_spin3, 0, wxALIGN_CENTER_VERTICAL, 5 );
234
235 m_autoRotate = new wxCheckBox( formatting->GetStaticBox(), wxID_ANY, _("Auto"), wxDefaultPosition, wxDefaultSize, 0 );
236 m_iconBar->Add( m_autoRotate, 0, wxALL, 5 );
237
238 m_separator3 = new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
239 m_separator3->Enable( false );
240
241 m_iconBar->Add( m_separator3, 0, wxALIGN_CENTER_VERTICAL, 5 );
242
243
244 m_formattingGB->Add( m_iconBar, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxEXPAND|wxRIGHT|wxLEFT, 5 );
245
246 m_textSizeLabel = new wxStaticText( formatting->GetStaticBox(), wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
247 m_textSizeLabel->Wrap( -1 );
248 m_formattingGB->Add( m_textSizeLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 4 );
249
250 wxBoxSizer* bSizer71;
251 bSizer71 = new wxBoxSizer( wxHORIZONTAL );
252
253 m_textSizeCtrl = new wxTextCtrl( formatting->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
254 bSizer71->Add( m_textSizeCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
255
256 m_textSizeUnits = new wxStaticText( formatting->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
257 m_textSizeUnits->Wrap( -1 );
258 bSizer71->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
259
260 m_textColorLabel = new wxStaticText( formatting->GetStaticBox(), wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
261 m_textColorLabel->Wrap( -1 );
262 bSizer71->Add( m_textColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
263
264
265 bSizer71->Add( 5, 0, 0, 0, 5 );
266
267 m_panelBorderColor1 = new wxPanel( formatting->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
268 wxBoxSizer* bSizer22;
269 bSizer22 = new wxBoxSizer( wxVERTICAL );
270
271 m_textColorSwatch = new COLOR_SWATCH( m_panelBorderColor1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
272 bSizer22->Add( m_textColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
273
274
275 m_panelBorderColor1->SetSizer( bSizer22 );
276 m_panelBorderColor1->Layout();
277 bSizer22->Fit( m_panelBorderColor1 );
278 bSizer71->Add( m_panelBorderColor1, 0, wxALIGN_CENTER_VERTICAL, 5 );
279
280
281 m_formattingGB->Add( bSizer71, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
282
283
284 formatting->Add( m_formattingGB, 1, wxBOTTOM|wxEXPAND, 5 );
285
286
287 optionsSizer->Add( formatting, 1, wxBOTTOM|wxEXPAND|wxTOP, 5 );
288
289
290 bMainSizer->Add( optionsSizer, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
291
292 m_sdbSizer1 = new wxStdDialogButtonSizer();
293 m_sdbSizer1OK = new wxButton( this, wxID_OK );
294 m_sdbSizer1->AddButton( m_sdbSizer1OK );
295 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
296 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
297 m_sdbSizer1->Realize();
298
299 bMainSizer->Add( m_sdbSizer1, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
300
301
302 this->SetSizer( bMainSizer );
303 this->Layout();
304 bMainSizer->Fit( this );
305
306 // Connect Events
307 this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnUpdateUI ) );
308 m_valueSingleLine->Connect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
309 m_valueSingleLine->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnEnterKey ), NULL, this );
310 m_valueCombo->Connect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
311 m_valueCombo->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnEnterKey ), NULL, this );
312 m_syntaxHelp->Connect( wxEVT_COMMAND_HYPERLINK, wxHyperlinkEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnFormattingHelp ), NULL, this );
313 m_grid->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnSizeGrid ), NULL, this );
314 m_bpAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnAddField ), NULL, this );
315 m_bpMoveUp->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnMoveUp ), NULL, this );
316 m_bpMoveDown->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnMoveDown ), NULL, this );
317 m_bpDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnDeleteField ), NULL, this );
318}
319
321{
322 // Disconnect Events
323 this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnUpdateUI ) );
324 m_valueSingleLine->Disconnect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
325 m_valueSingleLine->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnEnterKey ), NULL, this );
326 m_valueCombo->Disconnect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnValueCharHook ), NULL, this );
327 m_valueCombo->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnEnterKey ), NULL, this );
328 m_syntaxHelp->Disconnect( wxEVT_COMMAND_HYPERLINK, wxHyperlinkEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnFormattingHelp ), NULL, this );
329 m_grid->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnSizeGrid ), NULL, this );
330 m_bpAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnAddField ), NULL, this );
331 m_bpMoveUp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnMoveUp ), NULL, this );
332 m_bpMoveDown->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnMoveDown ), NULL, this );
333 m_bpDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LABEL_PROPERTIES_BASE::OnDeleteField ), NULL, this );
334
335}
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 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:88
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:249
#define _(s)