![]() |
LibrePCB Developers Documentation
|
#include <si_symbol.h>
Public Types | |
enum | Event |
typedef Slot< SI_Symbol, Event > | OnEditedSlot |
Signals | |
void | textAdded (SI_Text &text) |
void | textRemoved (SI_Text &text) |
void | attributesChanged () override |
This signal is emitted when the value of attributes has changed. More... | |
![]() | |
virtual void | attributesChanged ()=0 |
This signal is emitted when the value of attributes has changed. More... | |
Public Member Functions | |
SI_Symbol ()=delete | |
SI_Symbol (const SI_Symbol &other)=delete | |
SI_Symbol (Schematic &schematic, const Uuid &uuid, ComponentInstance &cmpInstance, const Uuid &symbolItem, const Point &position, const Angle &rotation, bool mirrored, bool loadInitialTexts) | |
~SI_Symbol () noexcept | |
const Uuid & | getUuid () const noexcept |
const Point & | getPosition () const noexcept |
const Angle & | getRotation () const noexcept |
bool | getMirrored () const noexcept |
QString | getName () const noexcept |
SI_SymbolPin * | getPin (const Uuid &pinUuid) const noexcept |
const QHash< Uuid, SI_SymbolPin * > & | getPins () const noexcept |
ComponentInstance & | getComponentInstance () const noexcept |
const Symbol & | getLibSymbol () const noexcept |
const ComponentSymbolVariantItem & | getCompSymbVarItem () const noexcept |
void | setPosition (const Point &newPos) noexcept |
void | setRotation (const Angle &newRotation) noexcept |
void | setMirrored (bool newMirrored) noexcept |
TextList | getDefaultTexts () const noexcept |
const QMap< Uuid, SI_Text * > & | getTexts () const noexcept |
void | addText (SI_Text &text) |
void | removeText (SI_Text &text) |
void | addToSchematic () override |
void | removeFromSchematic () override |
void | serialize (SExpression &root) const |
Serialize into librepcb::SExpression node. More... | |
QString | getBuiltInAttributeValue (const QString &key) const noexcept override |
Get the value of a built-in attribute (if available) More... | |
QVector< const AttributeProvider * > | getAttributeProviderParents () const noexcept override |
Get all parent attribute providers (fallback if attribute not found) More... | |
SI_Symbol & | operator= (const SI_Symbol &rhs)=delete |
![]() | |
SI_Base ()=delete | |
SI_Base (const SI_Base &other)=delete | |
SI_Base (Schematic &schematic) noexcept | |
virtual | ~SI_Base () noexcept |
Project & | getProject () const noexcept |
Circuit & | getCircuit () const noexcept |
Schematic & | getSchematic () const noexcept |
virtual bool | isAddedToSchematic () const noexcept |
SI_Base & | operator= (const SI_Base &rhs)=delete |
![]() | |
AttributeProvider () noexcept | |
AttributeProvider (const AttributeProvider &other)=delete | |
AttributeProvider & | operator= (const AttributeProvider &rhs)=delete |
virtual | ~AttributeProvider () noexcept |
QString | getAttributeValue (const QString &key) const noexcept |
Get the value of an attribute which can be used in texts (like "{{NAME}}") More... | |
virtual QString | getUserDefinedAttributeValue (const QString &key) const noexcept |
Get the value of a user defined attribute (if available) More... | |
Public Attributes | |
Signal< SI_Symbol, Event > | onEdited |
Private Member Functions | |
bool | checkAttributesValidity () const noexcept |
Private Attributes | |
ComponentInstance & | mComponentInstance |
const ComponentSymbolVariantItem * | mSymbVarItem |
const Symbol * | mSymbol |
QHash< Uuid, SI_SymbolPin * > | mPins |
key: symbol pin UUID More... | |
QMap< Uuid, SI_Text * > | mTexts |
key: text UUID More... | |
Uuid | mUuid |
Point | mPosition |
Angle | mRotation |
bool | mMirrored |
Additional Inherited Members | |
![]() | |
Schematic & | mSchematic |
The SI_Symbol class.
typedef Slot<SI_Symbol, Event> OnEditedSlot |
|
strong |
|
delete |
SI_Symbol | ( | Schematic & | schematic, |
const Uuid & | uuid, | ||
ComponentInstance & | cmpInstance, | ||
const Uuid & | symbolItem, | ||
const Point & | position, | ||
const Angle & | rotation, | ||
bool | mirrored, | ||
bool | loadInitialTexts | ||
) |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void addText | ( | SI_Text & | text | ) |
void removeText | ( | SI_Text & | text | ) |
|
overridevirtual |
Reimplemented from SI_Base.
|
overridevirtual |
Reimplemented from SI_Base.
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
overridevirtualnoexcept |
Get the value of a built-in attribute (if available)
key | The attribute name (e.g. "NAME" for "{{NAME}}") |
Reimplemented from AttributeProvider.
|
overridevirtualnoexcept |
Get all parent attribute providers (fallback if attribute not found)
Reimplemented from AttributeProvider.
|
signal |
|
signal |
|
overridesignal |
This signal is emitted when the value of attributes has changed.
All derived classes must emit this signal when some attributes have changed their values (only attributes which can be fetched with getAttributeValue(), inclusive all attributes from all "parent" classes).
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
key: symbol pin UUID
|
private |
|
private |
|
private |
|
private |