LibrePCB Developers Documentation
ComponentSymbolVariantEditDialog Class Referencefinal

The ComponentSymbolVariantEditDialog class. More...

#include <componentsymbolvarianteditdialog.h>

Inherits QDialog.

+ Collaboration diagram for ComponentSymbolVariantEditDialog:

Public Member Functions

 ComponentSymbolVariantEditDialog ()=delete
 
 ComponentSymbolVariantEditDialog (const ComponentSymbolVariantEditDialog &other)=delete
 
 ComponentSymbolVariantEditDialog (const Workspace &ws, std::shared_ptr< const Component > cmp, std::shared_ptr< ComponentSymbolVariant > symbVar, QWidget *parent=nullptr) noexcept
 
 ~ComponentSymbolVariantEditDialog () noexcept
 
void setReadOnly (bool readOnly) noexcept
 
ComponentSymbolVariantEditDialogoperator= (const ComponentSymbolVariantEditDialog &rhs)=delete
 

Private Member Functions

void accept () noexcept override
 
void schedulePreviewUpdate () noexcept
 
void schedulePreviewTextsUpdate () noexcept
 
void updatePreview () noexcept
 

Private Attributes

const WorkspacemWorkspace
 
std::shared_ptr< const ComponentmComponent
 
std::shared_ptr< ComponentSymbolVariantmOriginalSymbVar
 
ComponentSymbolVariant mSymbVar
 
QScopedPointer< GraphicsScenemGraphicsScene
 
QScopedPointer< DefaultGraphicsLayerProvidermGraphicsLayerProvider
 
std::shared_ptr< LibraryElementCachemLibraryElementCache
 
QScopedPointer< Ui::ComponentSymbolVariantEditDialog > mUi
 
bool mPreviewUpdateScheduled
 
bool mPreviewTextsUpdateScheduled
 
QList< std::shared_ptr< Symbol > > mSymbols
 
QList< std::shared_ptr< SymbolGraphicsItem > > mGraphicsItems
 

Detailed Description

Constructor & Destructor Documentation

◆ ComponentSymbolVariantEditDialog() [1/3]

◆ ComponentSymbolVariantEditDialog() [2/3]

◆ ComponentSymbolVariantEditDialog() [3/3]

ComponentSymbolVariantEditDialog ( const Workspace ws,
std::shared_ptr< const Component cmp,
std::shared_ptr< ComponentSymbolVariant symbVar,
QWidget *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ ~ComponentSymbolVariantEditDialog()

Member Function Documentation

◆ setReadOnly()

void setReadOnly ( bool  readOnly)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

◆ accept()

void accept ( )
overrideprivatenoexcept
+ Here is the call graph for this function:

◆ schedulePreviewUpdate()

void schedulePreviewUpdate ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ schedulePreviewTextsUpdate()

void schedulePreviewTextsUpdate ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updatePreview()

void updatePreview ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mWorkspace

const Workspace& mWorkspace
private

◆ mComponent

std::shared_ptr<const Component> mComponent
private

◆ mOriginalSymbVar

std::shared_ptr<ComponentSymbolVariant> mOriginalSymbVar
private

◆ mSymbVar

ComponentSymbolVariant mSymbVar
private

◆ mGraphicsScene

QScopedPointer<GraphicsScene> mGraphicsScene
private

◆ mGraphicsLayerProvider

QScopedPointer<DefaultGraphicsLayerProvider> mGraphicsLayerProvider
private

◆ mLibraryElementCache

std::shared_ptr<LibraryElementCache> mLibraryElementCache
private

◆ mUi

QScopedPointer<Ui::ComponentSymbolVariantEditDialog> mUi
private

◆ mPreviewUpdateScheduled

bool mPreviewUpdateScheduled
private

◆ mPreviewTextsUpdateScheduled

bool mPreviewTextsUpdateScheduled
private

◆ mSymbols

QList<std::shared_ptr<Symbol> > mSymbols
private

◆ mGraphicsItems

QList<std::shared_ptr<SymbolGraphicsItem> > mGraphicsItems
private

The documentation for this class was generated from the following files: