KiCad PCB EDA Suite
dialog_print_using_printer_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_PRINT_USING_PRINTER_BASE::DIALOG_PRINT_USING_PRINTER_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( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bleftSizer;
20  bleftSizer = new wxBoxSizer( wxVERTICAL );
21 
22  m_checkReference = new wxCheckBox( this, wxID_ANY, _("Print sheet &reference and title block"), wxDefaultPosition, wxDefaultSize, 0 );
23  m_checkReference->SetValue(true);
24  m_checkReference->SetToolTip( _("Print (or not) the Frame references.") );
25 
26  bleftSizer->Add( m_checkReference, 0, wxALL, 5 );
27 
28  m_checkMonochrome = new wxCheckBox( this, wxID_ANY, _("Print in &black and white only"), wxDefaultPosition, wxDefaultSize, 0 );
29  m_checkMonochrome->SetValue(true);
30  bleftSizer->Add( m_checkMonochrome, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
31 
32 
33  bMainSizer->Add( bleftSizer, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 10 );
34 
35  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
36  bMainSizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
37 
38  wxBoxSizer* bbuttonsSizer;
39  bbuttonsSizer = new wxBoxSizer( wxHORIZONTAL );
40 
41  m_buttonPageSetup = new wxButton( this, wxID_ANY, _("Page Setup..."), wxDefaultPosition, wxDefaultSize, 0 );
42  bbuttonsSizer->Add( m_buttonPageSetup, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
43 
44 
45  bbuttonsSizer->Add( 40, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
46 
47  m_sdbSizer1 = new wxStdDialogButtonSizer();
48  m_sdbSizer1OK = new wxButton( this, wxID_OK );
49  m_sdbSizer1->AddButton( m_sdbSizer1OK );
50  m_sdbSizer1Apply = new wxButton( this, wxID_APPLY );
51  m_sdbSizer1->AddButton( m_sdbSizer1Apply );
52  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
53  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
54  m_sdbSizer1->Realize();
55 
56  bbuttonsSizer->Add( m_sdbSizer1, 0, wxALL, 5 );
57 
58 
59  bMainSizer->Add( bbuttonsSizer, 0, wxEXPAND|wxLEFT, 10 );
60 
61 
62  this->SetSizer( bMainSizer );
63  this->Layout();
64  bMainSizer->Fit( this );
65 
66  // Connect Events
67  this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
68  m_buttonPageSetup->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
69  m_sdbSizer1Apply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
70 }
71 
73 {
74  // Disconnect Events
75  this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
76  m_buttonPageSetup->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
77  m_sdbSizer1Apply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
78 
79 }
virtual void OnPageSetup(wxCommandEvent &event)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
DIALOG_PRINT_USING_PRINTER_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Print"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnCloseWindow(wxCloseEvent &event)
virtual void OnPrintPreview(wxCommandEvent &event)