16DIALOG_EXPORT_2581_BASE::DIALOG_EXPORT_2581_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
18 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
20 wxBoxSizer* bMainSizer;
21 bMainSizer =
new wxBoxSizer( wxVERTICAL );
23 bSizerTop =
new wxBoxSizer( wxHORIZONTAL );
25 m_lblBrdFile =
new wxStaticText(
this, wxID_ANY,
_(
"File:"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_outputFileName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30 m_outputFileName->SetToolTip(
_(
"Enter a filename if you do not want to use default file names\nCan be used only when printing the current sheet") );
39 bMainSizer->Add(
bSizerTop, 0, wxEXPAND|wxALL, 10 );
41 wxBoxSizer* bSizerMiddle;
42 bSizerMiddle =
new wxBoxSizer( wxHORIZONTAL );
44 wxBoxSizer* bSizerLeftCol;
45 bSizerLeftCol =
new wxBoxSizer( wxVERTICAL );
47 m_fileFormatLabel =
new wxStaticText(
this, wxID_ANY,
_(
"File Format"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
54 wxGridBagSizer* gbSizer1;
55 gbSizer1 =
new wxGridBagSizer( 5, 5 );
56 gbSizer1->SetFlexibleDirection( wxBOTH );
57 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
59 m_lblUnits =
new wxStaticText(
this, wxID_ANY,
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
61 gbSizer1->Add(
m_lblUnits, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
63 wxString m_choiceUnitsChoices[] = {
_(
"Millimeters"),
_(
"Inches") };
64 int m_choiceUnitsNChoices =
sizeof( m_choiceUnitsChoices ) /
sizeof( wxString );
65 m_choiceUnits =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
67 gbSizer1->Add(
m_choiceUnits, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
69 m_lblPrecision =
new wxStaticText(
this, wxID_ANY,
_(
"Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_lblPrecision->SetToolTip(
_(
"The number of values following the decimal separator") );
73 gbSizer1->Add(
m_lblPrecision, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 15 );
75 m_precision =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 4, 10, 6 );
76 m_precision->SetToolTip(
_(
"The number of values following the decimal separator") );
78 gbSizer1->Add(
m_precision, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
80 m_lblVersion =
new wxStaticText(
this, wxID_ANY,
_(
"Version:"), wxDefaultPosition, wxDefaultSize, 0 );
82 gbSizer1->Add(
m_lblVersion, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
84 wxString m_versionChoiceChoices[] = {
_(
"B"),
_(
"C") };
85 int m_versionChoiceNChoices =
sizeof( m_versionChoiceChoices ) /
sizeof( wxString );
86 m_versionChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_versionChoiceNChoices, m_versionChoiceChoices, 0 );
88 gbSizer1->Add(
m_versionChoice, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 10 );
90 m_cbCompress =
new wxCheckBox(
this, wxID_ANY,
_(
"Compress output"), wxDefaultPosition, wxDefaultSize, 0 );
91 m_cbCompress->SetToolTip(
_(
"Compress output into 'zip' file") );
93 gbSizer1->Add(
m_cbCompress, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxTOP, 5 );
96 gbSizer1->AddGrowableCol( 1 );
98 bSizerLeftCol->Add( gbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT, 5 );
101 bSizerMiddle->Add( bSizerLeftCol, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
104 bSizerMiddle->Add( 10, 0, 0, wxEXPAND, 5 );
107 bSizerMiddle->Add(
m_contentPanel, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
110 bMainSizer->Add( bSizerMiddle, 0, wxEXPAND|wxBOTTOM, 5 );
127 this->SetSizer( bMainSizer );
129 bMainSizer->Fit(
this );
131 this->Centre( wxBOTH );