Mantid
|
#include <QScienceSpinBox.h>
Public Slots | |
void | stepDown () |
void | stepUp () |
Signals | |
void | valueChangedFromArrows () |
Public Member Functions | |
int | decimals () const |
QScienceSpinBox (QWidget *parent=nullptr) | |
void | setDecimals (int value) |
void | setLogSteps (bool logSteps) |
QString | textFromValue (double value) const override |
text to be displayed in spinbox More... | |
double | valueFromText (const QString &text) const override |
Private Member Functions | |
void | fixup (QString &input) const override |
void | initLocalValues (QWidget *parent) |
bool | isIntermediateValue (const QString &str) const |
double | round (double value) const |
Round. More... | |
void | stepBy (int steps) override |
QString | stripped (const QString &t, int *pos) const |
QValidator::State | validate (QString &text, int &pos) const override |
QVariant | validateAndInterpret (QString &input, int &pos, QValidator::State &state) const |
Private Attributes | |
QChar | delimiter |
int | dispDecimals |
bool | m_logSteps |
Will step in a log way (multiplicatively) More... | |
QChar | thousand |
QDoubleValidator * | v |
Definition at line 21 of file QScienceSpinBox.h.
MantidQt::API::QScienceSpinBox::QScienceSpinBox | ( | QWidget * | parent = nullptr | ) |
Definition at line 73 of file QScienceSpinBox.cpp.
References initLocalValues(), setDecimals(), and v.
int MantidQt::API::QScienceSpinBox::decimals | ( | ) | const |
Definition at line 100 of file QScienceSpinBox.cpp.
References dispDecimals.
Referenced by isIntermediateValue().
|
overrideprivate |
Definition at line 170 of file QScienceSpinBox.cpp.
References thousand.
|
private |
Definition at line 88 of file QScienceSpinBox.cpp.
References delimiter, and thousand.
Referenced by QScienceSpinBox().
|
private |
determine minimum possible values on left and right of Decimal-char
determine left and right long values (left and right of delimiter)
Definition at line 174 of file QScienceSpinBox.cpp.
References decimals(), delimiter, MantidQt::API::isIntermediateValueHelper(), left, QSBDEBUG, and right.
Referenced by validateAndInterpret().
|
private |
Round.
value | Value to round. |
Definition at line 156 of file QScienceSpinBox.cpp.
References dispDecimals, and value.
void MantidQt::API::QScienceSpinBox::setDecimals | ( | int | value | ) |
Definition at line 102 of file QScienceSpinBox.cpp.
References dispDecimals, and value.
Referenced by QScienceSpinBox().
void MantidQt::API::QScienceSpinBox::setLogSteps | ( | bool | logSteps | ) |
Definition at line 112 of file QScienceSpinBox.cpp.
References m_logSteps.
|
overrideprivate |
Definition at line 105 of file QScienceSpinBox.cpp.
References stepDown(), and stepUp().
|
slot |
Definition at line 114 of file QScienceSpinBox.cpp.
References m_logSteps, value, and valueChangedFromArrows().
Referenced by stepBy().
|
slot |
Definition at line 122 of file QScienceSpinBox.cpp.
References m_logSteps, value, and valueChangedFromArrows().
Referenced by stepBy().
|
private |
Definition at line 503 of file QScienceSpinBox.cpp.
Referenced by validateAndInterpret().
|
override |
text to be displayed in spinbox
Definition at line 133 of file QScienceSpinBox.cpp.
References dispDecimals, thousand, and value.
|
overrideprivate |
Definition at line 163 of file QScienceSpinBox.cpp.
References validateAndInterpret().
|
private |
return 'cachedText' if input = cachedText, or input Empty
Definition at line 290 of file QScienceSpinBox.cpp.
References delimiter, isIntermediateValue(), QSBDEBUG, stripped(), and thousand.
Referenced by validate(), and valueFromText().
|
signal |
Referenced by stepDown(), and stepUp().
|
override |
Definition at line 144 of file QScienceSpinBox.cpp.
References validateAndInterpret().
|
private |
Definition at line 36 of file QScienceSpinBox.h.
Referenced by initLocalValues(), isIntermediateValue(), and validateAndInterpret().
|
private |
Definition at line 35 of file QScienceSpinBox.h.
Referenced by decimals(), round(), setDecimals(), and textFromValue().
|
private |
Will step in a log way (multiplicatively)
Definition at line 39 of file QScienceSpinBox.h.
Referenced by setLogSteps(), stepDown(), and stepUp().
|
private |
Definition at line 36 of file QScienceSpinBox.h.
Referenced by fixup(), initLocalValues(), textFromValue(), and validateAndInterpret().
|
private |
Definition at line 37 of file QScienceSpinBox.h.
Referenced by QScienceSpinBox().