LibrePCB Developers Documentation
LayerComboBox Class Referencefinal

The LayerComboBox class. More...

#include <layercombobox.h>

Inherits QWidget.

+ Collaboration diagram for LayerComboBox:

Signals

void currentLayerChanged (const Layer &layer)
 

Public Member Functions

 LayerComboBox (QWidget *parent=nullptr) noexcept
 
 LayerComboBox (const LayerComboBox &other)=delete
 
 ~LayerComboBox () noexcept
 
tl::optional< const Layer & > getCurrentLayer () const noexcept
 
void setLayers (const QSet< const Layer * > &layers) noexcept
 
void setCurrentLayer (const Layer &layer) noexcept
 
void stepUp () noexcept
 
void stepDown () noexcept
 
LayerComboBoxoperator= (const LayerComboBox &rhs)=delete
 

Private Member Functions

void currentIndexChanged (int index) noexcept
 

Private Attributes

QScopedPointer< QComboBox > mComboBox
 

Detailed Description

The LayerComboBox class.

Constructor & Destructor Documentation

◆ LayerComboBox() [1/2]

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

◆ LayerComboBox() [2/2]

LayerComboBox ( const LayerComboBox other)
delete

◆ ~LayerComboBox()

~LayerComboBox ( )
noexcept

Member Function Documentation

◆ getCurrentLayer()

tl::optional< const Layer & > getCurrentLayer ( ) const
noexcept
+ Here is the call graph for this function:

◆ setLayers()

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

◆ setCurrentLayer()

void setCurrentLayer ( const Layer layer)
noexcept

◆ stepUp()

void stepUp ( )
noexcept
+ Here is the caller graph for this function:

◆ stepDown()

void stepDown ( )
noexcept
+ Here is the caller graph for this function:

◆ operator=()

LayerComboBox & operator= ( const LayerComboBox rhs)
delete

◆ currentLayerChanged

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

◆ currentIndexChanged()

void currentIndexChanged ( int  index)
privatenoexcept
+ 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: