|  | SDRAngel
    4.11.5
    Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware. | 
#include <valuedialz.h>
Inherits QWidget.
 Collaboration diagram for ValueDialZ:
 Collaboration diagram for ValueDialZ:| Signals | |
| void | changed (qint64 value) | 
| Public Member Functions | |
| ValueDialZ (bool positiveOnly=true, QWidget *parent=NULL, ColorMapper colorMapper=ColorMapper(ColorMapper::Normal)) | |
| void | setValue (qint64 value) | 
| void | setValueRange (bool positiveOnly, uint numDigits, qint64 min, qint64 max) | 
| void | setFont (const QFont &font) | 
| void | setBold (bool bold) | 
| void | setColorMapper (ColorMapper colorMapper) | 
| qint64 | getValue () const | 
| qint64 | getValueNew () const | 
| Private Slots | |
| void | animate () | 
| void | blink () | 
| Private Member Functions | |
| quint64 | findExponent (int digit) | 
| QChar | digitNeigh (QChar c, bool dir) | 
| QString | formatText (qint64 value) | 
| void | paintEvent (QPaintEvent *) | 
| void | mousePressEvent (QMouseEvent *) | 
| void | mouseMoveEvent (QMouseEvent *) | 
| void | wheelEvent (QWheelEvent *) | 
| void | leaveEvent (QEvent *) | 
| void | keyPressEvent (QKeyEvent *) | 
| void | focusInEvent (QFocusEvent *) | 
| void | focusOutEvent (QFocusEvent *) | 
| Private Attributes | |
| QLinearGradient | m_background | 
| int | m_numDigits | 
| int | m_numDecimalPoints | 
| int | m_digitWidth | 
| int | m_digitHeight | 
| int | m_hightlightedDigit | 
| int | m_cursor | 
| bool | m_cursorState | 
| qint64 | m_value | 
| qint64 | m_valueMax | 
| qint64 | m_valueMin | 
| bool | m_positiveOnly | 
| QString | m_text | 
| qint64 | m_valueNew | 
| QString | m_textNew | 
| int | m_animationState | 
| QTimer | m_animationTimer | 
| QTimer | m_blinkTimer | 
| QChar | m_groupSeparator | 
| ColorMapper | m_colorMapper | 
Definition at line 27 of file valuedialz.h.
| ValueDialZ::ValueDialZ | ( | bool | positiveOnly = true, | 
| QWidget * | parent = NULL, | ||
| ColorMapper | colorMapper = ColorMapper(ColorMapper::Normal) | ||
| ) | 
Definition at line 30 of file valuedialz.cpp.
References animate(), blink(), formatText(), ColorMapper::getDialBackgroundColorMap(), m_animationTimer, m_background, m_blinkTimer, m_colorMapper, m_cursor, m_cursorState, m_digitHeight, m_digitWidth, m_groupSeparator, m_hightlightedDigit, m_numDecimalPoints, m_numDigits, m_positiveOnly, m_text, m_value, m_valueMax, m_valueMin, and m_valueNew.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 649 of file valuedialz.cpp.
References abs(), m_animationState, m_animationTimer, m_text, m_textNew, m_value, and m_valueNew.
Referenced by ValueDialZ().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privateslot | 
Definition at line 671 of file valuedialz.cpp.
References m_cursor, and m_cursorState.
Referenced by ValueDialZ().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | signal | 
Referenced by keyPressEvent(), mousePressEvent(), and wheelEvent().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 169 of file valuedialz.cpp.
Referenced by paintEvent().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 159 of file valuedialz.cpp.
References i, m_numDecimalPoints, m_numDigits, and m_positiveOnly.
Referenced by keyPressEvent(), mousePressEvent(), and wheelEvent().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 632 of file valuedialz.cpp.
References m_blinkTimer, m_cursor, and m_cursorState.
| 
 | private | 
| 
 | private | 
Definition at line 195 of file valuedialz.cpp.
References i, m_groupSeparator, m_numDecimalPoints, m_numDigits, and m_positiveOnly.
Referenced by setValue(), setValueRange(), and ValueDialZ().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Definition at line 38 of file valuedialz.h.
| 
 | inline | 
Definition at line 39 of file valuedialz.h.
| 
 | private | 
Definition at line 444 of file valuedialz.cpp.
References abs(), changed(), findExponent(), m_animationState, m_blinkTimer, m_cursor, m_cursorState, m_groupSeparator, m_hightlightedDigit, m_numDecimalPoints, m_numDigits, m_positiveOnly, m_text, m_value, m_valueMax, m_valueMin, m_valueNew, and setValue().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
| 
 | private | 
Definition at line 358 of file valuedialz.cpp.
References i, m_digitWidth, m_groupSeparator, m_hightlightedDigit, and m_text.
| 
 | private | 
Definition at line 312 of file valuedialz.cpp.
References changed(), findExponent(), i, m_blinkTimer, m_cursor, m_cursorState, m_digitWidth, m_groupSeparator, m_numDecimalPoints, m_numDigits, m_positiveOnly, m_text, m_value, m_valueNew, and setValue().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 212 of file valuedialz.cpp.
References digitNeigh(), ColorMapper::getBoundaryAlphaColor(), ColorMapper::getBoundaryColor(), ColorMapper::getDarkBorderColor(), ColorMapper::getForegroundColor(), ColorMapper::getHighlightColor(), ColorMapper::getLightBorderColor(), ColorMapper::getSecondaryForegroundColor(), i, m_animationState, m_background, m_colorMapper, m_cursor, m_cursorState, m_digitHeight, m_digitWidth, m_groupSeparator, m_hightlightedDigit, m_numDecimalPoints, m_numDigits, m_text, and m_textNew.
 Here is the call graph for this function:
 Here is the call graph for this function:| void ValueDialZ::setBold | ( | bool | bold | ) | 
