LibrePCB Developers Documentation
UnsignedLimitedRatioEdit Class Referencefinal

The UnsignedLimitedRatioEdit class is a widget to view/edit librepcb::UnsignedLimitedRatio values. More...

#include <unsignedlimitedratioedit.h>

+ Inheritance diagram for UnsignedLimitedRatioEdit:
+ Collaboration diagram for UnsignedLimitedRatioEdit:

Signals

void valueChanged (const UnsignedLimitedRatio &value)
 
- Signals inherited from NumberEditBase
void editingFinished ()
 

Public Member Functions

 UnsignedLimitedRatioEdit (QWidget *parent=nullptr) noexcept
 
 UnsignedLimitedRatioEdit (const UnsignedLimitedRatioEdit &other)=delete
 
virtual ~UnsignedLimitedRatioEdit () noexcept
 
const UnsignedLimitedRatiogetValue () const noexcept
 
void setValue (const UnsignedLimitedRatio &value) noexcept
 
UnsignedLimitedRatioEditoperator= (const UnsignedLimitedRatioEdit &rhs)=delete
 
- Public Member Functions inherited from NumberEditBase
 NumberEditBase (QWidget *parent=nullptr) noexcept
 
 NumberEditBase (const NumberEditBase &other)=delete
 
virtual ~NumberEditBase () noexcept
 
void setReadOnly (bool readOnly) noexcept
 
void setSingleStep (tl::optional< double > step) noexcept
 
void setFrame (bool frame) noexcept
 
void selectAll () noexcept
 
NumberEditBaseoperator= (const NumberEditBase &rhs)=delete
 

Private Member Functions

void updateSpinBox () noexcept override
 
void spinBoxValueChanged (double value) noexcept override
 

Private Attributes

UnsignedLimitedRatio mMinValue
 
UnsignedLimitedRatio mMaxValue
 
UnsignedLimitedRatio mValue
 

Additional Inherited Members

- Protected Attributes inherited from NumberEditBase
QScopedPointer< DoubleSpinBoxmSpinBox
 

Detailed Description

The UnsignedLimitedRatioEdit class is a widget to view/edit librepcb::UnsignedLimitedRatio values.

Constructor & Destructor Documentation

◆ UnsignedLimitedRatioEdit() [1/2]

UnsignedLimitedRatioEdit ( QWidget *  parent = nullptr)
explicitnoexcept

◆ UnsignedLimitedRatioEdit() [2/2]

◆ ~UnsignedLimitedRatioEdit()

~UnsignedLimitedRatioEdit ( )
virtualnoexcept

Member Function Documentation

◆ getValue()

const UnsignedLimitedRatio& getValue ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ setValue()

void setValue ( const UnsignedLimitedRatio value)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

UnsignedLimitedRatioEdit& operator= ( const UnsignedLimitedRatioEdit rhs)
delete
+ Here is the caller graph for this function:

◆ valueChanged

void valueChanged ( const UnsignedLimitedRatio value)
signal
+ Here is the caller graph for this function:

◆ updateSpinBox()

void updateSpinBox ( )
overrideprivatevirtualnoexcept

Implements NumberEditBase.

+ Here is the caller graph for this function:

◆ spinBoxValueChanged()

void spinBoxValueChanged ( double  value)
overrideprivatevirtualnoexcept

Implements NumberEditBase.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mMinValue

UnsignedLimitedRatio mMinValue
private

◆ mMaxValue

UnsignedLimitedRatio mMaxValue
private

◆ mValue

UnsignedLimitedRatio mValue
private

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