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

The UnsignedLengthEdit class is a widget to view/edit librepcb::UnsignedLength values. More...

#include <unsignedlengthedit.h>

+ Inheritance diagram for UnsignedLengthEdit:
+ Collaboration diagram for UnsignedLengthEdit:

Signals

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

Public Member Functions

 UnsignedLengthEdit (QWidget *parent=nullptr) noexcept
 
 UnsignedLengthEdit (const UnsignedLengthEdit &other)=delete
 
virtual ~UnsignedLengthEdit () noexcept
 
const UnsignedLengthgetValue () const noexcept
 
void setValue (const UnsignedLength &value) noexcept
 
void setUnit (const LengthUnit &unit) noexcept
 
UnsignedLengthEditoperator= (const UnsignedLengthEdit &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

UnsignedLength mMinValue
 
UnsignedLength mMaxValue
 
UnsignedLength mValue
 
LengthUnit mUnit
 

Additional Inherited Members

- Protected Attributes inherited from NumberEditBase
QScopedPointer< DoubleSpinBoxmSpinBox
 

Detailed Description

The UnsignedLengthEdit class is a widget to view/edit librepcb::UnsignedLength values.

Constructor & Destructor Documentation

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

Member Function Documentation

const UnsignedLength& getValue ( ) const
inlinenoexcept
void setValue ( const UnsignedLength value)
noexcept
void setUnit ( const LengthUnit unit)
noexcept
UnsignedLengthEdit& operator= ( const UnsignedLengthEdit rhs)
delete
void valueChanged ( const UnsignedLength value)
signal

+ Here is the caller graph for this function:

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

UnsignedLength mMinValue
private
UnsignedLength mMaxValue
private
UnsignedLength mValue
private
LengthUnit mUnit
private

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