#include <lcdnumber.h>

Signals | |
| void | valChanged (int iVal) |
Public Member Functions | |
| CALCDNumber (int iMin, int iMax, QWidget *poParent=0, QString oText="") | |
| void | setRealValue (int val) |
| int | getRealValue () |
| void | setMin (int iMin) |
| void | setMax (int iMax) |
| bool | isZero () |
Protected Member Functions | |
| virtual void | mousePressEvent (QMouseEvent *poEvt) |
| virtual void | wheelEvent (QWheelEvent *poEvt) |
| virtual void | contextMenuEvent (QContextMenuEvent *poEvt) |
Private Attributes | |
| int | min_ |
| int | max_ |
| QAction * | numDisplay_ |
| int | realValue_ |
| QString | toolTipText_ |
Definition at line 34 of file lcdnumber.h.
| CALCDNumber::CALCDNumber | ( | int | iMin, | |
| int | iMax, | |||
| QWidget * | poParent = 0, |
|||
| QString | oText = "" | |||
| ) |
Constructs the number display
| iMin | minimal number | |
| iMax | maximal number | |
| oToolTipText | text to be displayed as tool tip | |
| oShortCut | shortcut for a quick change of the number | |
| poParent | parent widget | |
| oText | name of the widget |
Definition at line 30 of file lcdnumber.cpp.
References max_, min_, and setRealValue().

| void CALCDNumber::setRealValue | ( | int | val | ) |
Sets the current value of the number display
| iVal | new value to be set |
Definition at line 42 of file lcdnumber.cpp.
References max_, realValue_, and valChanged().
Referenced by CALCDNumber(), mousePressEvent(), CAMainWin::on_uiInsertPlayable_toggled(), CAMainWin::on_uiNewVoice_triggered(), CAMainWin::on_uiRemoveVoice_triggered(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMousePress(), setMax(), setMin(), CAMainWin::setMode(), CAMainWin::updatePlayableToolBar(), and wheelEvent().

| int CALCDNumber::getRealValue | ( | ) |
Gets the current value of the number display
Definition at line 59 of file lcdnumber.cpp.
References realValue_.
Referenced by CAMainWin::currentVoice(), isZero(), mousePressEvent(), CAMainWin::on_uiInsertPlayable_toggled(), CAMainWin::on_uiLilyPondSource_triggered(), CAMainWin::on_uiRedo_toggled(), CAMainWin::on_uiUndo_toggled(), CAMainWin::pasteAt(), setMax(), setMin(), CAMainWin::updateVoiceToolBar(), and wheelEvent().

| void CALCDNumber::setMin | ( | int | iMin | ) |
Sets the minimum value of the number display
| iMin | new minimum value to be set |
Definition at line 63 of file lcdnumber.cpp.
References getRealValue(), max_, min_, and setRealValue().

| void CALCDNumber::setMax | ( | int | iMax | ) |
Sets the maximum value of the number display
| iMax | new maximum value to be set |
Definition at line 72 of file lcdnumber.cpp.
References getRealValue(), max_, min_, and setRealValue().
Referenced by CAMainWin::scoreViewPortMousePress(), and CAMainWin::updateVoiceToolBar().


| bool CALCDNumber::isZero | ( | ) |
Checks if the value is 0 (or false if LCD number wasn't plugged)
Definition at line 81 of file lcdnumber.cpp.
References getRealValue().

| void CALCDNumber::valChanged | ( | int | iVal | ) | [signal] |
Actually sends out the changed value if triggered via mouse press event
| iVal | new value |
Referenced by setRealValue().
| void CALCDNumber::mousePressEvent | ( | QMouseEvent * | poEvt | ) | [protected, virtual] |
Event being performed when a mouse button was pressed
| poEvt | Necessary information about the event |
Definition at line 86 of file lcdnumber.cpp.
References getRealValue(), max_, min_, and setRealValue().

| void CALCDNumber::wheelEvent | ( | QWheelEvent * | poEvt | ) | [protected, virtual] |
Event being performed when a wheel was moved
| poEvt | Necessary information about the event |
Definition at line 102 of file lcdnumber.cpp.
References getRealValue(), max_, min_, and setRealValue().

| virtual void CALCDNumber::contextMenuEvent | ( | QContextMenuEvent * | poEvt | ) | [inline, protected, virtual] |
Overrides QMainWindow::contextMenuEvent() to prevent showing the context menu when the LCD widget is right-clicked (in a toolbar).
| poEvt | Pointer to event info. |
Definition at line 113 of file lcdnumber.h.
int CALCDNumber::min_ [private] |
Definition at line 115 of file lcdnumber.h.
Referenced by CALCDNumber(), mousePressEvent(), setMax(), setMin(), and wheelEvent().
int CALCDNumber::max_ [private] |
Definition at line 115 of file lcdnumber.h.
Referenced by CALCDNumber(), mousePressEvent(), setMax(), setMin(), setRealValue(), and wheelEvent().
QAction* CALCDNumber::numDisplay_ [private] |
Definition at line 116 of file lcdnumber.h.
int CALCDNumber::realValue_ [private] |
QString CALCDNumber::toolTipText_ [private] |
Definition at line 118 of file lcdnumber.h.
1.5.3