35 return wxString::Format(
"%s_1", aParentName );
40 const wxArrayString& aSymbolNames,
41 const wxString& aInheritFromSymbolName,
42 std::function<
bool(
const wxString& newName )> aValidator ) :
50 if( aSymbolNames.GetCount() )
52 wxArrayString unescapedNames;
54 for( const wxString& name : aSymbolNames )
55 unescapedNames.Add( UnescapeString( name ) );
57 m_comboInheritanceSelect->SetStringList( unescapedNames );
70 [
this]( wxCommandEvent& aEvent )
80 wxCommandEvent dummyEvent;
130 if( !parent.IsEmpty() )
134 wxICON_INFORMATION );
constexpr EDA_IU_SCALE schIUScale
wxCheckBox * m_checkTransferUserFields
wxCheckBox * m_checkIsPowerSymbol
wxCheckBox * m_excludeFromBomCheckBox
wxStaticText * m_staticTextUnits
wxCheckBox * m_checkShowPinNameInside
wxStaticText * m_staticPinTextPositionUnits
wxStaticText * m_staticTextDes
wxTextCtrl * m_textPinTextPosition
wxCheckBox * m_checkShowPinName
wxCheckBox * m_checkKeepFootprint
wxStaticText * m_staticPinTextPositionLabel
wxSpinCtrl * m_spinPartCount
wxCheckBox * m_checkKeepContentUserFields
wxTextCtrl * m_textReference
wxCheckBox * m_checkShowPinNumber
wxCheckBox * m_checkUnitsInterchangeable
DIALOG_LIB_NEW_SYMBOL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("New Symbol"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxCheckBox * m_excludeFromBoardCheckBox
wxCheckBox * m_checkKeepDatasheet
SYMBOL_FILTER_COMBOBOX * m_comboInheritanceSelect
wxCheckBox * m_checkHasAlternateBodyStyle
UNIT_BINDER m_pinTextPosition
wxString m_inheritFromSymbolName
DIALOG_LIB_NEW_SYMBOL(EDA_DRAW_FRAME *aParent, const wxArrayString &aSymbolNames, const wxString &aInheritFromSymbolName, std::function< bool(const wxString &newName)> aValidator)
wxString GetName() const override
std::function< bool(const wxString &newName)> m_validator
void syncControls(bool aIsDerivedPart)
bool TransferDataFromWindow() override
virtual void onCheckTransferUserFields(wxCommandEvent &aEvent) override
virtual void onPowerCheckBox(wxCommandEvent &aEvent) override
void onParentSymbolSelect(wxCommandEvent &aEvent)
bool TransferDataToWindow() override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
The base class for create windows for drawing purpose.
A text control validator used for validating the text allowed in fields.
#define DEFAULT_PIN_NAME_OFFSET
The intersheets references prefix string.
static wxString getDerivativeName(const wxString &aParentName)
Definitions of control validators for schematic dialogs.
wxString UnescapeString(const wxString &aSource)
@ REFERENCE
Field Reference of part, i.e. "IC21".
@ VALUE
Field Value of part, i.e. "3.3K".