You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
5.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "widgets/std_bitmap_button.h"
  8. #include "dialog_export_odbpp_base.h"
  9. ///////////////////////////////////////////////////////////////////////////
  10. DIALOG_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 )
  11. {
  12. this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
  13. wxBoxSizer* bMainSizer;
  14. bMainSizer = new wxBoxSizer( wxVERTICAL );
  15. bSizerTop = new wxBoxSizer( wxHORIZONTAL );
  16. m_lblBrdFile = new wxStaticText( this, wxID_ANY, _("Output file:"), wxDefaultPosition, wxDefaultSize, 0 );
  17. m_lblBrdFile->Wrap( -1 );
  18. bSizerTop->Add( m_lblBrdFile, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
  19. m_outputFileName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  20. 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") );
  21. m_outputFileName->SetMinSize( wxSize( 350,-1 ) );
  22. bSizerTop->Add( m_outputFileName, 1, wxALL|wxEXPAND, 5 );
  23. m_browseButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( -1,-1 ), wxBU_AUTODRAW|0 );
  24. bSizerTop->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
  25. bMainSizer->Add( bSizerTop, 0, wxALL|wxEXPAND, 5 );
  26. wxBoxSizer* bSizer3;
  27. bSizer3 = new wxBoxSizer( wxHORIZONTAL );
  28. wxFlexGridSizer* fgSizer;
  29. fgSizer = new wxFlexGridSizer( 0, 2, 5, 5 );
  30. fgSizer->AddGrowableCol( 1 );
  31. fgSizer->SetFlexibleDirection( wxBOTH );
  32. fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  33. m_lblUnits = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
  34. m_lblUnits->Wrap( -1 );
  35. fgSizer->Add( m_lblUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
  36. wxString m_choiceUnitsChoices[] = { _("Millimeters"), _("Inches") };
  37. int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
  38. m_choiceUnits = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
  39. m_choiceUnits->SetSelection( 0 );
  40. fgSizer->Add( m_choiceUnits, 0, wxEXPAND, 5 );
  41. m_lblPrecision = new wxStaticText( this, wxID_ANY, _("Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
  42. m_lblPrecision->Wrap( -1 );
  43. m_lblPrecision->SetToolTip( _("The number of values following the decimal separator") );
  44. fgSizer->Add( m_lblPrecision, 0, wxALIGN_CENTER_VERTICAL, 5 );
  45. m_precision = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), wxSP_ARROW_KEYS, 2, 16, 6 );
  46. m_precision->SetToolTip( _("The number of values following the decimal separator") );
  47. fgSizer->Add( m_precision, 0, wxEXPAND, 5 );
  48. m_lblCompress = new wxStaticText( this, wxID_ANY, _("Compression format:"), wxDefaultPosition, wxDefaultSize, 0 );
  49. m_lblCompress->Wrap( -1 );
  50. m_lblCompress->SetToolTip( _("Select the format to compress the output ODB++ files") );
  51. fgSizer->Add( m_lblCompress, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
  52. wxString m_choiceCompressChoices[] = { _("None"), _("ZIP"), _("TGZ") };
  53. int m_choiceCompressNChoices = sizeof( m_choiceCompressChoices ) / sizeof( wxString );
  54. m_choiceCompress = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), m_choiceCompressNChoices, m_choiceCompressChoices, 0 );
  55. m_choiceCompress->SetSelection( 1 );
  56. fgSizer->Add( m_choiceCompress, 0, wxEXPAND, 5 );
  57. bSizer3->Add( fgSizer, 3, wxEXPAND|wxRIGHT|wxLEFT, 5 );
  58. wxBoxSizer* bSizer4;
  59. bSizer4 = new wxBoxSizer( wxVERTICAL );
  60. bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
  61. bSizer3->Add( bSizer4, 2, wxEXPAND, 5 );
  62. bMainSizer->Add( bSizer3, 0, wxEXPAND|wxALL, 5 );
  63. m_stdButtons = new wxStdDialogButtonSizer();
  64. m_stdButtonsOK = new wxButton( this, wxID_OK );
  65. m_stdButtons->AddButton( m_stdButtonsOK );
  66. m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
  67. m_stdButtons->AddButton( m_stdButtonsCancel );
  68. m_stdButtons->Realize();
  69. bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
  70. this->SetSizer( bMainSizer );
  71. this->Layout();
  72. bMainSizer->Fit( this );
  73. this->Centre( wxBOTH );
  74. // Connect Events
  75. m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onBrowseClicked ), NULL, this );
  76. m_choiceCompress->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onFormatChoice ), NULL, this );
  77. m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onOKClick ), NULL, this );
  78. }
  79. DIALOG_EXPORT_ODBPP_BASE::~DIALOG_EXPORT_ODBPP_BASE()
  80. {
  81. // Disconnect Events
  82. m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onBrowseClicked ), NULL, this );
  83. m_choiceCompress->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onFormatChoice ), NULL, this );
  84. m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EXPORT_ODBPP_BASE::onOKClick ), NULL, this );
  85. }