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( wxSize( -1,-1 ), wxDefaultSize );
 
   18    wxBoxSizer* bMainSizer;
 
   19    bMainSizer = 
new wxBoxSizer( wxVERTICAL );
 
   21    bSizerTop = 
new wxBoxSizer( wxHORIZONTAL );
 
   23    m_lblBrdFile = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Output file:"), 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, wxALL|wxEXPAND, 5 );
 
   40    bSizer3 = 
new wxBoxSizer( wxHORIZONTAL );
 
   42    wxFlexGridSizer* fgSizer;
 
   43    fgSizer = 
new wxFlexGridSizer( 0, 2, 5, 5 );
 
   44    fgSizer->AddGrowableCol( 1 );
 
   45    fgSizer->SetFlexibleDirection( wxBOTH );
 
   46    fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
   48    m_lblUnits = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   50    fgSizer->Add( 
m_lblUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
 
   52    wxString m_choiceUnitsChoices[] = { 
_(
"Millimeters"), 
_(
"Inches") };
 
   53    int m_choiceUnitsNChoices = 
sizeof( m_choiceUnitsChoices ) / 
sizeof( wxString );
 
   54    m_choiceUnits = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
 
   58    m_lblPrecision = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   60    m_lblPrecision->SetToolTip( 
_(
"The number of values following the decimal separator") );
 
   64    m_precision = 
new wxSpinCtrl( 
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), wxSP_ARROW_KEYS, 2, 16, 6 );
 
   65    m_precision->SetToolTip( 
_(
"The number of values following the decimal separator") );
 
   69    m_lblCompress = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Compression format:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   71    m_lblCompress->SetToolTip( 
_(
"Select the format to compress the output ODB++ files") );
 
   73    fgSizer->Add( 
m_lblCompress, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
 
   75    wxString m_choiceCompressChoices[] = { 
_(
"None"), 
_(
"ZIP"), 
_(
"TGZ") };
 
   76    int m_choiceCompressNChoices = 
sizeof( m_choiceCompressChoices ) / 
sizeof( wxString );
 
   77    m_choiceCompress = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), m_choiceCompressNChoices, m_choiceCompressChoices, 0 );
 
   82    bSizer3->Add( fgSizer, 3, wxEXPAND|wxRIGHT|wxLEFT, 5 );
 
   85    bSizer4 = 
new wxBoxSizer( wxVERTICAL );
 
   88    bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
 
   91    bSizer3->Add( bSizer4, 2, wxEXPAND, 5 );
 
   94    bMainSizer->Add( bSizer3, 0, wxEXPAND|wxALL, 5 );
 
  106    this->SetSizer( bMainSizer );
 
  108    bMainSizer->Fit( 
this );
 
  110    this->Centre( wxBOTH );