KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_print_using_printer_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.0-39-g3487c3cb)
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 drawing sheet"), 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 wxBoxSizer* bSizerOttputMode;
29 bSizerOttputMode = new wxBoxSizer( wxHORIZONTAL );
30
31 m_staticText1 = new wxStaticText( this, wxID_ANY, _("Output mode:"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_staticText1->Wrap( -1 );
33 bSizerOttputMode->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 30 );
34
35 wxString m_colorPrintChoices[] = { _("Color"), _("Black and White") };
36 int m_colorPrintNChoices = sizeof( m_colorPrintChoices ) / sizeof( wxString );
37 m_colorPrint = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_colorPrintNChoices, m_colorPrintChoices, 0 );
38 m_colorPrint->SetSelection( 0 );
39 m_colorPrint->SetMinSize( wxSize( 200,-1 ) );
40
41 bSizerOttputMode->Add( m_colorPrint, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 25 );
42
43
44 bleftSizer->Add( bSizerOttputMode, 0, wxEXPAND, 5 );
45
46 m_checkBackgroundColor = new wxCheckBox( this, wxID_ANY, _("Print background color"), wxDefaultPosition, wxDefaultSize, 0 );
47 bleftSizer->Add( m_checkBackgroundColor, 0, wxALL, 5 );
48
49 m_checkUseColorTheme = new wxCheckBox( this, wxID_ANY, _("Use a different color theme for printing:"), wxDefaultPosition, wxDefaultSize, 0 );
50 m_checkUseColorTheme->SetValue(true);
51 bleftSizer->Add( m_checkUseColorTheme, 0, wxALL, 5 );
52
53 wxBoxSizer* bSizer4;
54 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
55
56 wxArrayString m_colorThemeChoices;
57 m_colorTheme = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_colorThemeChoices, 0 );
58 m_colorTheme->SetSelection( 0 );
59 m_colorTheme->Enable( false );
60 m_colorTheme->SetMinSize( wxSize( 200,-1 ) );
61
62 bSizer4->Add( m_colorTheme, 0, wxLEFT, 25 );
63
64
65 bleftSizer->Add( bSizer4, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
66
67
68 bMainSizer->Add( bleftSizer, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 10 );
69
70 wxBoxSizer* bbuttonsSizer;
71 bbuttonsSizer = new wxBoxSizer( wxHORIZONTAL );
72
73 m_buttonPageSetup = new wxButton( this, wxID_ANY, _("Page Setup..."), wxDefaultPosition, wxDefaultSize, 0 );
74 bbuttonsSizer->Add( m_buttonPageSetup, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
75
76
77 bbuttonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
78
79 m_sdbSizer1 = new wxStdDialogButtonSizer();
80 m_sdbSizer1OK = new wxButton( this, wxID_OK );
81 m_sdbSizer1->AddButton( m_sdbSizer1OK );
82 m_sdbSizer1Apply = new wxButton( this, wxID_APPLY );
83 m_sdbSizer1->AddButton( m_sdbSizer1Apply );
84 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
85 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
86 m_sdbSizer1->Realize();
87
88 bbuttonsSizer->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
89
90
91 bMainSizer->Add( bbuttonsSizer, 0, wxEXPAND|wxLEFT|wxTOP, 10 );
92
93
94 this->SetSizer( bMainSizer );
95 this->Layout();
96
97 // Connect Events
98 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
99 m_colorPrint->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnOutputChoice ), NULL, this );
100 m_checkUseColorTheme->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnUseColorThemeChecked ), NULL, this );
101 m_buttonPageSetup->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
102 m_sdbSizer1Apply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
103}
104
106{
107 // Disconnect Events
108 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
109 m_colorPrint->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnOutputChoice ), NULL, this );
110 m_checkUseColorTheme->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnUseColorThemeChecked ), NULL, this );
111 m_buttonPageSetup->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
112 m_sdbSizer1Apply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
113
114}
virtual void OnUseColorThemeChecked(wxCommandEvent &event)
virtual void OnPageSetup(wxCommandEvent &event)
virtual void OnCloseWindow(wxCloseEvent &event)
virtual void OnPrintPreview(wxCommandEvent &event)
virtual void OnOutputChoice(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(391, 250), 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:88
#define _(s)