LibrePCB Developers Documentation
NumberEditBase Class Referenceabstract

The NumberEditBase class is a widget base class to edit various kinds of numbers. More...

#include <numbereditbase.h>

+ Inheritance diagram for NumberEditBase:
+ Collaboration diagram for NumberEditBase:

Signals

void editingFinished ()
 

Public Member Functions

 NumberEditBase (QWidget *parent=nullptr) noexcept
 
 NumberEditBase (const NumberEditBase &other)=delete
 
virtual ~NumberEditBase () noexcept
 
void setReadOnly (bool readOnly) noexcept
 
void setSingleStep (tl::optional< double > step) noexcept
 
void setFrame (bool frame) noexcept
 
void selectAll () noexcept
 
NumberEditBaseoperator= (const NumberEditBase &rhs)=delete
 

Protected Member Functions

virtual void updateSpinBox () noexcept=0
 
virtual void spinBoxValueChanged (double value) noexcept=0
 

Protected Attributes

QScopedPointer< DoubleSpinBoxmSpinBox
 

Detailed Description

The NumberEditBase class is a widget base class to edit various kinds of numbers.

See subclasses for details.

Constructor & Destructor Documentation

◆ NumberEditBase() [1/2]

NumberEditBase ( QWidget *  parent = nullptr)
explicitnoexcept
+ Here is the call graph for this function:

◆ NumberEditBase() [2/2]

NumberEditBase ( const NumberEditBase other)
delete

◆ ~NumberEditBase()

~NumberEditBase ( )
virtualnoexcept

Member Function Documentation

◆ setReadOnly()

void setReadOnly ( bool  readOnly)
noexcept

◆ setSingleStep()

void setSingleStep ( tl::optional< double >  step)
noexcept

◆ setFrame()

void setFrame ( bool  frame)
noexcept
+ Here is the caller graph for this function:

◆ selectAll()

void selectAll ( )
noexcept
+ Here is the caller graph for this function:

◆ operator=()

NumberEditBase & operator= ( const NumberEditBase rhs)
delete

◆ editingFinished

void editingFinished ( )
signal
+ Here is the caller graph for this function:

◆ updateSpinBox()

virtual void updateSpinBox ( )
protectedpure virtualnoexcept

◆ spinBoxValueChanged()

virtual void spinBoxValueChanged ( double  value)
protectedpure virtualnoexcept

Implemented in AngleEdit, RatioEdit, UnsignedLimitedRatioEdit, and UnsignedRatioEdit.

+ Here is the caller graph for this function:

Member Data Documentation

◆ mSpinBox

QScopedPointer<DoubleSpinBox> mSpinBox
protected

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