34 const wxArrayString* aRootSymbolNames,
35 const wxString& aInheritFromSymbolName,
36 std::function<
bool( wxString newName )> aValidator ) :
38 m_pinTextPosition( aParent, m_staticPinTextPositionLabel, m_textPinTextPosition,
39 m_staticPinTextPositionUnits, true ),
40 m_validator(
std::
move( aValidator ) )
42 if( aRootSymbolNames && aRootSymbolNames->GetCount() )
44 wxArrayString escapedNames;
46 for(
const wxString&
name : *aRootSymbolNames )
51 if( !aInheritFromSymbolName.IsEmpty() )
58 if( !aMessage.IsEmpty() )
70 FILTERED_ITEM_SELECTED,
86 FILTERED_ITEM_SELECTED,
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
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
SYMBOL_FILTER_COMBOBOX * m_comboInheritanceSelect
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)
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 onParentSymbolSelect(wxCommandEvent &aEvent)
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.
void SetSelectedSymbol(const wxString &aSymbolName)
void SetSymbolList(const wxArrayString &aSymbolList)
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".