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 )
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bleftSizer;
20 bleftSizer =
new wxBoxSizer( wxVERTICAL );
22 m_checkReference =
new wxCheckBox(
this, wxID_ANY,
_(
"Print drawing sheet"), wxDefaultPosition, wxDefaultSize, 0 );
28 wxBoxSizer* bSizerOttputMode;
29 bSizerOttputMode =
new wxBoxSizer( wxHORIZONTAL );
31 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"Output mode:"), wxDefaultPosition, wxDefaultSize, 0 );
33 bSizerOttputMode->Add(
m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 30 );
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 );
41 bSizerOttputMode->Add(
m_colorPrint, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 25 );
44 bleftSizer->Add( bSizerOttputMode, 0, wxEXPAND, 5 );
46 m_checkBackgroundColor =
new wxCheckBox(
this, wxID_ANY,
_(
"Print background color"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_checkUseColorTheme =
new wxCheckBox(
this, wxID_ANY,
_(
"Use a different color theme for printing:"), wxDefaultPosition, wxDefaultSize, 0 );
54 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
56 wxArrayString m_colorThemeChoices;
57 m_colorTheme =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_colorThemeChoices, 0 );
65 bleftSizer->Add( bSizer4, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
68 bMainSizer->Add( bleftSizer, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 10 );
70 wxBoxSizer* bbuttonsSizer;
71 bbuttonsSizer =
new wxBoxSizer( wxHORIZONTAL );
73 m_buttonPageSetup =
new wxButton(
this, wxID_ANY,
_(
"Page Setup..."), wxDefaultPosition, wxDefaultSize, 0 );
77 bbuttonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
88 bbuttonsSizer->Add(
m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
91 bMainSizer->Add( bbuttonsSizer, 0, wxEXPAND|wxLEFT|wxTOP, 10 );
94 this->SetSizer( bMainSizer );
wxCheckBox * m_checkReference
virtual void OnUseColorThemeChecked(wxCommandEvent &event)
virtual void OnPageSetup(wxCommandEvent &event)
virtual void OnCloseWindow(wxCloseEvent &event)
wxButton * m_sdbSizer1Cancel
virtual void OnPrintPreview(wxCommandEvent &event)
wxButton * m_buttonPageSetup
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)
wxButton * m_sdbSizer1Apply
wxStaticText * m_staticText1
wxCheckBox * m_checkBackgroundColor
~DIALOG_PRINT_USING_PRINTER_BASE()
wxCheckBox * m_checkUseColorTheme
wxStdDialogButtonSizer * m_sdbSizer1
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...