38 const wxString& aInheritFromSymbolName,
39 std::function<
bool( wxString newName )> aValidator );
53 name.Replace(
" ",
"_" );
Class DIALOG_LIB_NEW_SYMBOL_BASE.
wxCheckBox * m_checkIsPowerSymbol
wxCheckBox * m_excludeFromBomCheckBox
wxCheckBox * m_checkShowPinNameInside
wxCheckBox * m_checkShowPinName
wxSpinCtrl * m_spinPartCount
wxTextCtrl * m_textReference
wxCheckBox * m_checkShowPinNumber
wxCheckBox * m_checkUnitsInterchangeable
wxCheckBox * m_excludeFromBoardCheckBox
SYMBOL_FILTER_COMBOBOX * m_comboInheritanceSelect
wxCheckBox * m_checkHasAlternateBodyStyle
void SetIncludeOnBoard(bool aInclude)
UNIT_BINDER m_pinTextPosition
void SetPartCount(int count)
wxString GetParentSymbolName() const
void SetPinNameInside(bool show)
bool GetIncludeOnBoard() const
wxString GetName() const override
bool GetUnitsInterchangeable()
void SetName(const wxString &name) override
void syncControls(bool aIsDerivedPart)
bool TransferDataFromWindow() override
void SetShowPinName(bool show)
void SetPinTextPosition(int position)
std::function< bool(wxString newName)> m_validator
void SetIncludeInBom(bool aInclude)
virtual void onPowerCheckBox(wxCommandEvent &aEvent) override
void SetReference(const wxString &reference)
void SetAlternateBodyStyle(bool enable)
void SetShowPinNumber(bool show)
void SetUnitsInterchangeable(bool enable)
bool GetAlternateBodyStyle()
void onParentSymbolSelect(wxCommandEvent &aEvent)
void SetPowerSymbol(bool enable)
bool GetIncludeInBom() const
The base class for create windows for drawing purpose.
wxString GetValue() const override
virtual long long int GetValue()
Return the current value in Internal Units.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
wxString UnescapeString(const wxString &aSource)
wxString EscapeString(const wxString &aSource, ESCAPE_CONTEXT aContext)
The Escape/Unescape routines use HTML-entity-reference-style encoding to handle characters which are:...