KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_field_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
14
16
17DIALOG_FIELD_PROPERTIES_BASE::DIALOG_FIELD_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 )
18{
19 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
20
21 wxBoxSizer* bMainSizer;
22 bMainSizer = new wxBoxSizer( wxVERTICAL );
23
24 wxBoxSizer* bPropertiesSizer;
25 bPropertiesSizer = new wxBoxSizer( wxVERTICAL );
26
27 wxBoxSizer* bUpperBoxSizer;
28 bUpperBoxSizer = new wxBoxSizer( wxVERTICAL );
29
30 wxBoxSizer* bTextValueBoxSizer;
31 bTextValueBoxSizer = new wxBoxSizer( wxHORIZONTAL );
32
33 m_textLabel = new wxStaticText( this, wxID_ANY, _("Text:"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_textLabel->Wrap( -1 );
35 bTextValueBoxSizer->Add( m_textLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
36
37 m_TextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 bTextValueBoxSizer->Add( m_TextCtrl, 1, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
39
40 m_StyledTextCtrl = new wxStyledTextCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN, wxEmptyString );
41 m_StyledTextCtrl->SetUseTabs( true );
42 m_StyledTextCtrl->SetTabWidth( 4 );
43 m_StyledTextCtrl->SetIndent( 4 );
44 m_StyledTextCtrl->SetTabIndents( false );
45 m_StyledTextCtrl->SetBackSpaceUnIndents( false );
46 m_StyledTextCtrl->SetViewEOL( false );
47 m_StyledTextCtrl->SetViewWhiteSpace( false );
48 m_StyledTextCtrl->SetMarginWidth( 2, 0 );
49 m_StyledTextCtrl->SetIndentationGuides( false );
50 m_StyledTextCtrl->SetReadOnly( false );
51 m_StyledTextCtrl->SetMarginWidth( 1, 0 );
52 m_StyledTextCtrl->SetMarginWidth( 0, 0 );
53 m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDER, wxSTC_MARK_BOXPLUS );
54 m_StyledTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("BLACK") ) );
55 m_StyledTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("WHITE") ) );
56 m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_BOXMINUS );
57 m_StyledTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("BLACK") ) );
58 m_StyledTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("WHITE") ) );
59 m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_EMPTY );
60 m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_BOXPLUS );
61 m_StyledTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("BLACK") ) );
62 m_StyledTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("WHITE") ) );
63 m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_BOXMINUS );
64 m_StyledTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("BLACK") ) );
65 m_StyledTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("WHITE") ) );
66 m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_EMPTY );
67 m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_EMPTY );
68 m_StyledTextCtrl->SetSelBackground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
69 m_StyledTextCtrl->SetSelForeground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
70 bTextValueBoxSizer->Add( m_StyledTextCtrl, 1, wxRIGHT|wxLEFT, 5 );
71
72 m_TextValueSelectButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
73 bTextValueBoxSizer->Add( m_TextValueSelectButton, 0, wxALIGN_CENTER_VERTICAL, 5 );
74
75 m_unitLabel = new wxStaticText( this, wxID_ANY, _("Unit:"), wxDefaultPosition, wxDefaultSize, 0 );
76 m_unitLabel->Wrap( -1 );
77 bTextValueBoxSizer->Add( m_unitLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
78
79 wxArrayString m_unitChoiceChoices;
80 m_unitChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_unitChoiceChoices, 0 );
81 m_unitChoice->SetSelection( 0 );
82 bTextValueBoxSizer->Add( m_unitChoice, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
83
84
85 bUpperBoxSizer->Add( bTextValueBoxSizer, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
86
87 m_note = new wxStaticText( this, wxID_ANY, _("(%s)"), wxDefaultPosition, wxDefaultSize, 0 );
88 m_note->Wrap( -1 );
89 bUpperBoxSizer->Add( m_note, 0, wxBOTTOM|wxRIGHT|wxLEFT, 10 );
90
91
92 bPropertiesSizer->Add( bUpperBoxSizer, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
93
94 wxBoxSizer* bSizer9;
95 bSizer9 = new wxBoxSizer( wxHORIZONTAL );
96
97 m_visible = new wxCheckBox( this, wxID_ANY, _("Visible"), wxDefaultPosition, wxDefaultSize, 0 );
98 bSizer9->Add( m_visible, 0, wxALIGN_LEFT|wxBOTTOM, 5 );
99
100
101 bSizer9->Add( 0, 0, 1, wxEXPAND, 5 );
102
103 m_nameVisible = new wxCheckBox( this, wxID_ANY, _("Show field name"), wxDefaultPosition, wxDefaultSize, 0 );
104 m_nameVisible->Hide();
105 m_nameVisible->SetToolTip( _("Show the field name in addtion to its value") );
106
107 bSizer9->Add( m_nameVisible, 0, wxRIGHT|wxLEFT, 20 );
108
109
110 bSizer9->Add( 0, 0, 1, wxEXPAND, 5 );
111
112 m_cbAllowAutoPlace = new wxCheckBox( this, wxID_ANY, _("Allow automatic placement"), wxDefaultPosition, wxDefaultSize, 0 );
113 m_cbAllowAutoPlace->SetValue(true);
114 m_cbAllowAutoPlace->Hide();
115 m_cbAllowAutoPlace->SetToolTip( _("Allow automatic placement of this field in the schematic") );
116
117 bSizer9->Add( m_cbAllowAutoPlace, 0, wxFIXED_MINSIZE|wxRIGHT, 37 );
118
119
120 bPropertiesSizer->Add( bSizer9, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
121
122 wxGridBagSizer* gbSizer1;
123 gbSizer1 = new wxGridBagSizer( 3, 0 );
124 gbSizer1->SetFlexibleDirection( wxBOTH );
125 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
126 gbSizer1->SetEmptyCellSize( wxSize( -1,10 ) );
127
128 m_fontLabel = new wxStaticText( this, wxID_ANY, _("Font:"), wxDefaultPosition, wxDefaultSize, 0 );
129 m_fontLabel->Wrap( -1 );
130 gbSizer1->Add( m_fontLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
131
132 wxString m_fontCtrlChoices[] = { _("Default Font"), _("KiCad Font") };
133 int m_fontCtrlNChoices = sizeof( m_fontCtrlChoices ) / sizeof( wxString );
134 m_fontCtrl = new FONT_CHOICE( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fontCtrlNChoices, m_fontCtrlChoices, 0 );
135 m_fontCtrl->SetSelection( 0 );
136 gbSizer1->Add( m_fontCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
137
138 wxBoxSizer* formattingSizer;
139 formattingSizer = new wxBoxSizer( wxHORIZONTAL );
140
141 m_separator1 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
142 m_separator1->Enable( false );
143
144 formattingSizer->Add( m_separator1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
145
146 m_bold = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
147 m_bold->SetToolTip( _("Bold") );
148
149 formattingSizer->Add( m_bold, 0, wxALIGN_CENTER_VERTICAL, 5 );
150
151 m_italic = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
152 m_italic->SetToolTip( _("Italic") );
153
154 formattingSizer->Add( m_italic, 0, wxALIGN_CENTER_VERTICAL, 5 );
155
156 m_separator2 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
157 m_separator2->Enable( false );
158
159 formattingSizer->Add( m_separator2, 0, wxALIGN_CENTER_VERTICAL, 5 );
160
161 m_hAlignLeft = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
162 m_hAlignLeft->SetToolTip( _("Align left") );
163
164 formattingSizer->Add( m_hAlignLeft, 0, wxALIGN_CENTER_VERTICAL, 5 );
165
166 m_hAlignCenter = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
167 m_hAlignCenter->SetToolTip( _("Align horizontal center") );
168
169 formattingSizer->Add( m_hAlignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
170
171 m_hAlignRight = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
172 m_hAlignRight->SetToolTip( _("Align right") );
173
174 formattingSizer->Add( m_hAlignRight, 0, wxALIGN_CENTER_VERTICAL, 5 );
175
176 m_separator3 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
177 m_separator3->Enable( false );
178
179 formattingSizer->Add( m_separator3, 0, wxALIGN_CENTER_VERTICAL, 5 );
180
181 m_vAlignTop = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
182 m_vAlignTop->SetToolTip( _("Align top") );
183
184 formattingSizer->Add( m_vAlignTop, 0, wxALIGN_CENTER_VERTICAL, 5 );
185
186 m_vAlignCenter = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
187 m_vAlignCenter->SetToolTip( _("Align vertical center") );
188
189 formattingSizer->Add( m_vAlignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
190
191 m_vAlignBottom = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
192 m_vAlignBottom->SetToolTip( _("Align bottom") );
193
194 formattingSizer->Add( m_vAlignBottom, 0, wxALIGN_CENTER_VERTICAL, 5 );
195
196 m_separator4 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
197 m_separator4->Enable( false );
198
199 formattingSizer->Add( m_separator4, 0, wxALIGN_CENTER_VERTICAL, 5 );
200
201 m_horizontal = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
202 m_horizontal->SetToolTip( _("Horizontal text") );
203
204 formattingSizer->Add( m_horizontal, 0, wxALIGN_CENTER_VERTICAL, 5 );
205
206 m_vertical = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
207 m_vertical->SetToolTip( _("Vertical text") );
208
209 formattingSizer->Add( m_vertical, 0, wxALIGN_CENTER_VERTICAL, 5 );
210
211 m_separator5 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
212 m_separator5->Enable( false );
213
214 formattingSizer->Add( m_separator5, 0, wxALIGN_CENTER_VERTICAL, 5 );
215
216
217 gbSizer1->Add( formattingSizer, wxGBPosition( 0, 3 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
218
219 m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
220 m_textSizeLabel->Wrap( -1 );
221 gbSizer1->Add( m_textSizeLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
222
223 wxBoxSizer* bSizer71;
224 bSizer71 = new wxBoxSizer( wxHORIZONTAL );
225
226 m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
227 bSizer71->Add( m_textSizeCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
228
229 m_textSizeUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
230 m_textSizeUnits->Wrap( -1 );
231 bSizer71->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
232
233 m_textColorLabel = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
234 m_textColorLabel->Wrap( -1 );
235 bSizer71->Add( m_textColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
236
237
238 bSizer71->Add( 5, 0, 0, 0, 5 );
239
240 m_panelBorderColor1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
241 wxBoxSizer* bSizer22;
242 bSizer22 = new wxBoxSizer( wxVERTICAL );
243
244 m_textColorSwatch = new COLOR_SWATCH( m_panelBorderColor1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
245 bSizer22->Add( m_textColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
246
247
248 m_panelBorderColor1->SetSizer( bSizer22 );
249 m_panelBorderColor1->Layout();
250 bSizer22->Fit( m_panelBorderColor1 );
251 bSizer71->Add( m_panelBorderColor1, 0, wxALIGN_CENTER_VERTICAL, 5 );
252
253
254 gbSizer1->Add( bSizer71, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
255
256 m_xPosLabel = new wxStaticText( this, wxID_ANY, _("Position X:"), wxDefaultPosition, wxDefaultSize, 0 );
257 m_xPosLabel->Wrap( -1 );
258 gbSizer1->Add( m_xPosLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
259
260 m_xPosCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
261 gbSizer1->Add( m_xPosCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
262
263 m_xPosUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
264 m_xPosUnits->Wrap( -1 );
265 gbSizer1->Add( m_xPosUnits, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
266
267 m_yPosLabel = new wxStaticText( this, wxID_ANY, _("Position Y:"), wxDefaultPosition, wxDefaultSize, 0 );
268 m_yPosLabel->Wrap( -1 );
269 gbSizer1->Add( m_yPosLabel, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
270
271 m_yPosCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
272 gbSizer1->Add( m_yPosCtrl, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
273
274 m_yPosUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
275 m_yPosUnits->Wrap( -1 );
276 gbSizer1->Add( m_yPosUnits, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
277
278 m_commonToAllUnits = new wxCheckBox( this, wxID_ANY, _("Common to all units"), wxDefaultPosition, wxDefaultSize, 0 );
279 gbSizer1->Add( m_commonToAllUnits, wxGBPosition( 3, 4 ), wxGBSpan( 1, 1 ), wxRIGHT, 5 );
280
281 m_commonToAllBodyStyles = new wxCheckBox( this, wxID_ANY, _("Common to all body styles"), wxDefaultPosition, wxDefaultSize, 0 );
282 gbSizer1->Add( m_commonToAllBodyStyles, wxGBPosition( 4, 4 ), wxGBSpan( 1, 1 ), wxRIGHT, 5 );
283
284
285 bPropertiesSizer->Add( gbSizer1, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
286
287 wxFlexGridSizer* fgSizer3;
288 fgSizer3 = new wxFlexGridSizer( 5, 4, 3, 3 );
289 fgSizer3->SetFlexibleDirection( wxBOTH );
290 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
291
292
293 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
294
295
296 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
297
298
299 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
300
301
302 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
303
304
305 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
306
307
308 bPropertiesSizer->Add( fgSizer3, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
309
310 wxBoxSizer* bBottomtBoxSizer;
311 bBottomtBoxSizer = new wxBoxSizer( wxVERTICAL );
312
313
314 bPropertiesSizer->Add( bBottomtBoxSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
315
316
317 bMainSizer->Add( bPropertiesSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
318
319 m_sdbSizerButtons = new wxStdDialogButtonSizer();
320 m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
322 m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
324 m_sdbSizerButtons->Realize();
325
326 bMainSizer->Add( m_sdbSizerButtons, 0, wxEXPAND|wxALL, 5 );
327
328
329 this->SetSizer( bMainSizer );
330 this->Layout();
331 bMainSizer->Fit( this );
332
333 // Connect Events
334 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIELD_PROPERTIES_BASE::OnCloseDialog ) );
335 m_TextCtrl->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( DIALOG_FIELD_PROPERTIES_BASE::OnSetFocusText ), NULL, this );
336 m_StyledTextCtrl->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( DIALOG_FIELD_PROPERTIES_BASE::onMultiLineTCLostFocus ), NULL, this );
337 m_StyledTextCtrl->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( DIALOG_FIELD_PROPERTIES_BASE::OnSetFocusText ), NULL, this );
338 m_TextValueSelectButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELD_PROPERTIES_BASE::OnTextValueSelectButtonClick ), NULL, this );
339}
340
342{
343 // Disconnect Events
344 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FIELD_PROPERTIES_BASE::OnCloseDialog ) );
345 m_TextCtrl->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( DIALOG_FIELD_PROPERTIES_BASE::OnSetFocusText ), NULL, this );
346 m_StyledTextCtrl->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( DIALOG_FIELD_PROPERTIES_BASE::onMultiLineTCLostFocus ), NULL, this );
347 m_StyledTextCtrl->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( DIALOG_FIELD_PROPERTIES_BASE::OnSetFocusText ), NULL, this );
348 m_TextValueSelectButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FIELD_PROPERTIES_BASE::OnTextValueSelectButtonClick ), NULL, this );
349
350}
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 OnSetFocusText(wxFocusEvent &event)
DIALOG_FIELD_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Text Item Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnCloseDialog(wxCloseEvent &event)
wxStdDialogButtonSizer * m_sdbSizerButtons
virtual void onMultiLineTCLostFocus(wxFocusEvent &event)
virtual void OnTextValueSelectButtonClick(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.
#define _(s)