![]() |
LibrePCB Developers Documentation
|
Backend configuration for the LengthEdit UI element. More...
#include <lengtheditcontext.h>
Inherits QObject.
Collaboration diagram for LengthEditContext:Classes | |
| struct | Steps |
| Up/down step values. More... | |
Public Types | |
| enum class | StepBehavior |
Signals | |
| void | uiDataChanged () |
| void | valueChanged (const Length &value) |
| void | valueChangedUnsigned (const UnsignedLength &value) |
| void | valueChangedPositive (const PositiveLength &value) |
Public Member Functions | |
| LengthEditContext ()=delete | |
| LengthEditContext (const LengthEditContext &other)=delete | |
| LengthEditContext (const WorkspaceSettings &ws, QObject *parent=nullptr) noexcept | |
| virtual | ~LengthEditContext () noexcept |
| ui::LengthEditData | getUiData () const noexcept |
| void | setUiData (const ui::LengthEditData &data) noexcept |
| void | configure (const Length &value, const QVector< PositiveLength > &steps, const QString &uniqueIdentifier) noexcept |
| void | configure (const UnsignedLength &value, const QVector< PositiveLength > &steps, const QString &uniqueIdentifier) noexcept |
| void | configure (const PositiveLength &value, const QVector< PositiveLength > &steps, const QString &uniqueIdentifier) noexcept |
| void | setValue (const Length &value) noexcept |
| void | setValueUnsigned (const UnsignedLength &value) noexcept |
| void | setValuePositive (const PositiveLength &value) noexcept |
| void | setUnit (const LengthUnit &unit) noexcept |
| void | setStepBehavior (StepBehavior behavior) noexcept |
| void | stepBy (int steps) noexcept |
| LengthEditContext & | operator= (const LengthEditContext &rhs)=delete |
Protected Member Functions | |
| LengthEditContext (const WorkspaceSettings &ws, const Length &min, const Length &value, QObject *parent=nullptr) noexcept | |
| void | configureSettings (const QString &uniqueIdentifier) noexcept |
| void | updateSingleStep () noexcept |
| void | updateSingleStepPredefined () noexcept |
| void | updateSingleStepHalfDouble () noexcept |
| void | setValueImpl (const Length &value, bool emitValueChanged) noexcept |
Protected Attributes | |
| const WorkspaceSettings & | mSettings |
| Length | mMinimum |
| StepBehavior | mStepBehavior |
| QVector< PositiveLength > | mSteps |
| LengthUnit | mUnit |
| Length | mValue |
| Length | mSingleStepUp |
| Zero means "no step available". | |
| Length | mSingleStepDown |
| Zero means "no step available". | |
| QString | mSettingsKey |
| Empty means "do not save". | |
Backend configuration for the LengthEdit UI element.
|
strong |
|
delete |
|
delete |
|
explicitnoexcept |
|
virtualnoexcept |
|
protectednoexcept |
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
|
noexcept |
|
noexcept |
|
delete |
|
signal |
Here is the caller graph for this function:
|
signal |
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
protectednoexcept |
Here is the call graph for this function:
|
protectednoexcept |
Here is the call graph for this function:
|
protectednoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectednoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectednoexcept |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Zero means "no step available".
|
protected |
Zero means "no step available".
|
protected |
Empty means "do not save".