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.

143 lines
5.5 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Oct 26 2018)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_layers_select_to_pcb_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. BEGIN_EVENT_TABLE( LAYERS_MAP_DIALOG_BASE, DIALOG_SHIM )
  10. EVT_COMBOBOX( ID_M_COMBOCOPPERLAYERSCOUNT, LAYERS_MAP_DIALOG_BASE::_wxFB_OnBrdLayersCountSelection )
  11. EVT_BUTTON( ID_STORE_CHOICE, LAYERS_MAP_DIALOG_BASE::_wxFB_OnStoreSetup )
  12. EVT_BUTTON( ID_GET_PREVIOUS_CHOICE, LAYERS_MAP_DIALOG_BASE::_wxFB_OnGetSetup )
  13. EVT_BUTTON( ID_RESET_CHOICE, LAYERS_MAP_DIALOG_BASE::_wxFB_OnResetClick )
  14. EVT_BUTTON( wxID_OK, LAYERS_MAP_DIALOG_BASE::_wxFB_OnOkClick )
  15. END_EVENT_TABLE()
  16. LAYERS_MAP_DIALOG_BASE::LAYERS_MAP_DIALOG_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
  17. {
  18. this->SetSizeHints( wxDefaultSize, wxDefaultSize );
  19. wxBoxSizer* bSizerMain;
  20. bSizerMain = new wxBoxSizer( wxVERTICAL );
  21. wxBoxSizer* sbUpperSizer;
  22. sbUpperSizer = new wxBoxSizer( wxHORIZONTAL );
  23. wxBoxSizer* bSizerLayerSelection;
  24. bSizerLayerSelection = new wxBoxSizer( wxVERTICAL );
  25. m_staticTextLayerSel = new wxStaticText( this, wxID_ANY, _("Layer selection:"), wxDefaultPosition, wxDefaultSize, 0 );
  26. m_staticTextLayerSel->Wrap( -1 );
  27. bSizerLayerSelection->Add( m_staticTextLayerSel, 0, wxALL, 5 );
  28. m_bSizerLayerList = new wxBoxSizer( wxHORIZONTAL );
  29. m_bSizerLayerList->Add( 0, 0, 0, wxRIGHT|wxLEFT, 10 );
  30. m_flexLeftColumnBoxSizer = new wxFlexGridSizer( 16, 4, 0, 0 );
  31. m_flexLeftColumnBoxSizer->AddGrowableCol( 0 );
  32. m_flexLeftColumnBoxSizer->AddGrowableCol( 1 );
  33. m_flexLeftColumnBoxSizer->AddGrowableCol( 2 );
  34. m_flexLeftColumnBoxSizer->AddGrowableCol( 3 );
  35. m_flexLeftColumnBoxSizer->SetFlexibleDirection( wxBOTH );
  36. m_flexLeftColumnBoxSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  37. m_bSizerLayerList->Add( m_flexLeftColumnBoxSizer, 1, wxEXPAND, 5 );
  38. m_staticlineSep = new wxStaticLine( this, ID_M_STATICLINESEP, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
  39. m_bSizerLayerList->Add( m_staticlineSep, 0, wxEXPAND | wxALL, 5 );
  40. m_flexRightColumnBoxSizer = new wxFlexGridSizer( 16, 4, 0, 0 );
  41. m_flexRightColumnBoxSizer->AddGrowableCol( 0 );
  42. m_flexRightColumnBoxSizer->AddGrowableCol( 1 );
  43. m_flexRightColumnBoxSizer->AddGrowableCol( 2 );
  44. m_flexRightColumnBoxSizer->AddGrowableCol( 3 );
  45. m_flexRightColumnBoxSizer->SetFlexibleDirection( wxBOTH );
  46. m_flexRightColumnBoxSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  47. m_bSizerLayerList->Add( m_flexRightColumnBoxSizer, 1, wxEXPAND, 5 );
  48. bSizerLayerSelection->Add( m_bSizerLayerList, 1, wxEXPAND, 5 );
  49. sbUpperSizer->Add( bSizerLayerSelection, 1, wxEXPAND, 5 );
  50. wxBoxSizer* bRightSizer;
  51. bRightSizer = new wxBoxSizer( wxVERTICAL );
  52. wxBoxSizer* bSizerLyrCnt;
  53. bSizerLyrCnt = new wxBoxSizer( wxVERTICAL );
  54. m_staticTextCopperlayerCount = new wxStaticText( this, ID_M_STATICTEXTCOPPERLAYERCOUNT, _("Copper layers count:"), wxDefaultPosition, wxDefaultSize, 0 );
  55. m_staticTextCopperlayerCount->Wrap( -1 );
  56. bSizerLyrCnt->Add( m_staticTextCopperlayerCount, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
  57. m_comboCopperLayersCount = new wxComboBox( this, ID_M_COMBOCOPPERLAYERSCOUNT, _("2 Layers"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
  58. m_comboCopperLayersCount->Append( _("2 Layers") );
  59. m_comboCopperLayersCount->Append( _("4 Layers") );
  60. m_comboCopperLayersCount->Append( _("6 Layers") );
  61. m_comboCopperLayersCount->Append( _("8 Layers") );
  62. m_comboCopperLayersCount->Append( _("10 Layers") );
  63. m_comboCopperLayersCount->Append( _("12 Layers") );
  64. m_comboCopperLayersCount->Append( _("14 Layers") );
  65. m_comboCopperLayersCount->Append( _("16 Layers") );
  66. bSizerLyrCnt->Add( m_comboCopperLayersCount, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  67. bRightSizer->Add( bSizerLyrCnt, 0, wxEXPAND, 5 );
  68. bRightSizer->Add( 5, 15, 1, wxEXPAND, 5 );
  69. wxBoxSizer* bSizerButtons;
  70. bSizerButtons = new wxBoxSizer( wxVERTICAL );
  71. m_buttonStore = new wxButton( this, ID_STORE_CHOICE, _("Store Choice"), wxDefaultPosition, wxDefaultSize, 0 );
  72. bSizerButtons->Add( m_buttonStore, 0, wxALL|wxEXPAND, 5 );
  73. m_buttonRetrieve = new wxButton( this, ID_GET_PREVIOUS_CHOICE, _("Get Stored Choice"), wxDefaultPosition, wxDefaultSize, 0 );
  74. bSizerButtons->Add( m_buttonRetrieve, 0, wxALL|wxEXPAND, 5 );
  75. m_buttonReset = new wxButton( this, ID_RESET_CHOICE, _("Reset"), wxDefaultPosition, wxDefaultSize, 0 );
  76. bSizerButtons->Add( m_buttonReset, 0, wxALL|wxEXPAND, 5 );
  77. bRightSizer->Add( bSizerButtons, 0, wxEXPAND, 5 );
  78. sbUpperSizer->Add( bRightSizer, 0, wxALIGN_CENTER_VERTICAL, 5 );
  79. bSizerMain->Add( sbUpperSizer, 1, wxEXPAND|wxALL, 5 );
  80. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  81. bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
  82. m_sdbSizerButtons = new wxStdDialogButtonSizer();
  83. m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
  84. m_sdbSizerButtons->AddButton( m_sdbSizerButtonsOK );
  85. m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
  86. m_sdbSizerButtons->AddButton( m_sdbSizerButtonsCancel );
  87. m_sdbSizerButtons->Realize();
  88. bSizerMain->Add( m_sdbSizerButtons, 0, wxALL|wxEXPAND, 5 );
  89. this->SetSizer( bSizerMain );
  90. this->Layout();
  91. bSizerMain->Fit( this );
  92. this->Centre( wxBOTH );
  93. }
  94. LAYERS_MAP_DIALOG_BASE::~LAYERS_MAP_DIALOG_BASE()
  95. {
  96. }