2009-01-17 17:32:20 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
// C++ code generated with wxFormBuilder (version Apr 16 2008)
|
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_print_using_printer_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
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 ) : wxDialog( parent, id, title, pos, size, style )
|
2009-01-17 17:32:20 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bleftSizer;
|
|
|
|
bleftSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
m_checkReference = new wxCheckBox( this, wxID_ANY, _("Print sheet &reference and title block"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_checkReference->SetValue(true);
|
2009-01-17 17:32:20 +00:00
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
m_checkReference->SetToolTip( _("Print (or not) the Frame references.") );
|
2009-01-17 17:32:20 +00:00
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
bleftSizer->Add( m_checkReference, 0, wxALL, 5 );
|
2009-01-17 17:32:20 +00:00
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
m_checkMonochrome = new wxCheckBox( this, wxID_ANY, _("Print in &black and white only"), wxDefaultPosition, wxDefaultSize, 0 );
|
2009-01-17 17:32:20 +00:00
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
bleftSizer->Add( m_checkMonochrome, 0, wxALL, 5 );
|
2009-01-17 17:32:20 +00:00
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
bMainSizer->Add( bleftSizer, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 12 );
|
2009-01-17 17:32:20 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bbuttonsSizer;
|
|
|
|
bbuttonsSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
m_buttonPageSetup = new wxButton( this, wxID_ANY, _("Page Setup"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bbuttonsSizer->Add( m_buttonPageSetup, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
|
2009-01-17 17:32:20 +00:00
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
m_buttonPreview = new wxButton( this, wxID_ANY, _("Preview"), wxDefaultPosition, wxDefaultSize, 0 );
|
2009-01-17 17:32:20 +00:00
|
|
|
bbuttonsSizer->Add( m_buttonPreview, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
m_buttonPrint = new wxButton( this, wxID_ANY, _("Print"), wxDefaultPosition, wxDefaultSize, 0 );
|
2009-01-17 17:32:20 +00:00
|
|
|
bbuttonsSizer->Add( m_buttonPrint, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
|
|
|
|
|
|
|
m_buttonQuit = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bbuttonsSizer->Add( m_buttonQuit, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
bMainSizer->Add( bbuttonsSizer, 0, wxALL, 12 );
|
2009-01-17 17:32:20 +00:00
|
|
|
|
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2010-02-02 15:01:09 +00:00
|
|
|
bMainSizer->Fit( this );
|
2009-01-17 17:32:20 +00:00
|
|
|
|
|
|
|
// Connect Events
|
2010-02-02 15:01:09 +00:00
|
|
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
|
|
|
|
this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnInitDialog ) );
|
|
|
|
m_buttonPageSetup->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
|
|
|
|
m_buttonPreview->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
|
|
|
|
m_buttonPrint->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintButtonClick ), NULL, this );
|
|
|
|
m_buttonQuit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnButtonCancelClick ), NULL, this );
|
2009-01-17 17:32:20 +00:00
|
|
|
}
|
|
|
|
|
2010-02-02 15:01:09 +00:00
|
|
|
DIALOG_PRINT_USING_PRINTER_BASE::~DIALOG_PRINT_USING_PRINTER_BASE()
|
2009-01-17 17:32:20 +00:00
|
|
|
{
|
|
|
|
// Disconnect Events
|
2010-02-02 15:01:09 +00:00
|
|
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
|
|
|
|
this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnInitDialog ) );
|
|
|
|
m_buttonPageSetup->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
|
|
|
|
m_buttonPreview->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
|
|
|
|
m_buttonPrint->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintButtonClick ), NULL, this );
|
|
|
|
m_buttonQuit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnButtonCancelClick ), NULL, this );
|
2009-01-17 17:32:20 +00:00
|
|
|
}
|