LibrePCB Developers Documentation
ComponentSymbolVariantItemListEditorWidget Class Referencefinal

The ComponentSymbolVariantItemListEditorWidget class. More...

#include <componentsymbolvariantitemlisteditorwidget.h>

Inherits QWidget.

+ Collaboration diagram for ComponentSymbolVariantItemListEditorWidget:

Signals

void edited ()
 
void triggerGraphicsItemsUpdate ()
 

Public Member Functions

 ComponentSymbolVariantItemListEditorWidget (QWidget *parent=nullptr) noexcept
 
 ComponentSymbolVariantItemListEditorWidget (const ComponentSymbolVariantItemListEditorWidget &other)=delete
 
 ~ComponentSymbolVariantItemListEditorWidget () noexcept
 
void setReferences (const workspace::Workspace &ws, const IF_GraphicsLayerProvider &layerProvider, ComponentSymbolVariantItemList &items, const std::shared_ptr< const LibraryElementCache > &symbolCache, UndoStack *undoStack) noexcept
 
ComponentSymbolVariantItemListEditorWidgetoperator= (const ComponentSymbolVariantItemListEditorWidget &rhs)=delete
 

Private Member Functions

void itemListEdited (const ComponentSymbolVariantItemList &list, int index, const std::shared_ptr< const ComponentSymbolVariantItem > &item, ComponentSymbolVariantItemList::Event event) noexcept
 
void itemEdited (const ComponentSymbolVariantItemList &list, int index, const std::shared_ptr< const ComponentSymbolVariantItem > &item, ComponentSymbolVariantItem::Event event) noexcept
 
void btnSymbolBrowseClicked (const QVariant &data) noexcept
 

Private Attributes

QScopedPointer< ComponentSymbolVariantItemListModelmModel
 
QScopedPointer< EditableTableWidgetmView
 
const workspace::WorkspacemWorkspace
 
const IF_GraphicsLayerProvidermLayerProvider
 
ComponentSymbolVariantItemList::OnEditedSlot mOnItemListEditedSlot
 
ComponentSymbolVariantItemList::OnElementEditedSlot mOnItemEditedSlot
 

Detailed Description

Constructor & Destructor Documentation

◆ ComponentSymbolVariantItemListEditorWidget() [1/2]

ComponentSymbolVariantItemListEditorWidget ( QWidget *  parent = nullptr)
explicitnoexcept
+ Here is the call graph for this function:

◆ ComponentSymbolVariantItemListEditorWidget() [2/2]

◆ ~ComponentSymbolVariantItemListEditorWidget()

+ Here is the caller graph for this function:

Member Function Documentation

◆ setReferences()

void setReferences ( const workspace::Workspace ws,
const IF_GraphicsLayerProvider layerProvider,
ComponentSymbolVariantItemList items,
const std::shared_ptr< const LibraryElementCache > &  symbolCache,
UndoStack undoStack 
)
noexcept
+ Here is the call graph for this function:

◆ operator=()

◆ edited

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

◆ triggerGraphicsItemsUpdate

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

◆ itemListEdited()

void itemListEdited ( const ComponentSymbolVariantItemList list,
int  index,
const std::shared_ptr< const ComponentSymbolVariantItem > &  item,
ComponentSymbolVariantItemList::Event  event 
)
privatenoexcept

◆ itemEdited()

void itemEdited ( const ComponentSymbolVariantItemList list,
int  index,
const std::shared_ptr< const ComponentSymbolVariantItem > &  item,
ComponentSymbolVariantItem::Event  event 
)
privatenoexcept

◆ btnSymbolBrowseClicked()

void btnSymbolBrowseClicked ( const QVariant &  data)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mModel

QScopedPointer<ComponentSymbolVariantItemListModel> mModel
private

◆ mView

QScopedPointer<EditableTableWidget> mView
private

◆ mWorkspace

const workspace::Workspace* mWorkspace
private

◆ mLayerProvider

const IF_GraphicsLayerProvider* mLayerProvider
private

◆ mOnItemListEditedSlot

ComponentSymbolVariantItemList::OnEditedSlot mOnItemListEditedSlot
private

◆ mOnItemEditedSlot


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