Definition at line 87 of file valuedialz.cpp.
References setFont().
 Here is the call graph for this function:
 Here is the call graph for this function:| void ValueDialZ::setColorMapper | ( | ColorMapper | colorMapper | ) | 
Definition at line 94 of file valuedialz.cpp.
References ColorMapper::getDialBackgroundColorMap(), m_background, and m_colorMapper.
 Here is the call graph for this function:
 Here is the call graph for this function:| void ValueDialZ::setFont | ( | const QFont & | font | ) | 
Definition at line 74 of file valuedialz.cpp.
References m_digitHeight, m_digitWidth, m_numDecimalPoints, m_numDigits, and m_positiveOnly.
Referenced by setBold().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void ValueDialZ::setValue | ( | qint64 | value | ) | 
Definition at line 107 of file valuedialz.cpp.
References formatText(), m_animationState, m_animationTimer, m_textNew, m_value, m_valueMax, m_valueMin, and m_valueNew.
Referenced by keyPressEvent(), mousePressEvent(), setValueRange(), and wheelEvent().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void ValueDialZ::setValueRange | ( | bool | positiveOnly, | 
| uint | numDigits, | ||
| qint64 | min, | ||
| qint64 | max | ||
| ) | 
Definition at line 130 of file valuedialz.cpp.
References formatText(), m_digitWidth, m_numDecimalPoints, m_numDigits, m_positiveOnly, m_text, m_textNew, m_value, m_valueMax, m_valueMin, m_valueNew, leansdr::max(), leansdr::min(), and setValue().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 376 of file valuedialz.cpp.
References changed(), findExponent(), i, m_animationState, m_blinkTimer, m_cursor, m_digitWidth, m_groupSeparator, m_hightlightedDigit, m_positiveOnly, m_text, m_value, m_valueMax, m_valueMin, m_valueNew, and setValue().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 61 of file valuedialz.h.
Referenced by animate(), keyPressEvent(), paintEvent(), setValue(), and wheelEvent().
| 
 | private | 
Definition at line 62 of file valuedialz.h.
Referenced by animate(), setValue(), and ValueDialZ().
| 
 | private | 
Definition at line 45 of file valuedialz.h.
Referenced by paintEvent(), setColorMapper(), and ValueDialZ().
| 
 | private | 
Definition at line 63 of file valuedialz.h.
Referenced by focusInEvent(), focusOutEvent(), keyPressEvent(), mousePressEvent(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 66 of file valuedialz.h.
Referenced by paintEvent(), setColorMapper(), and ValueDialZ().
| 
 | private | 
Definition at line 51 of file valuedialz.h.
Referenced by blink(), focusInEvent(), focusOutEvent(), keyPressEvent(), mousePressEvent(), paintEvent(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 52 of file valuedialz.h.
Referenced by blink(), focusInEvent(), keyPressEvent(), mousePressEvent(), paintEvent(), and ValueDialZ().
| 
 | private | 
Definition at line 49 of file valuedialz.h.
Referenced by paintEvent(), setFont(), and ValueDialZ().
| 
 | private | 
Definition at line 48 of file valuedialz.h.
Referenced by mouseMoveEvent(), mousePressEvent(), paintEvent(), setFont(), setValueRange(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 64 of file valuedialz.h.
Referenced by formatText(), keyPressEvent(), mouseMoveEvent(), mousePressEvent(), paintEvent(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 50 of file valuedialz.h.
Referenced by keyPressEvent(), leaveEvent(), mouseMoveEvent(), paintEvent(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 47 of file valuedialz.h.
Referenced by findExponent(), formatText(), keyPressEvent(), mousePressEvent(), paintEvent(), setFont(), setValueRange(), and ValueDialZ().
| 
 | private | 
Definition at line 46 of file valuedialz.h.
Referenced by findExponent(), formatText(), keyPressEvent(), mousePressEvent(), paintEvent(), setFont(), setValueRange(), and ValueDialZ().
| 
 | private | 
Definition at line 56 of file valuedialz.h.
Referenced by findExponent(), formatText(), keyPressEvent(), mousePressEvent(), setFont(), setValueRange(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 57 of file valuedialz.h.
Referenced by animate(), keyPressEvent(), mouseMoveEvent(), mousePressEvent(), paintEvent(), setValueRange(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 60 of file valuedialz.h.
Referenced by animate(), paintEvent(), setValue(), and setValueRange().
| 
 | private | 
Definition at line 53 of file valuedialz.h.
Referenced by animate(), keyPressEvent(), mousePressEvent(), setValue(), setValueRange(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 54 of file valuedialz.h.
Referenced by keyPressEvent(), setValue(), setValueRange(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 55 of file valuedialz.h.
Referenced by keyPressEvent(), setValue(), setValueRange(), ValueDialZ(), and wheelEvent().
| 
 | private | 
Definition at line 59 of file valuedialz.h.
Referenced by animate(), keyPressEvent(), mousePressEvent(), setValue(), setValueRange(), ValueDialZ(), and wheelEvent().
 1.8.13
 1.8.13