|
Canorus
0.7
|
#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_ |
| 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 |
References 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. |
| int CALCDNumber::getRealValue | ( | ) |
Gets the current value of the number display
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().

| bool CALCDNumber::isZero | ( | ) |
Checks if the value is 0 (or false if LCD number wasn't plugged)
References getRealValue().

| void CALCDNumber::mousePressEvent | ( | QMouseEvent * | poEvt | ) | [protected, virtual] |
Event being performed when a mouse button was pressed
| poEvt | Necessary information about the event |
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 |
References getRealValue(), max_, min_, and setRealValue().
Referenced by CAMainWin::scoreViewPortMousePress(), and CAMainWin::updateVoiceToolBar().


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

| void CALCDNumber::setRealValue | ( | int | val | ) |
Sets the current value of the number display
| iVal | new value to be set |
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().


| 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::wheelEvent | ( | QWheelEvent * | poEvt | ) | [protected, virtual] |
Event being performed when a wheel was moved
| poEvt | Necessary information about the event |
References getRealValue(), max_, min_, and setRealValue().

int CALCDNumber::max_ [private] |
Referenced by CALCDNumber(), mousePressEvent(), setMax(), setMin(), setRealValue(), and wheelEvent().
int CALCDNumber::min_ [private] |
Referenced by CALCDNumber(), mousePressEvent(), setMax(), setMin(), and wheelEvent().
QAction* CALCDNumber::numDisplay_ [private] |
int CALCDNumber::realValue_ [private] |
Referenced by getRealValue(), and setRealValue().
QString CALCDNumber::toolTipText_ [private] |
1.8.0