20#ifndef LIBREPCB_EDITOR_COMPONENTSYMBOLVARIANTEDITDIALOG_H
21#define LIBREPCB_EDITOR_COMPONENTSYMBOLVARIANTEDITDIALOG_H
44class DefaultGraphicsLayerProvider;
46class LibraryElementCache;
47class SymbolGraphicsItem;
50class ComponentSymbolVariantEditDialog;
69 const Workspace& ws, std::shared_ptr<const Component> cmp,
70 std::shared_ptr<ComponentSymbolVariant> symbVar,
71 QWidget* parent =
nullptr) noexcept;
82 void accept() noexcept override;
The Component class represents a "generic" device in the library.
Definition: component.h:73
The ComponentSymbolVariant class represents a symbol variant of a component.
Definition: componentsymbolvariant.h:53
The Symbol class represents the part of a component which is added to schematics.
Definition: symbol.h:55
The Workspace class represents a workspace with all its data (library, projects, settings,...
Definition: workspace.h:54
The ComponentSymbolVariantEditDialog class.
Definition: componentsymbolvarianteditdialog.h:60
QList< std::shared_ptr< SymbolGraphicsItem > > mGraphicsItems
Definition: componentsymbolvarianteditdialog.h:100
QScopedPointer< Ui::ComponentSymbolVariantEditDialog > mUi
Definition: componentsymbolvarianteditdialog.h:95
bool mPreviewUpdateScheduled
Definition: componentsymbolvarianteditdialog.h:97
std::shared_ptr< ComponentSymbolVariant > mOriginalSymbVar
Definition: componentsymbolvarianteditdialog.h:90
void setReadOnly(bool readOnly) noexcept
Definition: componentsymbolvarianteditdialog.cpp:114
QScopedPointer< GraphicsScene > mGraphicsScene
Definition: componentsymbolvarianteditdialog.h:92
void updatePreview() noexcept
Definition: componentsymbolvarianteditdialog.cpp:163
std::shared_ptr< const Component > mComponent
Definition: componentsymbolvarianteditdialog.h:89
ComponentSymbolVariant mSymbVar
Definition: componentsymbolvarianteditdialog.h:91
QScopedPointer< DefaultGraphicsLayerProvider > mGraphicsLayerProvider
Definition: componentsymbolvarianteditdialog.h:93
ComponentSymbolVariantEditDialog(const ComponentSymbolVariantEditDialog &other)=delete
ComponentSymbolVariantEditDialog()=delete
const Workspace & mWorkspace
Definition: componentsymbolvarianteditdialog.h:88
void schedulePreviewUpdate() noexcept
Definition: componentsymbolvarianteditdialog.cpp:147
std::shared_ptr< LibraryElementCache > mLibraryElementCache
Definition: componentsymbolvarianteditdialog.h:94
bool mPreviewTextsUpdateScheduled
Definition: componentsymbolvarianteditdialog.h:98
QList< std::shared_ptr< Symbol > > mSymbols
Definition: componentsymbolvarianteditdialog.h:99
void schedulePreviewTextsUpdate() noexcept
Definition: componentsymbolvarianteditdialog.cpp:155
void accept() noexcept override
Definition: componentsymbolvarianteditdialog.cpp:133
The DefaultGraphicsLayerProvider class.
Definition: defaultgraphicslayerprovider.h:46
The GraphicsScene class.
Definition: graphicsscene.h:45
Cache for fast access to library elements.
Definition: libraryelementcache.h:55
The SymbolGraphicsItem class.
Definition: symbolgraphicsitem.h:56
Definition: occmodel.cpp:77