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