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.

167 lines
6.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Nov 22 2017)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_export_vrml_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_EXPORT_3DFILE_BASE::DIALOG_EXPORT_3DFILE_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
  10. {
  11. this->SetSizeHints( wxDefaultSize, wxDefaultSize );
  12. wxBoxSizer* bSizer1;
  13. bSizer1 = new wxBoxSizer( wxVERTICAL );
  14. wxBoxSizer* bUpperSizer;
  15. bUpperSizer = new wxBoxSizer( wxVERTICAL );
  16. m_staticText1 = new wxStaticText( this, wxID_ANY, _("File name:"), wxDefaultPosition, wxDefaultSize, 0 );
  17. m_staticText1->Wrap( -1 );
  18. bUpperSizer->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
  19. m_filePicker = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Save VRML Board File"), wxT("*.wrl"), wxDefaultPosition, wxDefaultSize, wxFLP_SAVE|wxFLP_USE_TEXTCTRL );
  20. bUpperSizer->Add( m_filePicker, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
  21. m_staticText3 = new wxStaticText( this, wxID_ANY, _("Footprint 3D model path:"), wxDefaultPosition, wxDefaultSize, 0 );
  22. m_staticText3->Wrap( -1 );
  23. bUpperSizer->Add( m_staticText3, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
  24. m_SubdirNameCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  25. bUpperSizer->Add( m_SubdirNameCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  26. bSizer1->Add( bUpperSizer, 0, wxALL|wxEXPAND, 5 );
  27. wxBoxSizer* bSizer12;
  28. bSizer12 = new wxBoxSizer( wxHORIZONTAL );
  29. wxBoxSizer* bSizer5;
  30. bSizer5 = new wxBoxSizer( wxVERTICAL );
  31. m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
  32. wxBoxSizer* bSizer9;
  33. bSizer9 = new wxBoxSizer( wxVERTICAL );
  34. m_staticText6 = new wxStaticText( m_panel1, wxID_ANY, _("Grid reference point:"), wxDefaultPosition, wxDefaultSize, 0 );
  35. m_staticText6->Wrap( -1 );
  36. bSizer9->Add( m_staticText6, 0, wxALL, 5 );
  37. wxFlexGridSizer* fgSizerOptions;
  38. fgSizerOptions = new wxFlexGridSizer( 0, 2, 0, 0 );
  39. fgSizerOptions->AddGrowableCol( 1 );
  40. fgSizerOptions->SetFlexibleDirection( wxBOTH );
  41. fgSizerOptions->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  42. m_staticText61 = new wxStaticText( m_panel1, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
  43. m_staticText61->Wrap( -1 );
  44. fgSizerOptions->Add( m_staticText61, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  45. wxString m_VRML_RefUnitChoiceChoices[] = { _("mm"), _("inch") };
  46. int m_VRML_RefUnitChoiceNChoices = sizeof( m_VRML_RefUnitChoiceChoices ) / sizeof( wxString );
  47. m_VRML_RefUnitChoice = new wxChoice( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_VRML_RefUnitChoiceNChoices, m_VRML_RefUnitChoiceChoices, 0 );
  48. m_VRML_RefUnitChoice->SetSelection( 0 );
  49. fgSizerOptions->Add( m_VRML_RefUnitChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
  50. m_staticText4 = new wxStaticText( m_panel1, wxID_ANY, _("X:"), wxDefaultPosition, wxDefaultSize, 0 );
  51. m_staticText4->Wrap( -1 );
  52. fgSizerOptions->Add( m_staticText4, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  53. m_VRML_Xref = new wxTextCtrl( m_panel1, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
  54. #ifdef __WXGTK__
  55. if ( !m_VRML_Xref->HasFlag( wxTE_MULTILINE ) )
  56. {
  57. m_VRML_Xref->SetMaxLength( 8 );
  58. }
  59. #else
  60. m_VRML_Xref->SetMaxLength( 8 );
  61. #endif
  62. fgSizerOptions->Add( m_VRML_Xref, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
  63. m_staticText5 = new wxStaticText( m_panel1, wxID_ANY, _("Y:"), wxDefaultPosition, wxDefaultSize, 0 );
  64. m_staticText5->Wrap( -1 );
  65. fgSizerOptions->Add( m_staticText5, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  66. m_VRML_Yref = new wxTextCtrl( m_panel1, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
  67. #ifdef __WXGTK__
  68. if ( !m_VRML_Yref->HasFlag( wxTE_MULTILINE ) )
  69. {
  70. m_VRML_Yref->SetMaxLength( 8 );
  71. }
  72. #else
  73. m_VRML_Yref->SetMaxLength( 8 );
  74. #endif
  75. fgSizerOptions->Add( m_VRML_Yref, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
  76. bSizer9->Add( fgSizerOptions, 1, wxEXPAND, 5 );
  77. m_panel1->SetSizer( bSizer9 );
  78. m_panel1->Layout();
  79. bSizer9->Fit( m_panel1 );
  80. bSizer5->Add( m_panel1, 1, wxEXPAND | wxALL, 5 );
  81. bSizer12->Add( bSizer5, 1, wxEXPAND, 5 );
  82. wxString m_rbSelectUnitsChoices[] = { _("mm"), _("meter"), _("0.1 Inch"), _("Inch") };
  83. int m_rbSelectUnitsNChoices = sizeof( m_rbSelectUnitsChoices ) / sizeof( wxString );
  84. m_rbSelectUnits = new wxRadioBox( this, wxID_ANY, _("Output Units:"), wxDefaultPosition, wxDefaultSize, m_rbSelectUnitsNChoices, m_rbSelectUnitsChoices, 1, wxRA_SPECIFY_COLS );
  85. m_rbSelectUnits->SetSelection( 0 );
  86. bSizer12->Add( m_rbSelectUnits, 1, wxALL|wxEXPAND, 5 );
  87. bSizer1->Add( bSizer12, 0, wxEXPAND, 5 );
  88. wxBoxSizer* bLowerSizer;
  89. bLowerSizer = new wxBoxSizer( wxHORIZONTAL );
  90. wxBoxSizer* bSizer4;
  91. bSizer4 = new wxBoxSizer( wxVERTICAL );
  92. m_cbCopyFiles = new wxCheckBox( this, wxID_ANY, _("Copy 3D model files to 3D model path"), wxDefaultPosition, wxDefaultSize, 0 );
  93. m_cbCopyFiles->SetValue(true);
  94. bSizer4->Add( m_cbCopyFiles, 0, wxALL, 5 );
  95. m_cbUseRelativePaths = new wxCheckBox( this, ID_USE_ABS_PATH, _("Use relative paths to model files in board VRML file"), wxDefaultPosition, wxDefaultSize, 0 );
  96. m_cbUseRelativePaths->SetToolTip( _("Use paths for model files in board VRML file relative to the vrml file") );
  97. bSizer4->Add( m_cbUseRelativePaths, 0, wxALL, 5 );
  98. m_cbPlainPCB = new wxCheckBox( this, wxID_ANY, _("Plain PCB (no copper or silk)"), wxDefaultPosition, wxDefaultSize, 0 );
  99. bSizer4->Add( m_cbPlainPCB, 0, wxALL, 5 );
  100. bLowerSizer->Add( bSizer4, 2, wxEXPAND, 5 );
  101. bSizer1->Add( bLowerSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
  102. bSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
  103. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  104. bSizer1->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
  105. m_sdbSizer1 = new wxStdDialogButtonSizer();
  106. m_sdbSizer1OK = new wxButton( this, wxID_OK );
  107. m_sdbSizer1->AddButton( m_sdbSizer1OK );
  108. m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
  109. m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
  110. m_sdbSizer1->Realize();
  111. bSizer1->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
  112. this->SetSizer( bSizer1 );
  113. this->Layout();
  114. bSizer1->Fit( this );
  115. }
  116. DIALOG_EXPORT_3DFILE_BASE::~DIALOG_EXPORT_3DFILE_BASE()
  117. {
  118. }