KiCad PCB EDA Suite
dialog_page_settings_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Nov 22 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_PAGES_SETTINGS_BASE::DIALOG_PAGES_SETTINGS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bUpperSizerH;
20  bUpperSizerH = new wxBoxSizer( wxHORIZONTAL );
21 
22  wxBoxSizer* bleftSizer;
23  bleftSizer = new wxBoxSizer( wxVERTICAL );
24 
25  m_staticTextPaper = new wxStaticText( this, wxID_ANY, _("Paper"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_staticTextPaper->Wrap( -1 );
27  bleftSizer->Add( m_staticTextPaper, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
28 
29  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
30  bleftSizer->Add( m_staticline2, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
31 
32  m_staticTextSize = new wxStaticText( this, wxID_ANY, _("Size:"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_staticTextSize->Wrap( -1 );
34  bleftSizer->Add( m_staticTextSize, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
35 
36  wxString m_paperSizeComboBoxChoices[] = { _("dummy text") };
37  int m_paperSizeComboBoxNChoices = sizeof( m_paperSizeComboBoxChoices ) / sizeof( wxString );
38  m_paperSizeComboBox = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_paperSizeComboBoxNChoices, m_paperSizeComboBoxChoices, 0 );
39  m_paperSizeComboBox->SetSelection( 0 );
40  bleftSizer->Add( m_paperSizeComboBox, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
41 
42  m_staticTextOrient = new wxStaticText( this, wxID_ANY, _("Orientation:"), wxDefaultPosition, wxDefaultSize, 0 );
43  m_staticTextOrient->Wrap( -1 );
44  bleftSizer->Add( m_staticTextOrient, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
45 
46  wxString m_orientationComboBoxChoices[] = { _("Landscape"), _("Portrait") };
47  int m_orientationComboBoxNChoices = sizeof( m_orientationComboBoxChoices ) / sizeof( wxString );
48  m_orientationComboBox = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_orientationComboBoxNChoices, m_orientationComboBoxChoices, 0 );
49  m_orientationComboBox->SetSelection( 0 );
50  bleftSizer->Add( m_orientationComboBox, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
51 
52  m_staticTextCustSize = new wxStaticText( this, wxID_ANY, _("Custom Size:"), wxDefaultPosition, wxDefaultSize, 0 );
53  m_staticTextCustSize->Wrap( -1 );
54  bleftSizer->Add( m_staticTextCustSize, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
55 
56  wxBoxSizer* bSizerCustSize;
57  bSizerCustSize = new wxBoxSizer( wxHORIZONTAL );
58 
59  wxBoxSizer* bSizercustHeight;
60  bSizercustHeight = new wxBoxSizer( wxVERTICAL );
61 
62  m_staticTextHeight = new wxStaticText( this, wxID_ANY, _("Height:"), wxDefaultPosition, wxDefaultSize, 0 );
63  m_staticTextHeight->Wrap( -1 );
64  bSizercustHeight->Add( m_staticTextHeight, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
65 
66  m_TextUserSizeY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_LEFT );
67  #ifdef __WXGTK__
68  if ( !m_TextUserSizeY->HasFlag( wxTE_MULTILINE ) )
69  {
70  m_TextUserSizeY->SetMaxLength( 6 );
71  }
72  #else
73  m_TextUserSizeY->SetMaxLength( 6 );
74  #endif
75  m_TextUserSizeY->SetToolTip( _("Custom paper height.") );
76 
77  bSizercustHeight->Add( m_TextUserSizeY, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
78 
79 
80  bSizerCustSize->Add( bSizercustHeight, 1, wxEXPAND, 5 );
81 
82  wxBoxSizer* bSizercustWidth;
83  bSizercustWidth = new wxBoxSizer( wxVERTICAL );
84 
85  m_staticTextWidth = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
86  m_staticTextWidth->Wrap( -1 );
87  bSizercustWidth->Add( m_staticTextWidth, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
88 
89  m_TextUserSizeX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_LEFT );
90  #ifdef __WXGTK__
91  if ( !m_TextUserSizeX->HasFlag( wxTE_MULTILINE ) )
92  {
93  m_TextUserSizeX->SetMaxLength( 6 );
94  }
95  #else
96  m_TextUserSizeX->SetMaxLength( 6 );
97  #endif
98  m_TextUserSizeX->SetToolTip( _("Custom paper width.") );
99 
100  bSizercustWidth->Add( m_TextUserSizeX, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
101 
102 
103  bSizerCustSize->Add( bSizercustWidth, 1, wxEXPAND, 5 );
104 
105 
106  bleftSizer->Add( bSizerCustSize, 0, wxEXPAND, 5 );
107 
108  m_staticTextPreview = new wxStaticText( this, wxID_ANY, _("Layout Preview"), wxDefaultPosition, wxDefaultSize, 0 );
109  m_staticTextPreview->Wrap( -1 );
110  bleftSizer->Add( m_staticTextPreview, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
111 
112  m_PageLayoutExampleBitmap = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxFULL_REPAINT_ON_RESIZE|wxSIMPLE_BORDER );
113  m_PageLayoutExampleBitmap->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
114  m_PageLayoutExampleBitmap->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
115 
116  bleftSizer->Add( m_PageLayoutExampleBitmap, 1, wxALL|wxEXPAND, 5 );
117 
118 
119  bUpperSizerH->Add( bleftSizer, 0, wxEXPAND, 5 );
120 
121  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
122  bUpperSizerH->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
123 
124  wxBoxSizer* bSizerRight;
125  bSizerRight = new wxBoxSizer( wxVERTICAL );
126 
127  m_staticTexttbprm = new wxStaticText( this, wxID_ANY, _("Title Block Parameters"), wxDefaultPosition, wxDefaultSize, 0 );
128  m_staticTexttbprm->Wrap( -1 );
129  bSizerRight->Add( m_staticTexttbprm, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
130 
131  m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
132  bSizerRight->Add( m_staticline3, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
133 
134  wxBoxSizer* SheetInfoSizer;
135  SheetInfoSizer = new wxBoxSizer( wxHORIZONTAL );
136 
137  m_TextSheetCount = new wxStaticText( this, wxID_ANY, _("Number of sheets: %d"), wxDefaultPosition, wxDefaultSize, 0 );
138  m_TextSheetCount->Wrap( -1 );
139  SheetInfoSizer->Add( m_TextSheetCount, 0, wxALL, 5 );
140 
141 
142  SheetInfoSizer->Add( 5, 5, 1, wxEXPAND, 5 );
143 
144  m_TextSheetNumber = new wxStaticText( this, wxID_ANY, _("Sheet number: %d"), wxDefaultPosition, wxDefaultSize, 0 );
145  m_TextSheetNumber->Wrap( -1 );
146  SheetInfoSizer->Add( m_TextSheetNumber, 0, wxALL, 5 );
147 
148 
149  bSizerRight->Add( SheetInfoSizer, 0, 0, 5 );
150 
151  wxBoxSizer* bSizerDate;
152  bSizerDate = new wxBoxSizer( wxVERTICAL );
153 
154  m_staticTextDate = new wxStaticText( this, wxID_ANY, _("Issue Date"), wxDefaultPosition, wxDefaultSize, 0 );
155  m_staticTextDate->Wrap( -1 );
156  bSizerDate->Add( m_staticTextDate, 0, wxRIGHT|wxLEFT, 5 );
157 
158  wxBoxSizer* bSizerissuedate;
159  bSizerissuedate = new wxBoxSizer( wxHORIZONTAL );
160 
161  m_TextDate = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
162  m_TextDate->SetMinSize( wxSize( 100,-1 ) );
163 
164  bSizerissuedate->Add( m_TextDate, 3, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
165 
166  m_ApplyDate = new wxButton( this, wxID_ANY, _("<<<"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
167  bSizerissuedate->Add( m_ApplyDate, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
168 
169  m_PickDate = new wxDatePickerCtrl( this, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT );
170  bSizerissuedate->Add( m_PickDate, 2, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
171 
172  m_DateExport = new wxCheckBox( this, wxID_ANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
173  bSizerissuedate->Add( m_DateExport, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
174 
175 
176  bSizerDate->Add( bSizerissuedate, 1, wxEXPAND, 5 );
177 
178 
179  bSizerRight->Add( bSizerDate, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
180 
181  wxBoxSizer* bSizerRev;
182  bSizerRev = new wxBoxSizer( wxVERTICAL );
183 
184  m_staticTextRev = new wxStaticText( this, wxID_ANY, _("Revision"), wxDefaultPosition, wxDefaultSize, 0 );
185  m_staticTextRev->Wrap( -1 );
186  bSizerRev->Add( m_staticTextRev, 0, wxRIGHT|wxLEFT, 5 );
187 
188  wxBoxSizer* bSizer9;
189  bSizer9 = new wxBoxSizer( wxHORIZONTAL );
190 
191  m_TextRevision = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
192  m_TextRevision->SetMinSize( wxSize( 100,-1 ) );
193 
194  bSizer9->Add( m_TextRevision, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
195 
196  m_RevisionExport = new wxCheckBox( this, wxID_ANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
197  bSizer9->Add( m_RevisionExport, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
198 
199 
200  bSizerRev->Add( bSizer9, 1, wxEXPAND, 5 );
201 
202 
203  bSizerRight->Add( bSizerRev, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
204 
205  wxBoxSizer* bSizerTitle;
206  bSizerTitle = new wxBoxSizer( wxVERTICAL );
207 
208  m_staticTextTitle = new wxStaticText( this, wxID_ANY, _("Title"), wxDefaultPosition, wxDefaultSize, 0 );
209  m_staticTextTitle->Wrap( -1 );
210  bSizerTitle->Add( m_staticTextTitle, 0, wxRIGHT|wxLEFT, 5 );
211 
212  wxBoxSizer* bSizer12;
213  bSizer12 = new wxBoxSizer( wxHORIZONTAL );
214 
215  m_TextTitle = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
216  m_TextTitle->SetMinSize( wxSize( 360,-1 ) );
217 
218  bSizer12->Add( m_TextTitle, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
219 
220  m_TitleExport = new wxCheckBox( this, wxID_ANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
221  bSizer12->Add( m_TitleExport, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
222 
223 
224  bSizerTitle->Add( bSizer12, 1, wxEXPAND, 5 );
225 
226 
227  bSizerRight->Add( bSizerTitle, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
228 
229  wxBoxSizer* bSizerCompany;
230  bSizerCompany = new wxBoxSizer( wxVERTICAL );
231 
232  m_staticText13 = new wxStaticText( this, wxID_ANY, _("Company"), wxDefaultPosition, wxDefaultSize, 0 );
233  m_staticText13->Wrap( -1 );
234  bSizerCompany->Add( m_staticText13, 0, wxRIGHT|wxLEFT, 5 );
235 
236  wxBoxSizer* bSizer14;
237  bSizer14 = new wxBoxSizer( wxHORIZONTAL );
238 
239  m_TextCompany = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
240  m_TextCompany->SetMinSize( wxSize( 360,-1 ) );
241 
242  bSizer14->Add( m_TextCompany, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
243 
244  m_CompanyExport = new wxCheckBox( this, wxID_ANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
245  bSizer14->Add( m_CompanyExport, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
246 
247 
248  bSizerCompany->Add( bSizer14, 1, wxEXPAND, 5 );
249 
250 
251  bSizerRight->Add( bSizerCompany, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
252 
253  wxBoxSizer* bSizerComment1;
254  bSizerComment1 = new wxBoxSizer( wxVERTICAL );
255 
256  m_staticTextComment1 = new wxStaticText( this, wxID_ANY, _("Comment1"), wxDefaultPosition, wxDefaultSize, 0 );
257  m_staticTextComment1->Wrap( -1 );
258  bSizerComment1->Add( m_staticTextComment1, 0, wxRIGHT|wxLEFT, 5 );
259 
260  wxBoxSizer* bSizercmt1;
261  bSizercmt1 = new wxBoxSizer( wxHORIZONTAL );
262 
263  m_TextComment1 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
264  m_TextComment1->SetMinSize( wxSize( 360,-1 ) );
265 
266  bSizercmt1->Add( m_TextComment1, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
267 
268  m_Comment1Export = new wxCheckBox( this, wxID_ANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
269  bSizercmt1->Add( m_Comment1Export, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
270 
271 
272  bSizerComment1->Add( bSizercmt1, 1, wxEXPAND, 5 );
273 
274 
275  bSizerRight->Add( bSizerComment1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
276 
277  wxBoxSizer* bSizerComment2;
278  bSizerComment2 = new wxBoxSizer( wxVERTICAL );
279 
280  m_staticTextComment2 = new wxStaticText( this, wxID_ANY, _("Comment2"), wxDefaultPosition, wxDefaultSize, 0 );
281  m_staticTextComment2->Wrap( -1 );
282  bSizerComment2->Add( m_staticTextComment2, 0, wxRIGHT|wxLEFT, 5 );
283 
284  wxBoxSizer* bSizercmt2;
285  bSizercmt2 = new wxBoxSizer( wxHORIZONTAL );
286 
287  m_TextComment2 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
288  m_TextComment2->SetMinSize( wxSize( 360,-1 ) );
289 
290  bSizercmt2->Add( m_TextComment2, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
291 
292  m_Comment2Export = new wxCheckBox( this, wxID_ANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
293  bSizercmt2->Add( m_Comment2Export, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
294 
295 
296  bSizerComment2->Add( bSizercmt2, 1, wxEXPAND, 5 );
297 
298 
299  bSizerRight->Add( bSizerComment2, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
300 
301  wxBoxSizer* bSizerComment12;
302  bSizerComment12 = new wxBoxSizer( wxVERTICAL );
303 
304  m_staticTextComment3 = new wxStaticText( this, wxID_ANY, _("Comment3"), wxDefaultPosition, wxDefaultSize, 0 );
305  m_staticTextComment3->Wrap( -1 );
306  bSizerComment12->Add( m_staticTextComment3, 0, wxRIGHT|wxLEFT, 5 );
307 
308  wxBoxSizer* bSizercmt3;
309  bSizercmt3 = new wxBoxSizer( wxHORIZONTAL );
310 
311  m_TextComment3 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
312  m_TextComment3->SetMinSize( wxSize( 360,-1 ) );
313 
314  bSizercmt3->Add( m_TextComment3, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
315 
316  m_Comment3Export = new wxCheckBox( this, wxID_ANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
317  bSizercmt3->Add( m_Comment3Export, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
318 
319 
320  bSizerComment12->Add( bSizercmt3, 1, wxEXPAND, 5 );
321 
322 
323  bSizerRight->Add( bSizerComment12, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
324 
325  wxBoxSizer* bSizerComment4;
326  bSizerComment4 = new wxBoxSizer( wxVERTICAL );
327 
328  m_staticTextComment4 = new wxStaticText( this, wxID_ANY, _("Comment4"), wxDefaultPosition, wxDefaultSize, 0 );
329  m_staticTextComment4->Wrap( -1 );
330  bSizerComment4->Add( m_staticTextComment4, 0, wxRIGHT|wxLEFT, 5 );
331 
332  wxBoxSizer* bSizercmt4;
333  bSizercmt4 = new wxBoxSizer( wxHORIZONTAL );
334 
335  m_TextComment4 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
336  m_TextComment4->SetMinSize( wxSize( 360,-1 ) );
337 
338  bSizercmt4->Add( m_TextComment4, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
339 
340  m_Comment4Export = new wxCheckBox( this, wxID_ANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
341  bSizercmt4->Add( m_Comment4Export, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
342 
343 
344  bSizerComment4->Add( bSizercmt4, 1, wxEXPAND, 5 );
345 
346 
347  bSizerRight->Add( bSizerComment4, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
348 
349  wxBoxSizer* bSizerFilename;
350  bSizerFilename = new wxBoxSizer( wxVERTICAL );
351 
352  m_staticTextfilename = new wxStaticText( this, wxID_ANY, _("Page layout description file"), wxDefaultPosition, wxDefaultSize, 0 );
353  m_staticTextfilename->Wrap( -1 );
354  bSizerFilename->Add( m_staticTextfilename, 0, wxRIGHT|wxLEFT, 5 );
355 
356  wxBoxSizer* bSizerfileSelection;
357  bSizerfileSelection = new wxBoxSizer( wxHORIZONTAL );
358 
359  m_textCtrlFilePicker = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
360  bSizerfileSelection->Add( m_textCtrlFilePicker, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
361 
362  m_buttonBrowse = new wxButton( this, wxID_ANY, _("Browse"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
363  bSizerfileSelection->Add( m_buttonBrowse, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
364 
365 
366  bSizerFilename->Add( bSizerfileSelection, 1, wxEXPAND, 5 );
367 
368 
369  bSizerRight->Add( bSizerFilename, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
370 
371 
372  bUpperSizerH->Add( bSizerRight, 1, wxEXPAND, 5 );
373 
374 
375  bMainSizer->Add( bUpperSizerH, 1, wxEXPAND, 5 );
376 
377  m_sdbSizer = new wxStdDialogButtonSizer();
378  m_sdbSizerOK = new wxButton( this, wxID_OK );
379  m_sdbSizer->AddButton( m_sdbSizerOK );
380  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
381  m_sdbSizer->AddButton( m_sdbSizerCancel );
382  m_sdbSizer->Realize();
383 
384  bMainSizer->Add( m_sdbSizer, 0, wxALIGN_RIGHT|wxALL, 5 );
385 
386 
387  this->SetSizer( bMainSizer );
388  this->Layout();
389  bMainSizer->Fit( this );
390 
391  // Connect Events
392  m_paperSizeComboBox->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnPaperSizeChoice ), NULL, this );
393  m_orientationComboBox->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnPageOrientationChoice ), NULL, this );
394  m_TextUserSizeY->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnUserPageSizeYTextUpdated ), NULL, this );
395  m_TextUserSizeX->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnUserPageSizeXTextUpdated ), NULL, this );
396  m_TextDate->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnDateTextUpdated ), NULL, this );
397  m_ApplyDate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnDateApplyClick ), NULL, this );
398  m_TextRevision->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnRevisionTextUpdated ), NULL, this );
399  m_TextTitle->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnTitleTextUpdated ), NULL, this );
400  m_TitleExport->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCheckboxTitleClick ), NULL, this );
401  m_TextCompany->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCompanyTextUpdated ), NULL, this );
402  m_TextComment1->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnComment1TextUpdated ), NULL, this );
403  m_TextComment2->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnComment2TextUpdated ), NULL, this );
404  m_TextComment3->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnComment3TextUpdated ), NULL, this );
405  m_TextComment4->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnComment4TextUpdated ), NULL, this );
406  m_buttonBrowse->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnWksFileSelection ), NULL, this );
407  m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnOkClick ), NULL, this );
408 }
409 
411 {
412  // Disconnect Events
413  m_paperSizeComboBox->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnPaperSizeChoice ), NULL, this );
414  m_orientationComboBox->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnPageOrientationChoice ), NULL, this );
415  m_TextUserSizeY->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnUserPageSizeYTextUpdated ), NULL, this );
416  m_TextUserSizeX->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnUserPageSizeXTextUpdated ), NULL, this );
417  m_TextDate->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnDateTextUpdated ), NULL, this );
418  m_ApplyDate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnDateApplyClick ), NULL, this );
419  m_TextRevision->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnRevisionTextUpdated ), NULL, this );
420  m_TextTitle->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnTitleTextUpdated ), NULL, this );
421  m_TitleExport->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCheckboxTitleClick ), NULL, this );
422  m_TextCompany->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCompanyTextUpdated ), NULL, this );
423  m_TextComment1->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnComment1TextUpdated ), NULL, this );
424  m_TextComment2->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnComment2TextUpdated ), NULL, this );
425  m_TextComment3->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnComment3TextUpdated ), NULL, this );
426  m_TextComment4->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnComment4TextUpdated ), NULL, this );
427  m_buttonBrowse->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnWksFileSelection ), NULL, this );
428  m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnOkClick ), NULL, this );
429 
430 }
virtual void OnDateApplyClick(wxCommandEvent &event)
virtual void OnPaperSizeChoice(wxCommandEvent &event)
DIALOG_PAGES_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Page Settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:70
virtual void OnComment1TextUpdated(wxCommandEvent &event)
virtual void OnOkClick(wxCommandEvent &event)
virtual void OnWksFileSelection(wxCommandEvent &event)
virtual void OnPageOrientationChoice(wxCommandEvent &event)
virtual void OnTitleTextUpdated(wxCommandEvent &event)
virtual void OnComment2TextUpdated(wxCommandEvent &event)
virtual void OnRevisionTextUpdated(wxCommandEvent &event)
virtual void OnComment3TextUpdated(wxCommandEvent &event)
virtual void OnDateTextUpdated(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnCheckboxTitleClick(wxCommandEvent &event)
virtual void OnUserPageSizeYTextUpdated(wxCommandEvent &event)
virtual void OnCompanyTextUpdated(wxCommandEvent &event)
virtual void OnUserPageSizeXTextUpdated(wxCommandEvent &event)
virtual void OnComment4TextUpdated(wxCommandEvent &event)