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

The ComponentGateEditor class. More...

#include <componentgateeditor.h>

Inherits QObject.

+ Collaboration diagram for ComponentGateEditor:

Signals

void uiDataChanged ()
 

Public Member Functions

 ComponentGateEditor ()=delete
 
 ComponentGateEditor (const ComponentGateEditor &other)=delete
 
 ComponentGateEditor (const Workspace &ws, const GraphicsLayerList &layers, const LibraryElementCache &cache, QPointer< const Component > component, QPointer< GraphicsScene > componentScene, const std::shared_ptr< ComponentSignalNameListModel > &sigs, std::shared_ptr< ComponentSymbolVariantItem > gate, UndoStack *stack, QObject *parent=nullptr) noexcept
 
 ~ComponentGateEditor () noexcept
 
ui::ComponentGateData getUiData () const
 
void setUiData (const ui::ComponentGateData &data) noexcept
 
slint::Image renderScene (float width, float height) noexcept
 
void chooseSymbol ()
 
void refreshPreview () noexcept
 
ComponentGateEditoroperator= (const ComponentGateEditor &rhs)=delete
 

Private Member Functions

void reloadSymbol () noexcept
 
void execCmd (UndoCommand *cmd)
 

Private Attributes

const WorkspacemWorkspace
 
const GraphicsLayerListmLayers
 
const LibraryElementCachemCache
 
const QPointer< const ComponentmComponent
 
QPointer< GraphicsScenemComponentScene
 
std::shared_ptr< ComponentSignalNameListModelmSignals
 
std::shared_ptr< ComponentSymbolVariantItemmGate
 
UndoStackmUndoStack
 
QCollator mCollator
 
int mFrameIndex
 
std::shared_ptr< const SymbolmSymbol
 
std::unique_ptr< GraphicsScenemScene
 
std::unique_ptr< SymbolGraphicsItemmGraphicsItem
 
std::unique_ptr< SymbolGraphicsItemmComponentGraphicsItem
 
QMetaObject::Connection mCacheConnection
 
std::shared_ptr< ComponentPinoutListModelmPinout
 
std::shared_ptr< slint::SortModel< ui::ComponentPinoutData > > mPinoutSorted
 

Detailed Description

Constructor & Destructor Documentation

◆ ComponentGateEditor() [1/3]

ComponentGateEditor ( )
delete

◆ ComponentGateEditor() [2/3]

ComponentGateEditor ( const ComponentGateEditor other)
delete

◆ ComponentGateEditor() [3/3]

ComponentGateEditor ( const Workspace ws,
const GraphicsLayerList layers,
const LibraryElementCache cache,
QPointer< const Component component,
QPointer< GraphicsScene componentScene,
const std::shared_ptr< ComponentSignalNameListModel > &  sigs,
std::shared_ptr< ComponentSymbolVariantItem gate,
UndoStack stack,
QObject *  parent = nullptr 
)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~ComponentGateEditor()

~ComponentGateEditor ( )
noexcept

Member Function Documentation

◆ getUiData()

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

◆ setUiData()

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

◆ renderScene()

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

◆ chooseSymbol()

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

◆ refreshPreview()

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

◆ operator=()

ComponentGateEditor & operator= ( const ComponentGateEditor rhs)
delete

◆ uiDataChanged

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

◆ reloadSymbol()

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

◆ execCmd()

void execCmd ( UndoCommand cmd)
private
+ 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<const Component> mComponent
private

◆ mComponentScene

QPointer<GraphicsScene> mComponentScene
private

◆ mSignals

std::shared_ptr<ComponentSignalNameListModel> mSignals
private

◆ mGate

std::shared_ptr<ComponentSymbolVariantItem> mGate
private

◆ mUndoStack

UndoStack* mUndoStack
private

◆ mCollator

QCollator mCollator
private

◆ mFrameIndex

int mFrameIndex
private

◆ mSymbol

std::shared_ptr<const Symbol> mSymbol
private

◆ mScene

std::unique_ptr<GraphicsScene> mScene
private

◆ mGraphicsItem

std::unique_ptr<SymbolGraphicsItem> mGraphicsItem
private

◆ mComponentGraphicsItem

std::unique_ptr<SymbolGraphicsItem> mComponentGraphicsItem
private

◆ mCacheConnection

QMetaObject::Connection mCacheConnection
private

◆ mPinout

std::shared_ptr<ComponentPinoutListModel> mPinout
private

◆ mPinoutSorted

std::shared_ptr<slint::SortModel<ui::ComponentPinoutData> > mPinoutSorted
private

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