20 #ifndef LIBREPCB_CORE_SYMBOL_H 21 #define LIBREPCB_CORE_SYMBOL_H 26 #include "../../geometry/circle.h" 27 #include "../../geometry/polygon.h" 28 #include "../../geometry/text.h" 29 #include "../libraryelement.h" 73 const ElementName& name_en_US,
const QString& description_en_US,
74 const QString& keywords_en_US);
94 static std::unique_ptr<Symbol>
open(
95 std::unique_ptr<TransactionalDirectory> directory);
97 return QStringLiteral(
"sym");
100 return QStringLiteral(
"symbol");
107 Symbol(std::unique_ptr<TransactionalDirectory> directory,
110 const std::shared_ptr<const SymbolPin>& pin,
113 const std::shared_ptr<const Polygon>& polygon,
116 const std::shared_ptr<const Circle>& circle,
119 const std::shared_ptr<const Text>& text,
const CircleList & getCircles() const noexcept
Definition: symbol.h:83
The Version class represents a version number in the format "1.42.7".
Definition: version.h:58
Slot< SerializableObjectList< SymbolPin, SymbolPinListNameProvider, OnEditedArgs... >, int, const std::shared_ptr< const SymbolPin > &, Event > OnEditedSlot
Definition: serializableobjectlist.h:134
Signal< Symbol, Event > onEdited
Definition: symbol.h:66
Symbol & operator=(const Symbol &rhs)=delete
static std::unique_ptr< Symbol > open(std::unique_ptr< TransactionalDirectory > directory)
Definition: symbol.cpp:90
CircleList mCircles
Definition: symbol.h:125
The Symbol class represents the part of a component which is added to schematics. ...
Definition: symbol.h:55
Slot< Symbol, Event > OnEditedSlot
Definition: symbol.h:67
Definition: occmodel.cpp:76
void polygonsEdited(const PolygonList &list, int index, const std::shared_ptr< const Polygon > &polygon, PolygonList::Event event) noexcept
Definition: symbol.cpp:146
PolygonList & getPolygons() noexcept
Definition: symbol.h:80
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition: rulecheckmessage.h:104
void textsEdited(const TextList &list, int index, const std::shared_ptr< const Text > &text, TextList::Event event) noexcept
Definition: symbol.cpp:166
PolygonList mPolygons
Definition: symbol.h:124
const SymbolPinList & getPins() const noexcept
Definition: symbol.h:79
CircleList::OnEditedSlot mCirclesEditedSlot
Definition: symbol.h:131
PolygonList::OnEditedSlot mPolygonsEditedSlot
Definition: symbol.h:130
SymbolPinList mPins
Definition: symbol.h:123
SymbolPinList & getPins() noexcept
Definition: symbol.h:78
static QString getLongElementName() noexcept
Definition: symbol.h:99
The LibraryElement class extends the LibraryBaseElement class with some attributes and methods which ...
Definition: libraryelement.h:44
SymbolPinList::OnEditedSlot mPinsEditedSlot
Definition: symbol.h:129
const TextList & getTexts() const noexcept
Definition: symbol.h:85
const PolygonList & getPolygons() const noexcept
Definition: symbol.h:81
void pinsEdited(const SymbolPinList &list, int index, const std::shared_ptr< const SymbolPin > &pin, SymbolPinList::Event event) noexcept
Definition: symbol.cpp:136
static QString getShortElementName() noexcept
Definition: symbol.h:96
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
TextList mTexts
Definition: symbol.h:126
Event
Definition: serializableobjectlist.h:124
CircleList & getCircles() noexcept
Definition: symbol.h:82
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:56
TextList::OnEditedSlot mTextsEditedSlot
Definition: symbol.h:132
Event
Definition: symbol.h:60
~Symbol() noexcept
Definition: symbol.cpp:78
The SExpression class.
Definition: sexpression.h:66
void circlesEdited(const CircleList &list, int index, const std::shared_ptr< const Circle > &circle, CircleList::Event event) noexcept
Definition: symbol.cpp:156
virtual void serialize(SExpression &root) const override
Serialize into librepcb::SExpression node.
Definition: symbol.cpp:117
TextList & getTexts() noexcept
Definition: symbol.h:84
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition: elementname.h:93
virtual RuleCheckMessageList runChecks() const override
Definition: symbol.cpp:85