KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
eeschema/dialogs/dialog_tablecell_properties_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10#include "widgets/font_choice.h"
11#include "widgets/wx_infobar.h"
12
14
16
17DIALOG_TABLECELL_PROPERTIES_BASE::DIALOG_TABLECELL_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 m_infoBar = new WX_INFOBAR( this );
25 m_infoBar->SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
26 m_infoBar->SetEffectDuration( 500 );
27 m_infoBar->Hide();
28
29 bMainSizer->Add( m_infoBar, 0, wxEXPAND|wxBOTTOM, 5 );
30
31 wxBoxSizer* bSizer151;
32 bSizer151 = new wxBoxSizer( wxVERTICAL );
33
34 wxBoxSizer* bSizer16;
35 bSizer16 = new wxBoxSizer( wxHORIZONTAL );
36
37 wxBoxSizer* bSizer18;
38 bSizer18 = new wxBoxSizer( wxVERTICAL );
39
40 m_cellTextLabel = new wxStaticText( this, wxID_ANY, _("Cell contents:"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_cellTextLabel->Wrap( -1 );
42 bSizer18->Add( m_cellTextLabel, 0, wxALL, 5 );
43
44 m_cellTextCtrl = new wxStyledTextCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN, wxEmptyString );
45 m_cellTextCtrl->SetUseTabs( false );
46 m_cellTextCtrl->SetTabWidth( 4 );
47 m_cellTextCtrl->SetIndent( 4 );
48 m_cellTextCtrl->SetTabIndents( false );
49 m_cellTextCtrl->SetBackSpaceUnIndents( false );
50 m_cellTextCtrl->SetViewEOL( false );
51 m_cellTextCtrl->SetViewWhiteSpace( false );
52 m_cellTextCtrl->SetMarginWidth( 2, 0 );
53 m_cellTextCtrl->SetIndentationGuides( false );
54 m_cellTextCtrl->SetReadOnly( false );
55 m_cellTextCtrl->SetMarginWidth( 1, 0 );
56 m_cellTextCtrl->SetMarginWidth( 0, 0 );
57 {
58 wxFont font = wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString );
59 m_cellTextCtrl->StyleSetFont( wxSTC_STYLE_DEFAULT, font );
60 }
61 m_cellTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDER, wxSTC_MARK_BOXPLUS );
62 m_cellTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("BLACK") ) );
63 m_cellTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("WHITE") ) );
64 m_cellTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_BOXMINUS );
65 m_cellTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("BLACK") ) );
66 m_cellTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("WHITE") ) );
67 m_cellTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_EMPTY );
68 m_cellTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_BOXPLUS );
69 m_cellTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("BLACK") ) );
70 m_cellTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("WHITE") ) );
71 m_cellTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_BOXMINUS );
72 m_cellTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("BLACK") ) );
73 m_cellTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("WHITE") ) );
74 m_cellTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_EMPTY );
75 m_cellTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_EMPTY );
76 m_cellTextCtrl->SetSelBackground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
77 m_cellTextCtrl->SetSelForeground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
78 m_cellTextCtrl->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
79 m_cellTextCtrl->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
80 m_cellTextCtrl->SetMinSize( wxSize( 200,100 ) );
81
82 bSizer18->Add( m_cellTextCtrl, 1, wxEXPAND | wxALL, 5 );
83
84
85 bSizer16->Add( bSizer18, 1, wxEXPAND|wxRIGHT, 10 );
86
87 wxBoxSizer* bSizer17;
88 bSizer17 = new wxBoxSizer( wxVERTICAL );
89
90 wxBoxSizer* bSizer13;
91 bSizer13 = new wxBoxSizer( wxVERTICAL );
92
93
94 bSizer13->Add( 0, 20, 0, 0, 5 );
95
96 wxFlexGridSizer* fgTextStyleSizer;
97 fgTextStyleSizer = new wxFlexGridSizer( 0, 2, 5, 5 );
98 fgTextStyleSizer->SetFlexibleDirection( wxBOTH );
99 fgTextStyleSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
100
101 wxStaticText* hAlignLabel;
102 hAlignLabel = new wxStaticText( this, wxID_ANY, _("Horizontal alignment:"), wxDefaultPosition, wxDefaultSize, 0 );
103 hAlignLabel->Wrap( -1 );
104 hAlignLabel->SetToolTip( _("Horizontal alignment") );
105
106 fgTextStyleSizer->Add( hAlignLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
107
108 wxBoxSizer* hAlignButtons;
109 hAlignButtons = new wxBoxSizer( wxHORIZONTAL );
110
111 m_hAlignLeft = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
112 m_hAlignLeft->SetToolTip( _("Align left") );
113
114 hAlignButtons->Add( m_hAlignLeft, 0, wxALIGN_CENTER_VERTICAL, 5 );
115
116 m_hAlignCenter = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
117 m_hAlignCenter->SetToolTip( _("Align horizontal center") );
118
119 hAlignButtons->Add( m_hAlignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
120
121 m_hAlignRight = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
122 m_hAlignRight->SetToolTip( _("Align right") );
123
124 hAlignButtons->Add( m_hAlignRight, 0, wxALIGN_CENTER_VERTICAL, 5 );
125
126
127 fgTextStyleSizer->Add( hAlignButtons, 0, wxALIGN_CENTER_VERTICAL, 5 );
128
129 vAlignLabel = new wxStaticText( this, wxID_ANY, _("Vertical alignment:"), wxDefaultPosition, wxDefaultSize, 0 );
130 vAlignLabel->Wrap( -1 );
131 vAlignLabel->SetToolTip( _("Vertical alignment") );
132
133 fgTextStyleSizer->Add( vAlignLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
134
135 wxBoxSizer* vAlignButtons;
136 vAlignButtons = new wxBoxSizer( wxHORIZONTAL );
137
138 m_vAlignTop = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
139 m_vAlignTop->SetToolTip( _("Align top") );
140
141 vAlignButtons->Add( m_vAlignTop, 0, wxALIGN_CENTER_VERTICAL, 5 );
142
143 m_vAlignCenter = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
144 m_vAlignCenter->SetToolTip( _("Align vertical center") );
145
146 vAlignButtons->Add( m_vAlignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
147
148 m_vAlignBottom = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
149 m_vAlignBottom->SetToolTip( _("Align bottom") );
150
151 vAlignButtons->Add( m_vAlignBottom, 0, wxALIGN_CENTER_VERTICAL, 5 );
152
153
154 fgTextStyleSizer->Add( vAlignButtons, 0, wxALIGN_CENTER_VERTICAL, 5 );
155
156
157 bSizer13->Add( fgTextStyleSizer, 0, wxEXPAND, 5 );
158
159 wxBoxSizer* bMargins;
160 bMargins = new wxBoxSizer( wxVERTICAL );
161
162
163 bMargins->Add( 0, 10, 0, wxEXPAND, 5 );
164
165 wxGridBagSizer* gbFontSizer;
166 gbFontSizer = new wxGridBagSizer( 6, 5 );
167 gbFontSizer->SetFlexibleDirection( wxBOTH );
168 gbFontSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
169 gbFontSizer->SetEmptyCellSize( wxSize( -1,5 ) );
170
171 m_styleLabel = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
172 m_styleLabel->Wrap( -1 );
173 gbFontSizer->Add( m_styleLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP, 1 );
174
175 wxBoxSizer* bSizer14;
176 bSizer14 = new wxBoxSizer( wxHORIZONTAL );
177
178 m_bold = new wxCheckBox( this, wxID_ANY, _("Bold"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER );
179 bSizer14->Add( m_bold, 0, wxALIGN_CENTER_VERTICAL, 5 );
180
181 m_italic = new wxCheckBox( this, wxID_ANY, _("Italic"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER );
182 bSizer14->Add( m_italic, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 45 );
183
184
185 gbFontSizer->Add( bSizer14, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxTOP, 1 );
186
187 m_fontLabel = new wxStaticText( this, wxID_ANY, _("Font:"), wxDefaultPosition, wxDefaultSize, 0 );
188 m_fontLabel->Wrap( -1 );
189 gbFontSizer->Add( m_fontLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 1 );
190
191 wxString m_fontCtrlChoices[] = { _("Default Font"), _("KiCad Font") };
192 int m_fontCtrlNChoices = sizeof( m_fontCtrlChoices ) / sizeof( wxString );
193 m_fontCtrl = new FONT_CHOICE( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fontCtrlNChoices, m_fontCtrlChoices, 0 );
194 m_fontCtrl->SetSelection( 0 );
195 gbFontSizer->Add( m_fontCtrl, wxGBPosition( 1, 1 ), wxGBSpan( 1, 3 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
196
197 m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Size:"), wxDefaultPosition, wxDefaultSize, 0 );
198 m_textSizeLabel->Wrap( -1 );
199 gbFontSizer->Add( m_textSizeLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
200
201 wxBoxSizer* bSizer15;
202 bSizer15 = new wxBoxSizer( wxHORIZONTAL );
203
204 m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
205 bSizer15->Add( m_textSizeCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
206
207 m_textSizeUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
208 m_textSizeUnits->Wrap( -1 );
209 bSizer15->Add( m_textSizeUnits, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 3 );
210
211
212 gbFontSizer->Add( bSizer15, wxGBPosition( 2, 1 ), wxGBSpan( 1, 3 ), wxALIGN_CENTER_VERTICAL, 5 );
213
214
215 gbFontSizer->AddGrowableCol( 1 );
216
217 bMargins->Add( gbFontSizer, 0, wxEXPAND|wxBOTTOM, 5 );
218
219 wxFlexGridSizer* fgColorSizer;
220 fgColorSizer = new wxFlexGridSizer( 0, 2, 4, 5 );
221 fgColorSizer->SetFlexibleDirection( wxBOTH );
222 fgColorSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
223
224 m_textColorLabel = new wxStaticText( this, wxID_ANY, _("Text color:"), wxDefaultPosition, wxDefaultSize, 0 );
225 m_textColorLabel->Wrap( -1 );
226 fgColorSizer->Add( m_textColorLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
227
228 m_textColorBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
229 wxPanel* textColorPopupPanel;
230 textColorPopupPanel = new wxPanel( m_textColorBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
231 wxBoxSizer* bSizer20;
232 bSizer20 = new wxBoxSizer( wxVERTICAL );
233
234 wxString m_textColorPopupChoices[] = { _("-- mixed values --"), _("Set Color...") };
235 int m_textColorPopupNChoices = sizeof( m_textColorPopupChoices ) / sizeof( wxString );
236 m_textColorPopup = new wxChoice( textColorPopupPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_textColorPopupNChoices, m_textColorPopupChoices, 0 );
237 m_textColorPopup->SetSelection( 0 );
238 bSizer20->Add( m_textColorPopup, 0, 0, 5 );
239
240
241 textColorPopupPanel->SetSizer( bSizer20 );
242 textColorPopupPanel->Layout();
243 bSizer20->Fit( textColorPopupPanel );
244 m_textColorBook->AddPage( textColorPopupPanel, _("a page"), false );
245 textColorSwatchPanel = new wxPanel( m_textColorBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
246 wxBoxSizer* bSizer222;
247 bSizer222 = new wxBoxSizer( wxHORIZONTAL );
248
249 m_panelTextColor = new wxPanel( textColorSwatchPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
250 wxBoxSizer* bSizer221;
251 bSizer221 = new wxBoxSizer( wxVERTICAL );
252
253 m_textColorSwatch = new COLOR_SWATCH( m_panelTextColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
254 bSizer221->Add( m_textColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
255
256
257 m_panelTextColor->SetSizer( bSizer221 );
258 m_panelTextColor->Layout();
259 bSizer221->Fit( m_panelTextColor );
260 bSizer222->Add( m_panelTextColor, 0, wxALIGN_CENTER_VERTICAL, 5 );
261
262
263 textColorSwatchPanel->SetSizer( bSizer222 );
264 textColorSwatchPanel->Layout();
265 bSizer222->Fit( textColorSwatchPanel );
266 m_textColorBook->AddPage( textColorSwatchPanel, _("a page"), false );
267
268 fgColorSizer->Add( m_textColorBook, 0, wxALIGN_CENTER_VERTICAL, 5 );
269
270 m_fillColorLabel = new wxStaticText( this, wxID_ANY, _("Background fill:"), wxDefaultPosition, wxDefaultSize, 0 );
271 m_fillColorLabel->Wrap( -1 );
272 fgColorSizer->Add( m_fillColorLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
273
274 m_fillColorBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
275 wxPanel* fillColorPopupPanel;
276 fillColorPopupPanel = new wxPanel( m_fillColorBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
277 wxBoxSizer* bSizer211;
278 bSizer211 = new wxBoxSizer( wxVERTICAL );
279
280 wxString m_fillColorPopupChoices[] = { _("-- mixed values --"), _("Set Color...") };
281 int m_fillColorPopupNChoices = sizeof( m_fillColorPopupChoices ) / sizeof( wxString );
282 m_fillColorPopup = new wxChoice( fillColorPopupPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fillColorPopupNChoices, m_fillColorPopupChoices, 0 );
283 m_fillColorPopup->SetSelection( 0 );
284 bSizer211->Add( m_fillColorPopup, 0, 0, 5 );
285
286
287 fillColorPopupPanel->SetSizer( bSizer211 );
288 fillColorPopupPanel->Layout();
289 bSizer211->Fit( fillColorPopupPanel );
290 m_fillColorBook->AddPage( fillColorPopupPanel, _("a page"), false );
291 fillColorSwatchPanel = new wxPanel( m_fillColorBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
292 wxBoxSizer* bSizer23;
293 bSizer23 = new wxBoxSizer( wxHORIZONTAL );
294
295 m_panelFillColor = new wxPanel( fillColorSwatchPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
296 wxBoxSizer* bSizer22;
297 bSizer22 = new wxBoxSizer( wxVERTICAL );
298
299 m_fillColorSwatch = new COLOR_SWATCH( m_panelFillColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
300 bSizer22->Add( m_fillColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
301
302
303 m_panelFillColor->SetSizer( bSizer22 );
304 m_panelFillColor->Layout();
305 bSizer22->Fit( m_panelFillColor );
306 bSizer23->Add( m_panelFillColor, 0, wxALIGN_CENTER_VERTICAL, 5 );
307
308
309 fillColorSwatchPanel->SetSizer( bSizer23 );
310 fillColorSwatchPanel->Layout();
311 bSizer23->Fit( fillColorSwatchPanel );
312 m_fillColorBook->AddPage( fillColorSwatchPanel, _("a page"), false );
313
314 fgColorSizer->Add( m_fillColorBook, 0, wxALIGN_CENTER_VERTICAL, 5 );
315
316
317 bMargins->Add( fgColorSizer, 0, wxEXPAND|wxTOP|wxBOTTOM, 20 );
318
319
320 bMargins->Add( 0, 5, 0, wxEXPAND, 5 );
321
322 wxGridSizer* gMarginsSizer;
323 gMarginsSizer = new wxGridSizer( 0, 3, 4, 2 );
324
325 wxStaticText* marginsLabel;
326 marginsLabel = new wxStaticText( this, wxID_ANY, _("Cell margins:"), wxDefaultPosition, wxDefaultSize, 0 );
327 marginsLabel->Wrap( -1 );
328 gMarginsSizer->Add( marginsLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
329
330 m_marginTopCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
331 gMarginsSizer->Add( m_marginTopCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
332
333 m_marginTopUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
334 m_marginTopUnits->Wrap( -1 );
335 gMarginsSizer->Add( m_marginTopUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 2 );
336
337 m_marginLeftCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
338 gMarginsSizer->Add( m_marginLeftCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
339
340
341 gMarginsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
342
343 m_marginRightCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
344 gMarginsSizer->Add( m_marginRightCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
345
346
347 gMarginsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
348
349 m_marginBottomCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
350 gMarginsSizer->Add( m_marginBottomCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
351
352
353 bMargins->Add( gMarginsSizer, 0, wxEXPAND, 5 );
354
355
356 bSizer13->Add( bMargins, 1, wxEXPAND|wxALL, 5 );
357
358
359 bSizer17->Add( bSizer13, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
360
361
362 bSizer16->Add( bSizer17, 1, wxEXPAND|wxLEFT, 5 );
363
364
365 bSizer151->Add( bSizer16, 1, wxEXPAND, 5 );
366
367
368 bMainSizer->Add( bSizer151, 1, wxEXPAND|wxLEFT, 5 );
369
370 wxBoxSizer* bButtons;
371 bButtons = new wxBoxSizer( wxHORIZONTAL );
372
373 m_editTable = new wxButton( this, wxID_ANY, _("Edit Table..."), wxDefaultPosition, wxDefaultSize, 0 );
374 m_editTable->SetToolTip( _("Edit table properties and cell contents") );
375
376 bButtons->Add( m_editTable, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 10 );
377
378
379 bButtons->Add( 0, 0, 1, wxEXPAND, 5 );
380
381 m_sdbSizer1 = new wxStdDialogButtonSizer();
382 m_sdbSizer1OK = new wxButton( this, wxID_OK );
383 m_sdbSizer1->AddButton( m_sdbSizer1OK );
384 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
385 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
386 m_sdbSizer1->Realize();
387
388 bButtons->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
389
390
391 bMainSizer->Add( bButtons, 0, wxEXPAND, 5 );
392
393
394 this->SetSizer( bMainSizer );
395 this->Layout();
396 bMainSizer->Fit( this );
397
398 // Connect Events
399 this->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onMultiLineTCLostFocus ) );
400 m_textColorPopup->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onTextColorPopup ), NULL, this );
401 m_fillColorPopup->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onFillColorPopup ), NULL, this );
402 m_editTable->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onEditTable ), NULL, this );
403}
404
406{
407 // Disconnect Events
408 this->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onMultiLineTCLostFocus ) );
409 m_textColorPopup->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onTextColorPopup ), NULL, this );
410 m_fillColorPopup->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onFillColorPopup ), NULL, this );
411 m_editTable->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TABLECELL_PROPERTIES_BASE::onEditTable ), NULL, this );
412
413}
A bitmap button widget that behaves like an AUI toolbar item's button when it is drawn.
Definition: bitmap_button.h:42
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:52
DIALOG_TABLECELL_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Table Cell Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
A modified version of the wxInfoBar class that allows us to:
Definition: wx_infobar.h:76
#define _(s)