32 const wxArrayString* aRootSymbolNames,
33 const wxString& aInheritFromSymbolName,
34 std::function<
bool( wxString newName )> aValidator ) :
36 m_pinTextPosition( aParent, m_staticPinTextPositionLabel, m_textPinTextPosition,
37 m_staticPinTextPositionUnits, true ),
38 m_validator(
std::
move( aValidator ) )
40 if( aRootSymbolNames && aRootSymbolNames->GetCount() )
42 wxArrayString escapedNames;
44 for(
const wxString&
name : *aRootSymbolNames )
49 if( !aInheritFromSymbolName.IsEmpty() )
56 if( !aMessage.IsEmpty() )
constexpr EDA_IU_SCALE schIUScale
Class DIALOG_LIB_NEW_SYMBOL_BASE.
wxCheckBox * m_checkIsPowerSymbol
wxCheckBox * m_excludeFromBomCheckBox
wxStaticText * m_staticTextUnits
wxCheckBox * m_checkShowPinNameInside
wxStaticText * m_staticPinTextPositionUnits
wxComboBox * m_comboInheritanceSelect
wxStaticText * m_staticTextDes
wxTextCtrl * m_textPinTextPosition
wxCheckBox * m_checkShowPinName
wxStaticText * m_staticPinTextPositionLabel
wxSpinCtrl * m_spinPartCount
wxTextCtrl * m_textReference
wxCheckBox * m_checkShowPinNumber
wxCheckBox * m_checkUnitsInterchangeable
wxCheckBox * m_excludeFromBoardCheckBox
wxCheckBox * m_checkHasAlternateBodyStyle
UNIT_BINDER m_pinTextPosition
DIALOG_LIB_NEW_SYMBOL(EDA_DRAW_FRAME *aParent, const wxString &aMessage, const wxArrayString *aRootSymbolNames, const wxString &aInheritFromSymbolName, std::function< bool(wxString newName)> aValidator)
virtual void OnParentSymbolSelect(wxCommandEvent &aEvent) override
wxString GetName() const override
void syncControls(bool aIsDerivedPart)
bool TransferDataFromWindow() override
std::function< bool(wxString newName)> m_validator
virtual void onPowerCheckBox(wxCommandEvent &aEvent) 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.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void RemoveAllButtons()
Remove all the buttons that have been added by the user.
void ShowMessage(const wxString &aMessage, int aFlags=wxICON_INFORMATION) override
Show the info bar with the provided message and icon.
#define DEFAULT_PIN_NAME_OFFSET
The intersheets references prefix string.
Definitions of control validators for schematic dialogs.
wxString UnescapeString(const wxString &aSource)
constexpr int MilsToIU(int mils) const
@ VALUE_FIELD
Field Value of part, i.e. "3.3K".
@ REFERENCE_FIELD
Field Reference of part, i.e. "IC21".