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

The LengthEdit class is a widget to view/edit librepcb::Length values. More...

#include <lengthedit.h>

+ Inheritance diagram for LengthEdit:
+ Collaboration diagram for LengthEdit:

Signals

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

Public Member Functions

 LengthEdit (QWidget *parent=nullptr) noexcept
 
 LengthEdit (const LengthEdit &other)=delete
 
virtual ~LengthEdit () noexcept
 
const LengthgetValue () const noexcept
 
void setValue (const Length &value) noexcept
 
void setUnit (const LengthUnit &unit) noexcept
 
LengthEditoperator= (const LengthEdit &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

Length mMinValue
 
Length mMaxValue
 
Length mValue
 
LengthUnit mUnit
 

Additional Inherited Members

- Protected Attributes inherited from NumberEditBase
QScopedPointer< DoubleSpinBoxmSpinBox
 

Detailed Description

The LengthEdit class is a widget to view/edit librepcb::Length values.

Constructor & Destructor Documentation

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

Member Function Documentation

const Length& getValue ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

void setValue ( const Length value)
noexcept

+ Here is the caller graph for this function:

void setUnit ( const LengthUnit unit)
noexcept

+ Here is the caller graph for this function:

LengthEdit& operator= ( const LengthEdit rhs)
delete
void valueChanged ( const Length 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

Length mMinValue
private
Length mMaxValue
private
Length mValue
private
LengthUnit mUnit
private

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