LibrePCB Developers Documentation
Loading...
Searching...
No Matches
ComponentVariantEditor Class Referencefinal

The ComponentVariantEditor class. More...

#include <componentvarianteditor.h>

Inherits QObject.

+ Collaboration diagram for ComponentVariantEditor:

Signals

void uiDataChanged ()
 

Public Member Functions

 ComponentVariantEditor ()=delete
 
 ComponentVariantEditor (const ComponentVariantEditor &other)=delete
 
 ComponentVariantEditor (const Workspace &ws, const GraphicsLayerList &layers, const LibraryElementCache &cache, QPointer< Component > component, const std::shared_ptr< ComponentSignalNameListModel > &sigs, std::shared_ptr< ComponentSymbolVariant > variant, UndoStack *stack, const bool *wizardMode, QObject *parent=nullptr) noexcept
 
 ~ComponentVariantEditor () noexcept
 
ui::ComponentVariantData getUiData () const
 
void setUiData (const ui::ComponentVariantData &data) noexcept
 
slint::Image renderScene (int gate, float width, float height) noexcept
 
void addGate ()
 
void autoConnectPins ()
 
void updateUnassignedSignals () noexcept
 
ComponentVariantEditoroperator= (const ComponentVariantEditor &rhs)=delete
 

Private Member Functions

void execCmd (UndoCommand *cmd)
 

Static Private Member Functions

static QString appendNumberToSignalName (QString name, int number) noexcept
 

Private Attributes

const WorkspacemWorkspace
 
const GraphicsLayerListmLayers
 
const LibraryElementCachemCache
 
const QPointer< ComponentmComponent
 
std::shared_ptr< ComponentSymbolVariantmVariant
 
QPointer< UndoStackmUndoStack
 
const bool * mWizardMode
 
std::unique_ptr< GraphicsScenemScene
 
int mFrameIndex
 
std::shared_ptr< ComponentGateListModelmGates
 
bool mHasUnassignedSignals
 

Detailed Description

Constructor & Destructor Documentation

◆ ComponentVariantEditor() [1/3]

◆ ComponentVariantEditor() [2/3]

◆ ComponentVariantEditor() [3/3]

ComponentVariantEditor ( const Workspace ws,
const GraphicsLayerList layers,
const LibraryElementCache cache,
QPointer< Component component,
const std::shared_ptr< ComponentSignalNameListModel > &  sigs,
std::shared_ptr< ComponentSymbolVariant variant,
UndoStack stack,
const bool *  wizardMode,
QObject *  parent = nullptr 
)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~ComponentVariantEditor()

~ComponentVariantEditor ( )
noexcept

Member Function Documentation

◆ getUiData()

ui::ComponentVariantData getUiData ( ) const
+ Here is the call graph for this function:

◆ setUiData()

void setUiData ( const ui::ComponentVariantData &  data)
noexcept
+ Here is the call graph for this function:

◆ renderScene()

slint::Image renderScene ( int  gate,
float  width,
float  height 
)
noexcept
+ Here is the call graph for this function:

◆ addGate()

void addGate ( )

◆ autoConnectPins()

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

◆ updateUnassignedSignals()

void updateUnassignedSignals ( )
noexcept
+ Here is the caller graph for this function:

◆ operator=()

ComponentVariantEditor & operator= ( const ComponentVariantEditor rhs)
delete

◆ uiDataChanged

void uiDataChanged ( )
signal
+ Here is the caller graph for this function:

◆ execCmd()

void execCmd ( UndoCommand cmd)
private
+ Here is the caller graph for this function:

◆ appendNumberToSignalName()

QString appendNumberToSignalName ( QString  name,
int  number 
)
staticprivatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mWorkspace

const Workspace& mWorkspace
private

◆ mLayers

const GraphicsLayerList& mLayers
private

◆ mCache

const LibraryElementCache& mCache
private

◆ mComponent

const QPointer<Component> mComponent
private

◆ mVariant

std::shared_ptr<ComponentSymbolVariant> mVariant
private

◆ mUndoStack

QPointer<UndoStack> mUndoStack
private

◆ mWizardMode

const bool* mWizardMode
private

◆ mScene

std::unique_ptr<GraphicsScene> mScene
private

◆ mFrameIndex

int mFrameIndex
private

◆ mGates

std::shared_ptr<ComponentGateListModel> mGates
private

◆ mHasUnassignedSignals

bool mHasUnassignedSignals
private

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