38 const wxString& aInheritFromSymbolName,
39 std::function<
bool( wxString newName )> aValidator );
53 name.Replace(
" ",
"_" );
Class DIALOG_LIB_NEW_SYMBOL_BASE.
wxCheckBox * m_checkTransferUserFields
wxCheckBox * m_checkIsPowerSymbol
wxCheckBox * m_excludeFromBomCheckBox
wxCheckBox * m_checkShowPinNameInside
wxCheckBox * m_checkShowPinName
wxCheckBox * m_checkKeepFootprint
wxSpinCtrl * m_spinPartCount
wxCheckBox * m_checkKeepContentUserFields
wxTextCtrl * m_textReference
wxCheckBox * m_checkShowPinNumber
wxCheckBox * m_checkUnitsInterchangeable
wxCheckBox * m_excludeFromBoardCheckBox
wxCheckBox * m_checkKeepDatasheet
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)
void SetTransferUserFields(bool keep)
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)
bool GetTransferUserFields()
std::function< bool(wxString newName)> m_validator
void SetIncludeInBom(bool aInclude)
void SetKeepDatasheet(bool keep)
bool GetKeepContentUserFields()
virtual void onCheckTransferUserFields(wxCommandEvent &aEvent) override
virtual void onPowerCheckBox(wxCommandEvent &aEvent) override
void SetReference(const wxString &reference)
void SetAlternateBodyStyle(bool enable)
void SetShowPinNumber(bool show)
void SetKeepContentUserFields(bool keep)
void SetUnitsInterchangeable(bool enable)
bool GetAlternateBodyStyle()
void onParentSymbolSelect(wxCommandEvent &aEvent)
void SetPowerSymbol(bool enable)
bool GetIncludeInBom() const
void SetKeepFootprint(bool keep)
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:...