QtPdWidgets
2.3.2
|
Numerical editing widget with cursor movement. More...
#include <CursorEditWidget.h>
Public Slots | |
void | digitLeft () |
Moves cursor one digit left. More... | |
void | digitRight () |
Moves cursor one digit right. More... | |
void | digitUp () |
Increment actual digit. More... | |
void | digitDown () |
Decrement actual digit. More... | |
void | setZero () |
Reset Value. More... | |
Public Member Functions | |
CursorEditWidget (QWidget *parent=0) | |
Constructor. More... | |
virtual | ~CursorEditWidget () |
Destructor. More... | |
QSize | sizeHint () const |
Gives a hint aboute the optimal size. More... | |
void | setValue (double) |
Sets actual value. More... | |
void | setDecimals (int) |
Set editable decimals. More... | |
void | setSuffix (const QString &) |
Sets suffix. More... | |
void | setLowerLimit (double) |
Sets lower limit. More... | |
void | setUpperLimit (double) |
Sets upper limit. More... | |
void | setEditDigit (int) |
Sets cursor position. More... | |
int | getEditDigit () const |
double | getValue () const |
Protected Member Functions | |
void | paintEvent (QPaintEvent *) |
Paint function. More... | |
Private Attributes | |
QScopedPointer< CursorEditWidgetPrivate > const | d_ptr |
Numerical editing widget with cursor movement.
CursorEditWidget::CursorEditWidget | ( | QWidget * | parent = 0 | ) |
Constructor.
parent | parent widget |
|
virtual |
Destructor.
|
slot |
Decrement actual digit.
|
slot |
Moves cursor one digit left.
References setEditDigit().
|
slot |
Moves cursor one digit right.
References setEditDigit().
|
slot |
Increment actual digit.
int CursorEditWidget::getEditDigit | ( | ) | const |
double CursorEditWidget::getValue | ( | ) | const |
|
protected |
Paint function.
event | paint event flags |
void CursorEditWidget::setDecimals | ( | int | dd | ) |
Set editable decimals.
void CursorEditWidget::setEditDigit | ( | int | dig | ) |
Sets cursor position.
References ABS, CURSOR_INF, and MAX.
Referenced by digitLeft(), and digitRight().
void CursorEditWidget::setLowerLimit | ( | double | limit | ) |
Sets lower limit.
References setValue().
void CursorEditWidget::setSuffix | ( | const QString & | s | ) |
Sets suffix.
void CursorEditWidget::setUpperLimit | ( | double | limit | ) |
Sets upper limit.
References setValue().
void CursorEditWidget::setValue | ( | double | v | ) |
Sets actual value.
Referenced by setLowerLimit(), and setUpperLimit().
|
slot |
Reset Value.
QSize CursorEditWidget::sizeHint | ( | ) | const |
Gives a hint aboute the optimal size.
|
private |