12DIALOG_PRINT_GENERIC_BASE::DIALOG_PRINT_GENERIC_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 );
21 wxBoxSizer* bRightCol;
22 bRightCol =
new wxBoxSizer( wxVERTICAL );
24 m_sbOptionsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Options") ), wxVERTICAL );
35 wxString m_outputModeChoices[] = {
_(
"Color"),
_(
"Black and white") };
36 int m_outputModeNChoices =
sizeof( m_outputModeChoices ) /
sizeof( wxString );
37 m_outputMode =
new wxChoice(
m_sbOptionsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_outputModeNChoices, m_outputModeChoices, 0 );
55 wxStaticBoxSizer* bScaleSizer;
56 bScaleSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Scale") ), wxVERTICAL );
58 m_scale1 =
new wxRadioButton( bScaleSizer->GetStaticBox(), wxID_ANY,
_(
"1:1"), wxDefaultPosition, wxDefaultSize, 0 );
59 bScaleSizer->Add(
m_scale1, 0, wxRIGHT|wxLEFT, 5 );
62 bScaleSizer->Add( 0, 5, 0, 0, 5 );
64 m_scaleFit =
new wxRadioButton( bScaleSizer->GetStaticBox(), wxID_ANY,
_(
"Fit to page"), wxDefaultPosition, wxDefaultSize, 0 );
65 bScaleSizer->Add(
m_scaleFit, 0, wxRIGHT|wxLEFT, 5 );
68 bScaleSizer->Add( 0, 3, 0, wxEXPAND, 5 );
70 wxBoxSizer* bSizerScaleCustom;
71 bSizerScaleCustom =
new wxBoxSizer( wxHORIZONTAL );
73 m_scaleCustom =
new wxRadioButton( bScaleSizer->GetStaticBox(), wxID_ANY,
_(
"Custom:"), wxDefaultPosition, wxDefaultSize, 0 );
74 bSizerScaleCustom->Add(
m_scaleCustom, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
76 m_scaleCustomText =
new wxTextCtrl( bScaleSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
82 bScaleSizer->Add( bSizerScaleCustom, 1, wxEXPAND|wxBOTTOM, 5 );
85 bRightCol->Add( bScaleSizer, 0, wxALL|wxEXPAND, 5 );
94 bSizer6 =
new wxBoxSizer( wxVERTICAL );
96 m_infoText =
new wxStaticText(
this, wxID_ANY,
_(
"Info text"), wxDefaultPosition, wxDefaultSize, 0 );
100 bSizer6->Add(
m_infoText, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
103 bMainSizer->Add( bSizer6, 0, wxEXPAND|wxLEFT, 10 );
105 wxBoxSizer* bButtonsSizer;
106 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
122 bButtonsSizer->Add(
m_sdbSizer1, 1, wxALL|wxEXPAND, 5 );
125 bMainSizer->Add( bButtonsSizer, 0, wxEXPAND|wxLEFT, 10 );
128 this->SetSizer( bMainSizer );
130 bMainSizer->Fit(
this );
132 this->Centre( wxBOTH );
virtual void onPageSetup(wxCommandEvent &event)
wxTextCtrl * m_scaleCustomText
wxBoxSizer * m_bUpperSizer
wxButton * m_sdbSizer1Apply
~DIALOG_PRINT_GENERIC_BASE()
wxStaticText * m_outputModeLabel
DIALOG_PRINT_GENERIC_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)
wxStaticText * m_infoText
wxButton * m_sdbSizer1Cancel
virtual void onPrintPreview(wxCommandEvent &event)
wxCheckBox * m_titleBlock
virtual void onPrintButtonClick(wxCommandEvent &event)
virtual void onClose(wxCloseEvent &event)
wxRadioButton * m_scaleFit
wxStaticBoxSizer * m_sbOptionsSizer
wxButton * m_buttonOption
virtual void onSetCustomScale(wxCommandEvent &event)
virtual void onCancelButtonClick(wxCommandEvent &event)
wxGridBagSizer * m_gbOptionsSizer
wxStdDialogButtonSizer * m_sdbSizer1
wxRadioButton * m_scaleCustom
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...