LibrePCB Developers Documentation
GraphicsLayerComboBox Class Referencefinal

The GraphicsLayerComboBox class. More...

#include <graphicslayercombobox.h>

Inherits QWidget.

+ Collaboration diagram for GraphicsLayerComboBox:

Signals

void currentLayerChanged (const GraphicsLayerName &name)
 

Public Member Functions

 GraphicsLayerComboBox (QWidget *parent=nullptr) noexcept
 
 GraphicsLayerComboBox (const GraphicsLayerComboBox &other)=delete
 
 ~GraphicsLayerComboBox () noexcept
 
tl::optional< GraphicsLayerNamegetCurrentLayerName () const noexcept
 
void setLayers (const QList< GraphicsLayer *> &layers) noexcept
 
void setCurrentLayer (const GraphicsLayerName &name) noexcept
 
GraphicsLayerComboBoxoperator= (const GraphicsLayerComboBox &rhs)=delete
 

Private Member Functions

void currentIndexChanged (int index) noexcept
 

Private Attributes

QScopedPointer< QComboBox > mComboBox
 

Detailed Description

Constructor & Destructor Documentation

◆ GraphicsLayerComboBox() [1/2]

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

◆ GraphicsLayerComboBox() [2/2]

GraphicsLayerComboBox ( const GraphicsLayerComboBox other)
delete

◆ ~GraphicsLayerComboBox()

~GraphicsLayerComboBox ( )
noexcept

Member Function Documentation

◆ getCurrentLayerName()

tl::optional< GraphicsLayerName > getCurrentLayerName ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLayers()

void setLayers ( const QList< GraphicsLayer *> &  layers)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCurrentLayer()

void setCurrentLayer ( const GraphicsLayerName name)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

GraphicsLayerComboBox& operator= ( const GraphicsLayerComboBox rhs)
delete

◆ currentLayerChanged

void currentLayerChanged ( const GraphicsLayerName name)
signal
+ Here is the caller graph for this function:

◆ currentIndexChanged()

void currentIndexChanged ( int  index)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mComboBox

QScopedPointer<QComboBox> mComboBox
private

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