14DIALOG_EXPORT_ODBPP_BASE::DIALOG_EXPORT_ODBPP_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bMainSizer;
19 bMainSizer =
new wxBoxSizer( wxVERTICAL );
21 bSizerTop =
new wxBoxSizer( wxHORIZONTAL );
23 m_lblBrdFile =
new wxStaticText(
this, wxID_ANY,
_(
"Folder:"), wxDefaultPosition, wxDefaultSize, 0 );
27 m_outputFileName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
28 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") );
37 bMainSizer->Add(
bSizerTop, 0, wxBOTTOM|wxEXPAND|wxTOP, 15 );
40 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
42 wxStaticBoxSizer* sbSizer1;
43 sbSizer1 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"File Format") ), wxVERTICAL );
45 wxFlexGridSizer* fgSizer;
46 fgSizer =
new wxFlexGridSizer( 0, 2, 0, 0 );
47 fgSizer->AddGrowableCol( 1 );
48 fgSizer->SetFlexibleDirection( wxBOTH );
49 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
51 m_lblUnits =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
53 fgSizer->Add(
m_lblUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
55 wxString m_choiceUnitsChoices[] = {
_(
"Millimeters"),
_(
"Inches") };
56 int m_choiceUnitsNChoices =
sizeof( m_choiceUnitsChoices ) /
sizeof( wxString );
57 m_choiceUnits =
new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( 130,30 ), m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
61 m_lblPrecision =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_lblPrecision->SetToolTip(
_(
"The number of values following the decimal separator") );
65 fgSizer->Add(
m_lblPrecision, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
67 m_precision =
new wxSpinCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 130,30 ), wxSP_ARROW_KEYS, 2, 16, 7 );
68 m_precision->SetToolTip(
_(
"The number of values following the decimal separator") );
70 fgSizer->Add(
m_precision, 0, wxALIGN_RIGHT|wxALL, 5 );
72 m_cbCompress =
new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Compress output"), wxDefaultPosition, wxDefaultSize, 0 );
73 m_cbCompress->SetToolTip(
_(
"Compress output into 'zip' file") );
75 fgSizer->Add(
m_cbCompress, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
78 sbSizer1->Add( fgSizer, 3, wxEXPAND|wxALL, 5 );
81 bSizer3->Add( sbSizer1, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 10 );
84 bMainSizer->Add( bSizer3, 0, wxEXPAND, 5 );
87 bMainSizer->Add( 0, 0, 1, wxEXPAND, 5 );
99 this->SetSizer( bMainSizer );
102 this->Centre( wxBOTH );
virtual void onBrowseClicked(wxCommandEvent &event)
DIALOG_EXPORT_ODBPP_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export ODB++"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(380, 300), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxButton * m_stdButtonsCancel
wxTextCtrl * m_outputFileName
wxStaticText * m_lblBrdFile
STD_BITMAP_BUTTON * m_browseButton
virtual void onCompressCheck(wxCommandEvent &event)
wxStdDialogButtonSizer * m_stdButtons
~DIALOG_EXPORT_ODBPP_BASE()
wxCheckBox * m_cbCompress
wxStaticText * m_lblUnits
wxButton * m_stdButtonsOK
wxStaticText * m_lblPrecision
virtual void onOKClick(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...