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