LibrePCB Developers Documentation
PositiveLengthEdit Class Referencefinal

The PositiveLengthEdit class is a widget to view/edit librepcb::PositiveLength values. More...

#include <positivelengthedit.h>

+ Inheritance diagram for PositiveLengthEdit:
+ Collaboration diagram for PositiveLengthEdit:

Signals

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

Public Member Functions

 PositiveLengthEdit (QWidget *parent=nullptr) noexcept
 
 PositiveLengthEdit (const PositiveLengthEdit &other)=delete
 
virtual ~PositiveLengthEdit () noexcept
 
const PositiveLengthgetValue () const noexcept
 
void setValue (const PositiveLength &value) noexcept
 
void setUnit (const LengthUnit &unit) noexcept
 
PositiveLengthEditoperator= (const PositiveLengthEdit &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 () noexcept override
 
void spinBoxValueChanged (double value) noexcept override
 

Private Attributes

PositiveLength mMinValue
 
PositiveLength mMaxValue
 
PositiveLength mValue
 
LengthUnit mUnit
 

Additional Inherited Members

- Protected Attributes inherited from NumberEditBase
QScopedPointer< DoubleSpinBoxmSpinBox
 

Detailed Description

The PositiveLengthEdit class is a widget to view/edit librepcb::PositiveLength values.

Constructor & Destructor Documentation

◆ PositiveLengthEdit() [1/2]

PositiveLengthEdit ( QWidget *  parent = nullptr)
explicitnoexcept

◆ PositiveLengthEdit() [2/2]

PositiveLengthEdit ( const PositiveLengthEdit other)
delete

◆ ~PositiveLengthEdit()

~PositiveLengthEdit ( )
virtualnoexcept

Member Function Documentation

◆ getValue()

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

◆ setValue()

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

◆ setUnit()

void setUnit ( const LengthUnit unit)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

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

◆ valueChanged

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

◆ updateSpinBox()

void updateSpinBox ( )
overrideprivatevirtualnoexcept

Implements NumberEditBase.

+ Here is the call graph for this function:
+ 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

PositiveLength mMinValue
private

◆ mMaxValue

PositiveLength mMaxValue
private

◆ mValue

PositiveLength mValue
private

◆ mUnit

LengthUnit mUnit
private

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