LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 setSingleStep (tl::optional< double > step) noexcept
 
void setFrame (bool frame) noexcept
 
void selectAll () noexcept
 
NumberEditBaseoperator= (const NumberEditBase &rhs)=delete
 

Private Member Functions

void updateSpinBox () noexceptoverride
 
void spinBoxValueChanged (double value) noexceptoverride
 

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 ( QWidget *  parent = nullptr)
explicitnoexcept
UnsignedRatioEdit ( const UnsignedRatioEdit other)
delete
~UnsignedRatioEdit ( )
virtualnoexcept

Member Function Documentation

const UnsignedRatio& getValue ( ) const
inlinenoexcept
void setValue ( const UnsignedRatio value)
noexcept
UnsignedRatioEdit& operator= ( const UnsignedRatioEdit rhs)
delete
void valueChanged ( const UnsignedRatio value)
signal
void updateSpinBox ( )
overrideprivatevirtualnoexcept

Implements NumberEditBase.

void spinBoxValueChanged ( double  value)
overrideprivatevirtualnoexcept

Implements NumberEditBase.

+ Here is the call graph for this function:

Member Data Documentation

UnsignedRatio mMinValue
private
UnsignedRatio mMaxValue
private
UnsignedRatio mValue
private

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