LibrePCB Developers Documentation
ComponentSymbolVariantItemListEditorWidget Class Referencefinal

The ComponentSymbolVariantItemListEditorWidget class. More...

#include <componentsymbolvariantitemlisteditorwidget.h>

Inherits QWidget.

+ Collaboration diagram for ComponentSymbolVariantItemListEditorWidget:

Signals

void edited ()
 
void triggerGraphicsItemsUpdate ()
 
void triggerGraphicsItemsTextsUpdate ()
 

Public Member Functions

 ComponentSymbolVariantItemListEditorWidget (QWidget *parent=nullptr) noexcept
 
 ComponentSymbolVariantItemListEditorWidget (const ComponentSymbolVariantItemListEditorWidget &other)=delete
 
 ~ComponentSymbolVariantItemListEditorWidget () noexcept
 
void setReadOnly (bool readOnly) noexcept
 
void setReferences (const Workspace &ws, const IF_GraphicsLayerProvider &layerProvider, ComponentSymbolVariantItemList &items, const std::shared_ptr< const LibraryElementCache > &symbolCache, UndoStack *undoStack) noexcept
 
void resetReferences () 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 QPersistentModelIndex &itemIndex) noexcept
 

Private Attributes

QScopedPointer< ComponentSymbolVariantItemListModelmModel
 
QScopedPointer< EditableTableWidgetmView
 
const 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

◆ setReadOnly()

void setReadOnly ( bool  readOnly)
noexcept

◆ setReferences()

void setReferences ( const 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:

◆ resetReferences()

void resetReferences ( )
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:

◆ triggerGraphicsItemsTextsUpdate

void triggerGraphicsItemsTextsUpdate ( )
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 QPersistentModelIndex &  itemIndex)
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* 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: