LibrePCB Developers Documentation
|
#include <si_symbol.h>
Public Types | |
enum class | Event |
typedef Slot< SI_Symbol, Event > | OnEditedSlot |
Signals | |
void | textAdded (SI_Text &text) |
void | textRemoved (SI_Text &text) |
void | attributesChanged () |
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... | |
SI_Symbol & | operator= (const SI_Symbol &rhs)=delete |
Public Member Functions inherited from SI_Base | |
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 |
virtual void | addToSchematic () |
virtual void | removeFromSchematic () |
SI_Base & | operator= (const SI_Base &rhs)=delete |
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 | |
Protected Attributes inherited from SI_Base | |
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. |
|
signal |
|
signal |
|
signal |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
key: symbol pin UUID
|
private |
|
private |
|
private |
|
private |