20#ifndef LIBREPCB_EDITOR_COMPONENTGATEEDITOR_H
21#define LIBREPCB_EDITOR_COMPONENTGATEEDITOR_H
36class ComponentSymbolVariantItem;
42class ComponentPinoutListModel;
43class ComponentSignalNameListModel;
44class GraphicsLayerList;
46class LibraryElementCache;
47class SymbolGraphicsItem;
68 QPointer<GraphicsScene> componentScene,
69 const std::shared_ptr<ComponentSignalNameListModel>& sigs,
70 std::shared_ptr<ComponentSymbolVariantItem> gate,
UndoStack* stack,
71 QObject* parent =
nullptr) noexcept;
76 void setUiData(const ui::ComponentGateData& data) noexcept;
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 Symbol class represents the part of a component which is added to schematics.
Definition symbol.h:56
The Workspace class represents a workspace with all its data (library, projects, settings,...
Definition workspace.h:54
The ComponentGateEditor class.
Definition componentgateeditor.h:58
ComponentGateEditor(const ComponentGateEditor &other)=delete
void chooseSymbol()
Definition componentgateeditor.cpp:153
std::shared_ptr< slint::SortModel< ui::ComponentPinoutData > > mPinoutSorted
Definition componentgateeditor.h:110
slint::Image renderScene(float width, float height) noexcept
Definition componentgateeditor.cpp:141
int mFrameIndex
Definition componentgateeditor.h:101
void setUiData(const ui::ComponentGateData &data) noexcept
Definition componentgateeditor.cpp:120
void execCmd(UndoCommand *cmd)
Definition componentgateeditor.cpp:257
std::shared_ptr< ComponentSymbolVariantItem > mGate
Definition componentgateeditor.h:98
void refreshPreview() noexcept
Definition componentgateeditor.cpp:186
const GraphicsLayerList & mLayers
Definition componentgateeditor.h:93
std::unique_ptr< SymbolGraphicsItem > mComponentGraphicsItem
Definition componentgateeditor.h:106
std::unique_ptr< SymbolGraphicsItem > mGraphicsItem
Definition componentgateeditor.h:105
QMetaObject::Connection mCacheConnection
Definition componentgateeditor.h:107
const Workspace & mWorkspace
Definition componentgateeditor.h:92
const QPointer< const Component > mComponent
Definition componentgateeditor.h:95
const LibraryElementCache & mCache
Definition componentgateeditor.h:94
ComponentGateEditor()=delete
QPointer< GraphicsScene > mComponentScene
Definition componentgateeditor.h:96
std::unique_ptr< GraphicsScene > mScene
Definition componentgateeditor.h:104
QCollator mCollator
Definition componentgateeditor.h:100
ui::ComponentGateData getUiData() const
Definition componentgateeditor.cpp:102
std::shared_ptr< const Symbol > mSymbol
Definition componentgateeditor.h:103
UndoStack * mUndoStack
Definition componentgateeditor.h:99
std::shared_ptr< ComponentSignalNameListModel > mSignals
Definition componentgateeditor.h:97
std::shared_ptr< ComponentPinoutListModel > mPinout
Definition componentgateeditor.h:109
void reloadSymbol() noexcept
Definition componentgateeditor.cpp:205
The ComponentPinoutListModel class.
Definition componentpinoutlistmodel.h:52
The ComponentSignalNameListModel class.
Definition componentsignalnamelistmodel.h:50
The GraphicsLayerList class.
Definition graphicslayerlist.h:48
The GraphicsScene class.
Definition graphicsscene.h:64
Cache for fast access to library elements.
Definition libraryelementcache.h:56
The SymbolGraphicsItem class.
Definition symbolgraphicsitem.h:55
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
The UndoStack class holds UndoCommand objects and provides undo/redo commands.
Definition undostack.h:106
Definition occmodel.cpp:77