LibrePCB Developers Documentation
ComponentAssemblyOptionListEditorWidget Class Referencefinal

The ComponentAssemblyOptionListEditorWidget class. More...

#include <componentassemblyoptionlisteditorwidget.h>

Inherits QWidget.

+ Collaboration diagram for ComponentAssemblyOptionListEditorWidget:

Signals

void selectedPartChanged (std::shared_ptr< Part > part)
 

Public Member Functions

 ComponentAssemblyOptionListEditorWidget (QWidget *parent=nullptr) noexcept
 
 ComponentAssemblyOptionListEditorWidget (const ComponentAssemblyOptionListEditorWidget &other)=delete
 
 ~ComponentAssemblyOptionListEditorWidget () noexcept
 
const ComponentAssemblyOptionListgetOptions () const noexcept
 
void setFrameStyle (int style) noexcept
 
void setReferences (const Workspace *ws, const Project *project, ComponentInstance *component) noexcept
 
ComponentAssemblyOptionListEditorWidgetoperator= (const ComponentAssemblyOptionListEditorWidget &rhs)=delete
 

Private Types

enum  Column
 

Private Member Functions

void addOption () noexcept
 
bool addPart () noexcept
 
void editOptionOrPart () noexcept
 
void removeOptionOrPart () noexcept
 
void itemChanged (QTreeWidgetItem *item, int column) noexcept
 
void itemSelectionChanged () noexcept
 
std::pair< int, int > getIndices (QTreeWidgetItem *item) noexcept
 
void optionListEdited (const ComponentAssemblyOptionList &list, int index, const std::shared_ptr< const ComponentAssemblyOption > &obj, ComponentAssemblyOptionList::Event event) noexcept
 

Private Attributes

QPointer< const WorkspacemWorkspace
 
QPointer< const ProjectmProject
 
QPointer< ComponentInstancemComponent
 
bool mMultiAssemblyVariantMode
 
ComponentAssemblyOptionList mOptions
 
QScopedPointer< QTreeWidget > mTreeWidget
 
QScopedPointer< QToolButton > mAddOptionButton
 
QScopedPointer< QToolButton > mAddPartButton
 
QScopedPointer< QToolButton > mEditButton
 
QScopedPointer< QToolButton > mRemoveButton
 
ComponentAssemblyOptionList::OnEditedSlot mOnListEditedSlot
 

Detailed Description

Member Enumeration Documentation

◆ Column

enum Column
private
Enumerator
COLUMN_DEVICE 
COLUMN_MPN 
COLUMN_MANUFACTURER 
COLUMN_ATTRIBUTES 
COLUMN_MOUNT 
_COLUMN_COUNT 

Constructor & Destructor Documentation

◆ ComponentAssemblyOptionListEditorWidget() [1/2]

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

◆ ComponentAssemblyOptionListEditorWidget() [2/2]

◆ ~ComponentAssemblyOptionListEditorWidget()

Member Function Documentation

◆ getOptions()

const ComponentAssemblyOptionList & getOptions ( ) const
inlinenoexcept

◆ setFrameStyle()

void setFrameStyle ( int  style)
noexcept

◆ setReferences()

void setReferences ( const Workspace ws,
const Project project,
ComponentInstance component 
)
noexcept

◆ operator=()

◆ selectedPartChanged

void selectedPartChanged ( std::shared_ptr< Part part)
signal
+ Here is the caller graph for this function:

◆ addOption()

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

◆ addPart()

bool addPart ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ editOptionOrPart()

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

◆ removeOptionOrPart()

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

◆ itemChanged()

void itemChanged ( QTreeWidgetItem *  item,
int  column 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ itemSelectionChanged()

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

◆ getIndices()

std::pair< int, int > getIndices ( QTreeWidgetItem *  item)
privatenoexcept
+ Here is the caller graph for this function:

◆ optionListEdited()

void optionListEdited ( const ComponentAssemblyOptionList list,
int  index,
const std::shared_ptr< const ComponentAssemblyOption > &  obj,
ComponentAssemblyOptionList::Event  event 
)
privatenoexcept
+ Here is the call graph for this function:

Member Data Documentation

◆ mWorkspace

QPointer<const Workspace> mWorkspace
private

◆ mProject

QPointer<const Project> mProject
private

◆ mComponent

QPointer<ComponentInstance> mComponent
private

◆ mMultiAssemblyVariantMode

bool mMultiAssemblyVariantMode
private

◆ mOptions

ComponentAssemblyOptionList mOptions
private

◆ mTreeWidget

QScopedPointer<QTreeWidget> mTreeWidget
private

◆ mAddOptionButton

QScopedPointer<QToolButton> mAddOptionButton
private

◆ mAddPartButton

QScopedPointer<QToolButton> mAddPartButton
private

◆ mEditButton

QScopedPointer<QToolButton> mEditButton
private

◆ mRemoveButton

QScopedPointer<QToolButton> mRemoveButton
private

◆ mOnListEditedSlot

ComponentAssemblyOptionList::OnEditedSlot mOnListEditedSlot
private

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