LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RatioEdit Class Referencefinal

The RatioEdit class is a widget to view/edit librepcb::Ratio values. More...

#include <ratioedit.h>

+ Inheritance diagram for RatioEdit:
+ Collaboration diagram for RatioEdit:

Signals

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

Public Member Functions

 RatioEdit (QWidget *parent=nullptr) noexcept
 
 RatioEdit (const RatioEdit &other)=delete
 
virtual ~RatioEdit () noexcept
 
const RatiogetValue () const noexcept
 
void setValue (const Ratio &value) noexcept
 
RatioEditoperator= (const RatioEdit &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

Ratio mMinValue
 
Ratio mMaxValue
 
Ratio mValue
 

Additional Inherited Members

- Protected Attributes inherited from NumberEditBase
QScopedPointer< DoubleSpinBoxmSpinBox
 

Detailed Description

The RatioEdit class is a widget to view/edit librepcb::Ratio values.

Constructor & Destructor Documentation

RatioEdit ( QWidget *  parent = nullptr)
explicitnoexcept
RatioEdit ( const RatioEdit other)
delete
~RatioEdit ( )
virtualnoexcept

Member Function Documentation

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

Implements NumberEditBase.

+ Here is the call graph for this function:

void spinBoxValueChanged ( double  value)
overrideprivatevirtualnoexcept

Implements NumberEditBase.

+ Here is the call graph for this function:

Member Data Documentation

Ratio mMinValue
private
Ratio mMaxValue
private
Ratio mValue
private

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