LibrePCB Developers Documentation
Loading...
Searching...
No Matches
UnsignedRatioEdit Class Referencefinal

The UnsignedRatioEdit class is a widget to view/edit librepcb::UnsignedRatio values. More...

#include <unsignedratioedit.h>

+ Inheritance diagram for UnsignedRatioEdit:
+ Collaboration diagram for UnsignedRatioEdit:

Signals

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

Public Member Functions

 UnsignedRatioEdit (QWidget *parent=nullptr) noexcept
 
 UnsignedRatioEdit (const UnsignedRatioEdit &other)=delete
 
virtual ~UnsignedRatioEdit () noexcept
 
const UnsignedRatiogetValue () const noexcept
 
void setValue (const UnsignedRatio &value) noexcept
 
UnsignedRatioEditoperator= (const UnsignedRatioEdit &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 (std::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

UnsignedRatio mMinValue
 
UnsignedRatio mMaxValue
 
UnsignedRatio mValue
 

Additional Inherited Members

- Protected Attributes inherited from NumberEditBase
QScopedPointer< DoubleSpinBoxmSpinBox
 

Detailed Description

The UnsignedRatioEdit class is a widget to view/edit librepcb::UnsignedRatio values.

Constructor & Destructor Documentation

◆ UnsignedRatioEdit() [1/2]

UnsignedRatioEdit ( QWidget *  parent = nullptr)
explicitnoexcept

◆ UnsignedRatioEdit() [2/2]

UnsignedRatioEdit ( const UnsignedRatioEdit other)
delete

◆ ~UnsignedRatioEdit()

~UnsignedRatioEdit ( )
virtualnoexcept

Member Function Documentation

◆ getValue()

const UnsignedRatio & getValue ( ) const
inlinenoexcept

◆ setValue()

void setValue ( const UnsignedRatio value)
noexcept

◆ operator=()

UnsignedRatioEdit & operator= ( const UnsignedRatioEdit rhs)
delete

◆ valueChanged

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

◆ updateSpinBox()

void updateSpinBox ( )
overrideprivatevirtualnoexcept

Implements NumberEditBase.

◆ spinBoxValueChanged()

void spinBoxValueChanged ( double  value)
overrideprivatevirtualnoexcept

Implements NumberEditBase.

+ Here is the call graph for this function:

Member Data Documentation

◆ mMinValue

UnsignedRatio mMinValue
private

◆ mMaxValue

UnsignedRatio mMaxValue
private

◆ mValue

UnsignedRatio mValue
private

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