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.

136 lines
4.9 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 3.9.0 Nov 1 2020)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "widgets/text_ctrl_eval.h"
  8. #include "dialog_export_idf_base.h"
  9. ///////////////////////////////////////////////////////////////////////////
  10. DIALOG_EXPORT_IDF3_BASE::DIALOG_EXPORT_IDF3_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( wxDefaultSize, wxDefaultSize );
  13. wxBoxSizer* bSizerIDFFile;
  14. bSizerIDFFile = new wxBoxSizer( wxVERTICAL );
  15. m_txtBrdFile = new wxStaticText( this, wxID_ANY, _("File name:"), wxDefaultPosition, wxDefaultSize, 0 );
  16. m_txtBrdFile->Wrap( -1 );
  17. bSizerIDFFile->Add( m_txtBrdFile, 0, wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
  18. m_filePickerIDF = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Select an IDF export filename"), _("*.emn"), wxDefaultPosition, wxSize( 450,-1 ), wxFLP_OVERWRITE_PROMPT|wxFLP_SAVE|wxFLP_USE_TEXTCTRL );
  19. bSizerIDFFile->Add( m_filePickerIDF, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  20. wxBoxSizer* bSizer2;
  21. bSizer2 = new wxBoxSizer( wxHORIZONTAL );
  22. wxBoxSizer* bSizer3;
  23. bSizer3 = new wxBoxSizer( wxVERTICAL );
  24. m_staticText2 = new wxStaticText( this, wxID_ANY, _("Grid reference point:"), wxDefaultPosition, wxDefaultSize, 0 );
  25. m_staticText2->Wrap( -1 );
  26. bSizer3->Add( m_staticText2, 0, wxALL, 5 );
  27. m_cbAutoAdjustOffset = new wxCheckBox( this, wxID_ANY, _("Adjust automatically"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
  28. bSizer3->Add( m_cbAutoAdjustOffset, 0, wxALL, 5 );
  29. wxBoxSizer* bSizer6;
  30. bSizer6 = new wxBoxSizer( wxHORIZONTAL );
  31. m_staticText5 = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
  32. m_staticText5->Wrap( -1 );
  33. bSizer6->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
  34. wxString m_IDF_RefUnitChoiceChoices[] = { _("mm"), _("inch") };
  35. int m_IDF_RefUnitChoiceNChoices = sizeof( m_IDF_RefUnitChoiceChoices ) / sizeof( wxString );
  36. m_IDF_RefUnitChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_IDF_RefUnitChoiceNChoices, m_IDF_RefUnitChoiceChoices, 0 );
  37. m_IDF_RefUnitChoice->SetSelection( 0 );
  38. bSizer6->Add( m_IDF_RefUnitChoice, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
  39. bSizer3->Add( bSizer6, 1, wxEXPAND, 5 );
  40. wxBoxSizer* bSizer4;
  41. bSizer4 = new wxBoxSizer( wxHORIZONTAL );
  42. m_staticText3 = new wxStaticText( this, wxID_ANY, _("X position:"), wxDefaultPosition, wxDefaultSize, 0 );
  43. m_staticText3->Wrap( -1 );
  44. bSizer4->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
  45. m_IDF_Xref = new TEXT_CTRL_EVAL( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
  46. #ifdef __WXGTK__
  47. if ( !m_IDF_Xref->HasFlag( wxTE_MULTILINE ) )
  48. {
  49. m_IDF_Xref->SetMaxLength( 8 );
  50. }
  51. #else
  52. m_IDF_Xref->SetMaxLength( 8 );
  53. #endif
  54. bSizer4->Add( m_IDF_Xref, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
  55. bSizer3->Add( bSizer4, 1, wxEXPAND, 5 );
  56. wxBoxSizer* bSizer5;
  57. bSizer5 = new wxBoxSizer( wxHORIZONTAL );
  58. m_staticText4 = new wxStaticText( this, wxID_ANY, _("Y position:"), wxDefaultPosition, wxDefaultSize, 0 );
  59. m_staticText4->Wrap( -1 );
  60. bSizer5->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
  61. m_IDF_Yref = new TEXT_CTRL_EVAL( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
  62. #ifdef __WXGTK__
  63. if ( !m_IDF_Yref->HasFlag( wxTE_MULTILINE ) )
  64. {
  65. m_IDF_Yref->SetMaxLength( 8 );
  66. }
  67. #else
  68. m_IDF_Yref->SetMaxLength( 8 );
  69. #endif
  70. bSizer5->Add( m_IDF_Yref, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
  71. bSizer3->Add( bSizer5, 1, wxEXPAND, 5 );
  72. bSizer2->Add( bSizer3, 1, wxEXPAND|wxLEFT, 5 );
  73. wxString m_rbUnitSelectionChoices[] = { _("Millimeters"), _("Mils") };
  74. int m_rbUnitSelectionNChoices = sizeof( m_rbUnitSelectionChoices ) / sizeof( wxString );
  75. m_rbUnitSelection = new wxRadioBox( this, wxID_ANY, _("Output Units"), wxDefaultPosition, wxDefaultSize, m_rbUnitSelectionNChoices, m_rbUnitSelectionChoices, 1, wxRA_SPECIFY_COLS );
  76. m_rbUnitSelection->SetSelection( 0 );
  77. bSizer2->Add( m_rbUnitSelection, 0, wxALL, 5 );
  78. bSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
  79. bSizerIDFFile->Add( bSizer2, 1, wxEXPAND, 5 );
  80. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  81. bSizerIDFFile->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
  82. m_sdbSizer = new wxStdDialogButtonSizer();
  83. m_sdbSizerOK = new wxButton( this, wxID_OK );
  84. m_sdbSizer->AddButton( m_sdbSizerOK );
  85. m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
  86. m_sdbSizer->AddButton( m_sdbSizerCancel );
  87. m_sdbSizer->Realize();
  88. bSizerIDFFile->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
  89. this->SetSizer( bSizerIDFFile );
  90. this->Layout();
  91. bSizerIDFFile->Fit( this );
  92. this->Centre( wxBOTH );
  93. }
  94. DIALOG_EXPORT_IDF3_BASE::~DIALOG_EXPORT_IDF3_BASE()
  95. {
  96. }