20 #ifndef LIBREPCB_EDITOR_COMPONENTSYMBOLVARIANTEDITDIALOG_H 21 #define LIBREPCB_EDITOR_COMPONENTSYMBOLVARIANTEDITDIALOG_H 44 class DefaultGraphicsLayerProvider;
46 class LibraryElementCache;
47 class SymbolGraphicsItem;
50 class ComponentSymbolVariantEditDialog;
69 const Workspace& ws, std::shared_ptr<const Component> cmp,
70 std::shared_ptr<ComponentSymbolVariant> symbVar,
71 QWidget* parent =
nullptr) noexcept;
75 void setReadOnly(
bool readOnly) noexcept;
82 void accept() noexcept
override;
83 void schedulePreviewUpdate() noexcept;
84 void schedulePreviewTextsUpdate() noexcept;
85 void updatePreview() noexcept;
95 QScopedPointer<Ui::ComponentSymbolVariantEditDialog>
mUi;
bool mPreviewTextsUpdateScheduled
Definition: componentsymbolvarianteditdialog.h:98
QScopedPointer< DefaultGraphicsLayerProvider > mGraphicsLayerProvider
Definition: componentsymbolvarianteditdialog.h:93
Definition: occmodel.cpp:77
QScopedPointer< Ui::ComponentSymbolVariantEditDialog > mUi
Definition: componentsymbolvarianteditdialog.h:95
ComponentSymbolVariant mSymbVar
Definition: componentsymbolvarianteditdialog.h:91
QList< std::shared_ptr< SymbolGraphicsItem > > mGraphicsItems
Definition: componentsymbolvarianteditdialog.h:100
The ComponentSymbolVariantEditDialog class.
Definition: componentsymbolvarianteditdialog.h:60
std::shared_ptr< ComponentSymbolVariant > mOriginalSymbVar
Definition: componentsymbolvarianteditdialog.h:90
QList< std::shared_ptr< Symbol > > mSymbols
Definition: componentsymbolvarianteditdialog.h:99
std::shared_ptr< const Component > mComponent
Definition: componentsymbolvarianteditdialog.h:89
bool mPreviewUpdateScheduled
Definition: componentsymbolvarianteditdialog.h:97
The ComponentSymbolVariant class represents a symbol variant of a component.
Definition: componentsymbolvariant.h:53
std::shared_ptr< LibraryElementCache > mLibraryElementCache
Definition: componentsymbolvarianteditdialog.h:94
const Workspace & mWorkspace
Definition: componentsymbolvarianteditdialog.h:88
The Workspace class represents a workspace with all its data (library, projects, settings, ...)
Definition: workspace.h:54
QScopedPointer< GraphicsScene > mGraphicsScene
Definition: componentsymbolvarianteditdialog.h:92