2012-08-15 17:55:48 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2023-01-08 19:26:10 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2012-08-15 17:55:48 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-12-26 14:38:45 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2012-08-15 17:55:48 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_print_using_printer_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
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 )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2012-08-15 17:55:48 +00:00
|
|
|
wxBoxSizer* bMainSizer;
|
2018-07-22 22:27:59 +00:00
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2012-08-15 17:55:48 +00:00
|
|
|
wxBoxSizer* bleftSizer;
|
|
|
|
bleftSizer = new wxBoxSizer( wxVERTICAL );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2012-08-15 17:55:48 +00:00
|
|
|
m_checkReference = new wxCheckBox( this, wxID_ANY, _("Print sheet &reference and title block"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-05-16 14:47:43 +00:00
|
|
|
m_checkReference->SetValue(true);
|
2012-08-15 17:55:48 +00:00
|
|
|
m_checkReference->SetToolTip( _("Print (or not) the Frame references.") );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2018-07-22 22:27:59 +00:00
|
|
|
bleftSizer->Add( m_checkReference, 0, wxALL, 5 );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2012-08-15 17:55:48 +00:00
|
|
|
m_checkMonochrome = new wxCheckBox( this, wxID_ANY, _("Print in &black and white only"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-05-16 14:47:43 +00:00
|
|
|
m_checkMonochrome->SetValue(true);
|
|
|
|
bleftSizer->Add( m_checkMonochrome, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
m_checkBackgroundColor = new wxCheckBox( this, wxID_ANY, _("Print background color"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bleftSizer->Add( m_checkBackgroundColor, 0, wxALL, 5 );
|
|
|
|
|
2020-08-28 13:01:29 +00:00
|
|
|
m_checkUseColorTheme = new wxCheckBox( this, wxID_ANY, _("Use a different color theme for printing:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-05-16 14:47:43 +00:00
|
|
|
m_checkUseColorTheme->SetValue(true);
|
|
|
|
bleftSizer->Add( m_checkUseColorTheme, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer4;
|
|
|
|
bSizer4 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxArrayString m_colorThemeChoices;
|
|
|
|
m_colorTheme = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_colorThemeChoices, 0 );
|
|
|
|
m_colorTheme->SetSelection( 0 );
|
|
|
|
m_colorTheme->Enable( false );
|
2020-08-28 13:01:29 +00:00
|
|
|
m_colorTheme->SetMinSize( wxSize( 200,-1 ) );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2020-08-28 13:01:29 +00:00
|
|
|
bSizer4->Add( m_colorTheme, 0, wxLEFT, 25 );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
|
|
|
|
2020-08-28 13:01:29 +00:00
|
|
|
bleftSizer->Add( bSizer4, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
|
|
|
|
2018-07-22 22:27:59 +00:00
|
|
|
bMainSizer->Add( bleftSizer, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 10 );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2012-08-15 17:55:48 +00:00
|
|
|
wxBoxSizer* bbuttonsSizer;
|
2018-07-22 22:27:59 +00:00
|
|
|
bbuttonsSizer = new wxBoxSizer( wxHORIZONTAL );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2018-07-22 22:39:18 +00:00
|
|
|
m_buttonPageSetup = new wxButton( this, wxID_ANY, _("Page Setup..."), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-10-17 10:23:02 +00:00
|
|
|
bbuttonsSizer->Add( m_buttonPageSetup, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
|
|
|
|
2023-01-08 19:26:10 +00:00
|
|
|
bbuttonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2018-07-22 22:27:59 +00:00
|
|
|
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizer1OK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1OK );
|
|
|
|
m_sdbSizer1Apply = new wxButton( this, wxID_APPLY );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1Apply );
|
|
|
|
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
|
|
|
|
m_sdbSizer1->Realize();
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2023-01-08 19:26:10 +00:00
|
|
|
bbuttonsSizer->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
|
|
|
|
2023-01-08 19:26:10 +00:00
|
|
|
bMainSizer->Add( bbuttonsSizer, 0, wxEXPAND|wxLEFT|wxTOP, 10 );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
|
|
|
|
2012-08-15 17:55:48 +00:00
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2017-12-26 14:38:45 +00:00
|
|
|
bMainSizer->Fit( this );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2012-08-15 17:55:48 +00:00
|
|
|
// Connect Events
|
|
|
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
|
2020-05-16 14:47:43 +00:00
|
|
|
m_checkMonochrome->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnMonochromeChecked ), NULL, this );
|
|
|
|
m_checkUseColorTheme->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnUseColorThemeChecked ), NULL, this );
|
2012-08-15 17:55:48 +00:00
|
|
|
m_buttonPageSetup->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
|
2018-07-22 22:27:59 +00:00
|
|
|
m_sdbSizer1Apply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
|
2012-08-15 17:55:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_PRINT_USING_PRINTER_BASE::~DIALOG_PRINT_USING_PRINTER_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
|
2020-05-16 14:47:43 +00:00
|
|
|
m_checkMonochrome->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnMonochromeChecked ), NULL, this );
|
|
|
|
m_checkUseColorTheme->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnUseColorThemeChecked ), NULL, this );
|
2012-08-15 17:55:48 +00:00
|
|
|
m_buttonPageSetup->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
|
2018-07-22 22:27:59 +00:00
|
|
|
m_sdbSizer1Apply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
|
2020-05-16 14:47:43 +00:00
|
|
|
|
2012-08-15 17:55:48 +00:00
|
|
|
}
|