20#ifndef LIBREPCB_EDITOR_SYMBOLGRAPHICSITEM_H
21#define LIBREPCB_EDITOR_SYMBOLGRAPHICSITEM_H
41class CircleGraphicsItem;
42class GraphicsLayerList;
43class ImageGraphicsItem;
44class PolygonGraphicsItem;
45class SymbolPinGraphicsItem;
46class TextGraphicsItem;
77 const QStringList& localeOrder,
78 bool hideUnusedPins) noexcept;
87 std::shared_ptr<Circle> circle)
noexcept {
91 std::shared_ptr<Polygon> polygon)
noexcept {
95 std::shared_ptr<Text> text)
noexcept {
99 std::shared_ptr<Image> iamge)
noexcept {
102 QList<std::shared_ptr<SymbolPinGraphicsItem>>
getSelectedPins() noexcept;
108 const QPainterPath& posAreaSmall, const QPainterPath& posAreaLarge,
109 FindFlags flags) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The Circle class.
Definition circle.h:46
The Component class represents a "generic" device in the library.
Definition component.h:73
The ComponentSymbolVariantItem class represents one symbol of a component symbol variant.
Definition componentsymbolvariantitem.h:54
The Image class.
Definition image.h:49
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The Polygon class.
Definition polygon.h:45
The Symbol class represents the part of a component which is added to schematics.
Definition symbol.h:56
The SymbolPin class represents one pin of a symbol.
Definition symbolpin.h:51
The Text class.
Definition text.h:48
The CircleGraphicsItem class.
Definition circlegraphicsitem.h:48
The GraphicsLayerList class.
Definition graphicslayerlist.h:48
The ImageGraphicsItem class is the graphical representation of a librepcb::Image.
Definition imagegraphicsitem.h:52
The PolygonGraphicsItem class.
Definition polygongraphicsitem.h:48
The SymbolGraphicsItem class.
Definition symbolgraphicsitem.h:55
std::shared_ptr< CircleGraphicsItem > getGraphicsItem(std::shared_ptr< Circle > circle) noexcept
Definition symbolgraphicsitem.h:86
QMap< std::shared_ptr< Polygon >, std::shared_ptr< PolygonGraphicsItem > > mPolygonGraphicsItems
Definition symbolgraphicsitem.h:143
QPointer< const Component > mComponent
Definition symbolgraphicsitem.h:134
std::shared_ptr< const ComponentSymbolVariantItem > mItem
Definition symbolgraphicsitem.h:135
void syncCircles() noexcept
Definition symbolgraphicsitem.cpp:281
QList< std::shared_ptr< QGraphicsItem > > findItemsAtPos(const QPainterPath &posAreaSmall, const QPainterPath &posAreaLarge, FindFlags flags) noexcept
Definition symbolgraphicsitem.cpp:134
QList< std::shared_ptr< CircleGraphicsItem > > getSelectedCircles() noexcept
Definition symbolgraphicsitem.cpp:91
Symbol & mSymbol
Definition symbolgraphicsitem.h:132
std::shared_ptr< SymbolPinGraphicsItem > getGraphicsItem(std::shared_ptr< SymbolPin > pin) noexcept
Definition symbolgraphicsitem.h:82
void syncImages() noexcept
Definition symbolgraphicsitem.cpp:351
const GraphicsLayerList & mLayers
Definition symbolgraphicsitem.h:133
QList< std::shared_ptr< PolygonGraphicsItem > > getSelectedPolygons() noexcept
Definition symbolgraphicsitem.cpp:102
QList< std::shared_ptr< ImageGraphicsItem > > getSelectedImages() noexcept
Definition symbolgraphicsitem.cpp:124
void symbolEdited(const Symbol &symbol, Symbol::Event event) noexcept
Definition symbolgraphicsitem.cpp:376
std::shared_ptr< ImageGraphicsItem > getGraphicsItem(std::shared_ptr< Image > iamge) noexcept
Definition symbolgraphicsitem.h:98
void updateAllTexts() noexcept
Definition symbolgraphicsitem.cpp:220
std::shared_ptr< TextGraphicsItem > getGraphicsItem(std::shared_ptr< Text > text) noexcept
Definition symbolgraphicsitem.h:94
QMap< std::shared_ptr< Circle >, std::shared_ptr< CircleGraphicsItem > > mCircleGraphicsItems
Definition symbolgraphicsitem.h:141
void syncPins() noexcept
Definition symbolgraphicsitem.cpp:258
FindFlag
Definition symbolgraphicsitem.h:57
void syncTexts() noexcept
Definition symbolgraphicsitem.cpp:328
void setSelectionRect(const QRectF rect) noexcept
Definition symbolgraphicsitem.cpp:229
QMap< std::shared_ptr< Image >, std::shared_ptr< ImageGraphicsItem > > mImageGraphicsItems
Definition symbolgraphicsitem.h:147
std::shared_ptr< PolygonGraphicsItem > getGraphicsItem(std::shared_ptr< Polygon > polygon) noexcept
Definition symbolgraphicsitem.h:90
void setRotation(const Angle &rot) noexcept
Definition symbolgraphicsitem.cpp:216
QList< std::shared_ptr< TextGraphicsItem > > getSelectedTexts() noexcept
Definition symbolgraphicsitem.cpp:113
QMap< std::shared_ptr< SymbolPin >, std::shared_ptr< SymbolPinGraphicsItem > > mPinGraphicsItems
Definition symbolgraphicsitem.h:139
void syncPolygons() noexcept
Definition symbolgraphicsitem.cpp:304
Symbol::OnEditedSlot mOnEditedSlot
Definition symbolgraphicsitem.h:150
void substituteText(TextGraphicsItem &text) noexcept
Definition symbolgraphicsitem.cpp:400
const bool mHideUnusedPins
Definition symbolgraphicsitem.h:137
const QStringList mLocaleOrder
Definition symbolgraphicsitem.h:136
void setPosition(const Point &pos) noexcept
Definition symbolgraphicsitem.cpp:212
QMap< std::shared_ptr< Text >, std::shared_ptr< TextGraphicsItem > > mTextGraphicsItems
Definition symbolgraphicsitem.h:145
QList< std::shared_ptr< SymbolPinGraphicsItem > > getSelectedPins() noexcept
Definition symbolgraphicsitem.cpp:80
The SymbolPinGraphicsItem class.
Definition symbolpingraphicsitem.h:50
The TextGraphicsItem class is the graphical representation of a librepcb::Text.
Definition textgraphicsitem.h:49
Definition occmodel.cpp:77