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.

148 lines
6.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 3.9.0 Jan 23 2020)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_lib_new_component_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. BEGIN_EVENT_TABLE( DIALOG_LIB_NEW_COMPONENT_BASE, DIALOG_SHIM )
  10. EVT_COMBOBOX( wxID_ANY, DIALOG_LIB_NEW_COMPONENT_BASE::_wxFB_OnParentSymbolSelect )
  11. END_EVENT_TABLE()
  12. DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
  13. {
  14. this->SetSizeHints( wxDefaultSize, wxDefaultSize );
  15. wxBoxSizer* bSizerMain;
  16. bSizerMain = new wxBoxSizer( wxVERTICAL );
  17. wxBoxSizer* bSizerTop;
  18. bSizerTop = new wxBoxSizer( wxVERTICAL );
  19. wxFlexGridSizer* fgSizer31;
  20. fgSizer31 = new wxFlexGridSizer( 0, 2, 6, 6 );
  21. fgSizer31->AddGrowableCol( 1 );
  22. fgSizer31->SetFlexibleDirection( wxBOTH );
  23. fgSizer31->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  24. m_staticTextName = new wxStaticText( this, wxID_ANY, _("Symbol name:"), wxDefaultPosition, wxDefaultSize, 0 );
  25. m_staticTextName->Wrap( -1 );
  26. m_staticTextName->SetToolTip( _("This is the symbol name in library,\nand also the default component value when loaded in the schematic.") );
  27. fgSizer31->Add( m_staticTextName, 0, wxALIGN_CENTER_VERTICAL, 5 );
  28. m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
  29. fgSizer31->Add( m_textName, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
  30. m_staticText5 = new wxStaticText( this, wxID_ANY, _("Derive from existing symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
  31. m_staticText5->Wrap( -1 );
  32. fgSizer31->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL, 5 );
  33. m_comboInheritanceSelect = new wxComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN|wxCB_READONLY );
  34. m_comboInheritanceSelect->SetToolTip( _("Select symbol in the current library as parent symbol.\n\nThis was previously known as an alias. Do not select\nan existing symbol to create a new root symbol.") );
  35. fgSizer31->Add( m_comboInheritanceSelect, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
  36. m_staticTextDes = new wxStaticText( this, wxID_ANY, _("Default reference designator:"), wxDefaultPosition, wxDefaultSize, 0 );
  37. m_staticTextDes->Wrap( -1 );
  38. fgSizer31->Add( m_staticTextDes, 0, wxALIGN_CENTER_VERTICAL, 5 );
  39. m_textReference = new wxTextCtrl( this, wxID_ANY, _("U"), wxDefaultPosition, wxDefaultSize, 0 );
  40. fgSizer31->Add( m_textReference, 0, wxEXPAND, 5 );
  41. m_staticTextUnits = new wxStaticText( this, wxID_ANY, _("Number of units per package:"), wxDefaultPosition, wxDefaultSize, 0 );
  42. m_staticTextUnits->Wrap( -1 );
  43. fgSizer31->Add( m_staticTextUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
  44. m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 64, 0 );
  45. fgSizer31->Add( m_spinPartCount, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
  46. bSizerTop->Add( fgSizer31, 1, wxALL|wxEXPAND, 5 );
  47. wxBoxSizer* bSizer17;
  48. bSizer17 = new wxBoxSizer( wxVERTICAL );
  49. m_checkLockItems = new wxCheckBox( this, wxID_ANY, _("Units are not interchangeable"), wxDefaultPosition, wxDefaultSize, 0 );
  50. bSizer17->Add( m_checkLockItems, 0, wxRIGHT|wxLEFT, 5 );
  51. m_checkHasConversion = new wxCheckBox( this, wxID_ANY, _("Create symbol with alternate body style (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 );
  52. bSizer17->Add( m_checkHasConversion, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
  53. m_checkIsPowerSymbol = new wxCheckBox( this, wxID_ANY, _("Create symbol as power symbol"), wxDefaultPosition, wxDefaultSize, 0 );
  54. bSizer17->Add( m_checkIsPowerSymbol, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
  55. bSizerTop->Add( bSizer17, 0, wxBOTTOM|wxEXPAND, 5 );
  56. bSizerMain->Add( bSizerTop, 0, wxALL|wxEXPAND, 5 );
  57. wxBoxSizer* bSizerBottom;
  58. bSizerBottom = new wxBoxSizer( wxVERTICAL );
  59. wxFlexGridSizer* fgSizer4;
  60. fgSizer4 = new wxFlexGridSizer( 0, 3, 6, 6 );
  61. fgSizer4->AddGrowableCol( 1 );
  62. fgSizer4->SetFlexibleDirection( wxBOTH );
  63. fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  64. m_staticPinTextPositionLabel = new wxStaticText( this, wxID_ANY, _("Pin text position offset:"), wxDefaultPosition, wxDefaultSize, 0 );
  65. m_staticPinTextPositionLabel->Wrap( -1 );
  66. fgSizer4->Add( m_staticPinTextPositionLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
  67. m_textPinTextPosition = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  68. fgSizer4->Add( m_textPinTextPosition, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
  69. m_staticPinTextPositionUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
  70. m_staticPinTextPositionUnits->Wrap( -1 );
  71. fgSizer4->Add( m_staticPinTextPositionUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
  72. bSizerBottom->Add( fgSizer4, 0, wxALL|wxEXPAND, 5 );
  73. wxBoxSizer* bSizer19;
  74. bSizer19 = new wxBoxSizer( wxVERTICAL );
  75. m_checkShowPinNumber = new wxCheckBox( this, wxID_ANY, _("Show pin number text"), wxDefaultPosition, wxDefaultSize, 0 );
  76. m_checkShowPinNumber->SetValue(true);
  77. bSizer19->Add( m_checkShowPinNumber, 0, wxRIGHT|wxLEFT, 5 );
  78. m_checkShowPinName = new wxCheckBox( this, wxID_ANY, _("Show pin name text"), wxDefaultPosition, wxDefaultSize, 0 );
  79. m_checkShowPinName->SetValue(true);
  80. bSizer19->Add( m_checkShowPinName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
  81. m_checkShowPinNameInside = new wxCheckBox( this, wxID_ANY, _("Pin name inside"), wxDefaultPosition, wxDefaultSize, 0 );
  82. m_checkShowPinNameInside->SetValue(true);
  83. bSizer19->Add( m_checkShowPinNameInside, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
  84. bSizerBottom->Add( bSizer19, 0, wxEXPAND, 5 );
  85. bSizerMain->Add( bSizerBottom, 1, wxALL|wxEXPAND, 5 );
  86. m_sdbSizer = new wxStdDialogButtonSizer();
  87. m_sdbSizerOK = new wxButton( this, wxID_OK );
  88. m_sdbSizer->AddButton( m_sdbSizerOK );
  89. m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
  90. m_sdbSizer->AddButton( m_sdbSizerCancel );
  91. m_sdbSizer->Realize();
  92. bSizerMain->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
  93. this->SetSizer( bSizerMain );
  94. this->Layout();
  95. bSizerMain->Fit( this );
  96. this->Centre( wxBOTH );
  97. }
  98. DIALOG_LIB_NEW_COMPONENT_BASE::~DIALOG_LIB_NEW_COMPONENT_BASE()
  99. {
  100. }