KiCad PCB EDA Suite
dialog_print_using_printer_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Oct 26 2018)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_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, wxALL, 5 );
31
32 m_checkBackgroundColor = new wxCheckBox( this, wxID_ANY, _("Print background color"), wxDefaultPosition, wxDefaultSize, 0 );
33 bleftSizer->Add( m_checkBackgroundColor, 0, wxALL, 5 );
34
35 m_checkUseColorTheme = new wxCheckBox( this, wxID_ANY, _("Use a different color theme for printing:"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_checkUseColorTheme->SetValue(true);
37 bleftSizer->Add( m_checkUseColorTheme, 0, wxALL, 5 );
38
39 wxBoxSizer* bSizer4;
40 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
41
42 wxArrayString m_colorThemeChoices;
43 m_colorTheme = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_colorThemeChoices, 0 );
44 m_colorTheme->SetSelection( 0 );
45 m_colorTheme->Enable( false );
46 m_colorTheme->SetMinSize( wxSize( 200,-1 ) );
47
48 bSizer4->Add( m_colorTheme, 0, wxLEFT, 25 );
49
50
51 bleftSizer->Add( bSizer4, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
52
53
54 bMainSizer->Add( bleftSizer, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 10 );
55
56 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
57 bMainSizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
58
59 wxBoxSizer* bbuttonsSizer;
60 bbuttonsSizer = new wxBoxSizer( wxHORIZONTAL );
61
62 m_buttonPageSetup = new wxButton( this, wxID_ANY, _("Page Setup..."), wxDefaultPosition, wxDefaultSize, 0 );
63 bbuttonsSizer->Add( m_buttonPageSetup, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
64
65
66 bbuttonsSizer->Add( 40, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
67
68 m_sdbSizer1 = new wxStdDialogButtonSizer();
69 m_sdbSizer1OK = new wxButton( this, wxID_OK );
70 m_sdbSizer1->AddButton( m_sdbSizer1OK );
71 m_sdbSizer1Apply = new wxButton( this, wxID_APPLY );
72 m_sdbSizer1->AddButton( m_sdbSizer1Apply );
73 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
74 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
75 m_sdbSizer1->Realize();
76
77 bbuttonsSizer->Add( m_sdbSizer1, 0, wxALL, 5 );
78
79
80 bMainSizer->Add( bbuttonsSizer, 0, wxEXPAND|wxLEFT, 10 );
81
82
83 this->SetSizer( bMainSizer );
84 this->Layout();
85 bMainSizer->Fit( this );
86
87 // Connect Events
88 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
89 m_checkMonochrome->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnMonochromeChecked ), NULL, this );
90 m_checkUseColorTheme->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnUseColorThemeChecked ), NULL, this );
91 m_buttonPageSetup->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
92 m_sdbSizer1Apply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
93}
94
96{
97 // Disconnect Events
98 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
99 m_checkMonochrome->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnMonochromeChecked ), NULL, this );
100 m_checkUseColorTheme->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnUseColorThemeChecked ), NULL, this );
101 m_buttonPageSetup->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
102 m_sdbSizer1Apply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
103
104}
virtual void OnMonochromeChecked(wxCommandEvent &event)
virtual void OnUseColorThemeChecked(wxCommandEvent &event)
virtual void OnPageSetup(wxCommandEvent &event)
virtual void OnCloseWindow(wxCloseEvent &event)
virtual void OnPrintPreview(wxCommandEvent &event)
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)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define _(s)