LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 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 ( QWidget *  parent = nullptr)
explicitnoexcept

+ Here is the call graph for this function:

NumberEditBase ( const NumberEditBase other)
delete
~NumberEditBase ( )
virtualnoexcept

Member Function Documentation

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

+ Here is the caller graph for this function:

void selectAll ( )
noexcept

+ Here is the caller graph for this function:

NumberEditBase& operator= ( const NumberEditBase rhs)
delete
void editingFinished ( )
signal

+ Here is the caller graph for this function:

virtual void updateSpinBox ( )
protectedpure virtualnoexcept
virtual void spinBoxValueChanged ( double  value)
protectedpure virtualnoexcept

Implemented in LengthEdit, PositiveLengthEdit, UnsignedLengthEdit, UnsignedRatioEdit, AngleEdit, and RatioEdit.

+ Here is the caller graph for this function:

Member Data Documentation

QScopedPointer<DoubleSpinBox> mSpinBox
protected

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