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

The ComponentGateListModel class. More...

#include <componentgatelistmodel.h>

Inherits QObject, and Model< ui::ComponentGateData >.

+ Collaboration diagram for ComponentGateListModel:

Public Member Functions

 ComponentGateListModel ()=delete
 
 ComponentGateListModel (const ComponentGateListModel &other)=delete
 
 ComponentGateListModel (const Workspace &ws, const GraphicsLayerList &layers, const LibraryElementCache &cache, QObject *parent=nullptr) noexcept
 
 ~ComponentGateListModel () noexcept
 
void setReferences (ComponentSymbolVariantItemList *list, QPointer< Component > component, QPointer< GraphicsScene > componentScene, const std::shared_ptr< ComponentSignalNameListModel > &sigs, UndoStack *stack, const bool *wizardMode) noexcept
 
slint::Image renderScene (int gate, float width, float height) noexcept
 
void add ()
 
std::size_t row_count () const override
 
std::optional< ui::ComponentGateData > row_data (std::size_t i) const override
 
void set_row_data (std::size_t i, const ui::ComponentGateData &data) noexcept override
 
ComponentGateListModeloperator= (const ComponentGateListModel &rhs)=delete
 

Private Member Functions

void trigger (int index, std::shared_ptr< ComponentSymbolVariantItem > obj, ui::ComponentGateAction a) noexcept
 
void listEdited (const ComponentSymbolVariantItemList &list, int index, const std::shared_ptr< const ComponentSymbolVariantItem > &item, ComponentSymbolVariantItemList::Event event) noexcept
 
void gateUiDataChanged () noexcept
 
void execCmd (UndoCommand *cmd, bool updateSuffixes)
 
std::unique_ptr< UndoCommandGroupcreateSuffixUpdateCmd ()
 

Private Attributes

const WorkspacemWorkspace
 
const GraphicsLayerListmLayers
 
const LibraryElementCachemCache
 
QPointer< ComponentmComponent
 
QPointer< GraphicsScenemComponentScene
 
std::shared_ptr< ComponentSignalNameListModelmSignals
 
ComponentSymbolVariantItemListmList
 
QPointer< UndoStackmUndoStack
 
const bool * mWizardMode
 
QList< std::shared_ptr< ComponentGateEditor > > mItems
 
ComponentSymbolVariantItemList::OnEditedSlot mOnEditedSlot
 

Detailed Description

Constructor & Destructor Documentation

◆ ComponentGateListModel() [1/3]

◆ ComponentGateListModel() [2/3]

◆ ComponentGateListModel() [3/3]

ComponentGateListModel ( const Workspace ws,
const GraphicsLayerList layers,
const LibraryElementCache cache,
QObject *  parent = nullptr 
)
explicitnoexcept

◆ ~ComponentGateListModel()

~ComponentGateListModel ( )
noexcept

Member Function Documentation

◆ setReferences()

void setReferences ( ComponentSymbolVariantItemList list,
QPointer< Component component,
QPointer< GraphicsScene componentScene,
const std::shared_ptr< ComponentSignalNameListModel > &  sigs,
UndoStack stack,
const bool *  wizardMode 
)
noexcept
+ Here is the call graph for this function:

◆ renderScene()

slint::Image renderScene ( int  gate,
float  width,
float  height 
)
noexcept

◆ add()

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

◆ row_count()

std::size_t row_count ( ) const
override

◆ row_data()

std::optional< ui::ComponentGateData > row_data ( std::size_t  i) const
override

◆ set_row_data()

void set_row_data ( std::size_t  i,
const ui::ComponentGateData &  data 
)
overridenoexcept

◆ operator=()

ComponentGateListModel & operator= ( const ComponentGateListModel rhs)
delete

◆ trigger()

void trigger ( int  index,
std::shared_ptr< ComponentSymbolVariantItem obj,
ui::ComponentGateAction  a 
)
privatenoexcept
+ Here is the call graph for this function:

◆ listEdited()

void listEdited ( const ComponentSymbolVariantItemList list,
int  index,
const std::shared_ptr< const ComponentSymbolVariantItem > &  item,
ComponentSymbolVariantItemList::Event  event 
)
privatenoexcept
+ Here is the call graph for this function:

◆ gateUiDataChanged()

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

◆ execCmd()

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

◆ createSuffixUpdateCmd()

std::unique_ptr< UndoCommandGroup > createSuffixUpdateCmd ( )
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

QPointer<Component> mComponent
private

◆ mComponentScene

QPointer<GraphicsScene> mComponentScene
private

◆ mSignals

std::shared_ptr<ComponentSignalNameListModel> mSignals
private

◆ mList

◆ mUndoStack

QPointer<UndoStack> mUndoStack
private

◆ mWizardMode

const bool* mWizardMode
private

◆ mItems

QList<std::shared_ptr<ComponentGateEditor> > mItems
private

◆ mOnEditedSlot


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