34 const wxArrayString& aSymbolNames,
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( aSymbolNames.GetCount() )
44 wxArrayString escapedNames;
46 for(
const wxString&
name : aSymbolNames )
51 if( !aInheritFromSymbolName.IsEmpty() )
58 wxCommandEvent dummyEvent;
67 FILTERED_ITEM_SELECTED,
83 FILTERED_ITEM_SELECTED,
98 if( !parent.IsEmpty() )
102 wxICON_INFORMATION );
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
DIALOG_LIB_NEW_SYMBOL(EDA_DRAW_FRAME *aParent, const wxArrayString &aSymbolNames, const wxString &aInheritFromSymbolName, std::function< bool(wxString newName)> aValidator)
UNIT_BINDER m_pinTextPosition
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)
wxString GetValue() const override
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 Dismiss() override
Dismisses the infobar and updates the containing layout and AUI manager (if one is provided).
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".