2012-04-16 03:18:41 +00:00
///////////////////////////////////////////////////////////////////////////
2021-06-14 18:00:08 +00:00
// C++ code generated with wxFormBuilder (version 3.9.0 Jun 3 2020)
2012-04-16 03:18:41 +00:00
// http://www.wxformbuilder.org/
//
2017-12-24 15:04:02 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2012-04-16 03:18:41 +00:00
///////////////////////////////////////////////////////////////////////////
2021-06-14 18:00:08 +00:00
# include "dialog_lib_new_symbol_base.h"
2012-04-16 03:18:41 +00:00
2020-01-04 23:27:32 +00:00
///////////////////////////////////////////////////////////////////////////
2019-11-06 19:15:42 +00:00
2021-06-14 18:00:08 +00:00
BEGIN_EVENT_TABLE ( DIALOG_LIB_NEW_SYMBOL_BASE , DIALOG_SHIM )
EVT_COMBOBOX ( wxID_ANY , DIALOG_LIB_NEW_SYMBOL_BASE : : _wxFB_OnParentSymbolSelect )
EVT_CHECKBOX ( wxID_ANY , DIALOG_LIB_NEW_SYMBOL_BASE : : _wxFB_onPowerCheckBox )
2019-11-06 19:15:42 +00:00
END_EVENT_TABLE ( )
2012-04-16 03:18:41 +00:00
2021-06-14 18:00:08 +00:00
DIALOG_LIB_NEW_SYMBOL_BASE : : DIALOG_LIB_NEW_SYMBOL_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
2012-04-16 03:18:41 +00:00
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
2019-11-06 19:15:42 +00:00
2019-03-04 07:27:00 +00:00
wxBoxSizer * bSizerMain ;
bSizerMain = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-06 19:15:42 +00:00
2019-03-04 07:27:00 +00:00
wxBoxSizer * bSizerTop ;
bSizerTop = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-06 19:15:42 +00:00
2013-12-08 04:46:25 +00:00
wxFlexGridSizer * fgSizer31 ;
2019-11-06 19:15:42 +00:00
fgSizer31 = new wxFlexGridSizer ( 0 , 2 , 6 , 6 ) ;
2013-12-08 04:46:25 +00:00
fgSizer31 - > AddGrowableCol ( 1 ) ;
fgSizer31 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer31 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-06 19:15:42 +00:00
2019-03-04 07:27:00 +00:00
m_staticTextName = new wxStaticText ( this , wxID_ANY , _ ( " Symbol name: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextName - > Wrap ( - 1 ) ;
2021-06-14 18:00:08 +00:00
m_staticTextName - > SetToolTip ( _ ( " The symbol name in library and also the default \n symbol value when loaded in the schematic. " ) ) ;
2019-11-06 19:15:42 +00:00
fgSizer31 - > Add ( m_staticTextName , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
m_textName = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
fgSizer31 - > Add ( m_textName , 1 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
m_staticText5 = new wxStaticText ( this , wxID_ANY , _ ( " Derive from existing symbol: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText5 - > Wrap ( - 1 ) ;
fgSizer31 - > Add ( m_staticText5 , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
m_comboInheritanceSelect = new wxComboBox ( this , wxID_ANY , _ ( " Combo! " ) , wxDefaultPosition , wxDefaultSize , 0 , NULL , wxCB_DROPDOWN | wxCB_READONLY ) ;
m_comboInheritanceSelect - > SetToolTip ( _ ( " Select symbol in the current library as parent symbol. \n \n This was previously known as an alias. Do not select \n an existing symbol to create a new root symbol. " ) ) ;
fgSizer31 - > Add ( m_comboInheritanceSelect , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
2019-03-04 07:27:00 +00:00
m_staticTextDes = new wxStaticText ( this , wxID_ANY , _ ( " Default reference designator: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextDes - > Wrap ( - 1 ) ;
2019-11-06 19:15:42 +00:00
fgSizer31 - > Add ( m_staticTextDes , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2013-12-09 22:48:09 +00:00
m_textReference = new wxTextCtrl ( this , wxID_ANY , _ ( " U " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-11-06 19:15:42 +00:00
fgSizer31 - > Add ( m_textReference , 0 , wxEXPAND , 5 ) ;
2019-03-04 07:27:00 +00:00
m_staticTextUnits = new wxStaticText ( this , wxID_ANY , _ ( " Number of units per package: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextUnits - > Wrap ( - 1 ) ;
2019-11-06 19:15:42 +00:00
fgSizer31 - > Add ( m_staticTextUnits , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-03-04 07:27:00 +00:00
m_spinPartCount = new wxSpinCtrl ( this , wxID_ANY , wxT ( " 1 " ) , wxDefaultPosition , wxDefaultSize , wxSP_ARROW_KEYS , 1 , 64 , 0 ) ;
2019-11-06 19:15:42 +00:00
fgSizer31 - > Add ( m_spinPartCount , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
bSizerTop - > Add ( fgSizer31 , 1 , wxALL | wxEXPAND , 5 ) ;
2013-12-08 04:46:25 +00:00
wxBoxSizer * bSizer17 ;
bSizer17 = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-06 19:15:42 +00:00
2019-06-02 18:58:09 +00:00
m_checkLockItems = new wxCheckBox ( this , wxID_ANY , _ ( " Units are not interchangeable " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-12-07 22:52:01 +00:00
m_checkLockItems - > SetToolTip ( _ ( " Check this option to allow symbols with multiple units to have different \n elements. Uncheck this option when all symbol units are identical except \n for pin numbers. " ) ) ;
2019-06-02 18:58:09 +00:00
bSizer17 - > Add ( m_checkLockItems , 0 , wxRIGHT | wxLEFT , 5 ) ;
2019-11-06 19:15:42 +00:00
2017-12-24 15:04:02 +00:00
m_checkHasConversion = new wxCheckBox ( this , wxID_ANY , _ ( " Create symbol with alternate body style (DeMorgan) " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-06-02 18:58:09 +00:00
bSizer17 - > Add ( m_checkHasConversion , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-11-06 19:15:42 +00:00
2017-12-24 15:04:02 +00:00
m_checkIsPowerSymbol = new wxCheckBox ( this , wxID_ANY , _ ( " Create symbol as power symbol " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-06-02 18:58:09 +00:00
bSizer17 - > Add ( m_checkIsPowerSymbol , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-11-06 19:15:42 +00:00
2020-09-09 13:03:37 +00:00
m_excludeFromBomCheckBox = new wxCheckBox ( this , wxID_ANY , _ ( " Exclude from schematic bill of materials " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer17 - > Add ( m_excludeFromBomCheckBox , 0 , wxLEFT | wxRIGHT | wxTOP , 5 ) ;
m_excludeFromBoardCheckBox = new wxCheckBox ( this , wxID_ANY , _ ( " Exclude from board " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer17 - > Add ( m_excludeFromBoardCheckBox , 0 , wxLEFT | wxRIGHT | wxTOP , 5 ) ;
2019-11-06 19:15:42 +00:00
bSizerTop - > Add ( bSizer17 , 0 , wxBOTTOM | wxEXPAND , 5 ) ;
2019-03-04 07:27:00 +00:00
bSizerMain - > Add ( bSizerTop , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-06 19:15:42 +00:00
2019-03-04 07:27:00 +00:00
wxBoxSizer * bSizerBottom ;
bSizerBottom = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-06 19:15:42 +00:00
2013-12-08 04:46:25 +00:00
wxFlexGridSizer * fgSizer4 ;
2020-01-23 20:45:51 +00:00
fgSizer4 = new wxFlexGridSizer ( 0 , 3 , 6 , 6 ) ;
2019-11-06 19:15:42 +00:00
fgSizer4 - > AddGrowableCol ( 1 ) ;
2013-12-08 04:46:25 +00:00
fgSizer4 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer4 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-06 19:15:42 +00:00
2020-10-21 17:49:24 +00:00
m_staticPinTextPositionLabel = new wxStaticText ( this , wxID_ANY , _ ( " Pin name position offset: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-01-23 20:45:51 +00:00
m_staticPinTextPositionLabel - > Wrap ( - 1 ) ;
fgSizer4 - > Add ( m_staticPinTextPositionLabel , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-06 19:15:42 +00:00
2020-01-23 20:45:51 +00:00
m_textPinTextPosition = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer4 - > Add ( m_textPinTextPosition , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
m_staticPinTextPositionUnits = new wxStaticText ( this , wxID_ANY , _ ( " mils " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticPinTextPositionUnits - > Wrap ( - 1 ) ;
fgSizer4 - > Add ( m_staticPinTextPositionUnits , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-11-06 19:15:42 +00:00
bSizerBottom - > Add ( fgSizer4 , 0 , wxALL | wxEXPAND , 5 ) ;
2013-12-08 04:46:25 +00:00
wxBoxSizer * bSizer19 ;
bSizer19 = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-06 19:15:42 +00:00
2013-12-08 04:46:25 +00:00
m_checkShowPinNumber = new wxCheckBox ( this , wxID_ANY , _ ( " Show pin number text " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-11-06 19:15:42 +00:00
m_checkShowPinNumber - > SetValue ( true ) ;
2019-06-02 18:58:09 +00:00
bSizer19 - > Add ( m_checkShowPinNumber , 0 , wxRIGHT | wxLEFT , 5 ) ;
2019-11-06 19:15:42 +00:00
2013-12-08 04:46:25 +00:00
m_checkShowPinName = new wxCheckBox ( this , wxID_ANY , _ ( " Show pin name text " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-11-06 19:15:42 +00:00
m_checkShowPinName - > SetValue ( true ) ;
2019-06-02 18:58:09 +00:00
bSizer19 - > Add ( m_checkShowPinName , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-11-06 19:15:42 +00:00
2013-12-08 04:46:25 +00:00
m_checkShowPinNameInside = new wxCheckBox ( this , wxID_ANY , _ ( " Pin name inside " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-11-06 19:15:42 +00:00
m_checkShowPinNameInside - > SetValue ( true ) ;
2019-06-02 18:58:09 +00:00
bSizer19 - > Add ( m_checkShowPinNameInside , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-11-06 19:15:42 +00:00
bSizerBottom - > Add ( bSizer19 , 0 , wxEXPAND , 5 ) ;
2019-03-04 07:27:00 +00:00
bSizerMain - > Add ( bSizerBottom , 1 , wxALL | wxEXPAND , 5 ) ;
2019-11-06 19:15:42 +00:00
2012-04-16 03:18:41 +00:00
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
m_sdbSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer - > AddButton ( m_sdbSizerCancel ) ;
m_sdbSizer - > Realize ( ) ;
2019-11-06 19:15:42 +00:00
2019-03-04 07:27:00 +00:00
bSizerMain - > Add ( m_sdbSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-06 19:15:42 +00:00
2019-03-04 07:27:00 +00:00
this - > SetSizer ( bSizerMain ) ;
2012-04-16 03:18:41 +00:00
this - > Layout ( ) ;
2019-03-04 07:27:00 +00:00
bSizerMain - > Fit ( this ) ;
2019-11-06 19:15:42 +00:00
2012-04-16 03:18:41 +00:00
this - > Centre ( wxBOTH ) ;
}
2021-06-14 18:00:08 +00:00
DIALOG_LIB_NEW_SYMBOL_BASE : : ~ DIALOG_LIB_NEW_SYMBOL_BASE ( )
2012-04-16 03:18:41 +00:00
{
}