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