#include <lcdnumber.h>
| CALCDNumber::CALCDNumber |
( |
int |
iMin, |
|
|
int |
iMax, |
|
|
QWidget * |
poParent = 0, |
|
|
QString |
oText = "" |
|
) |
| |
Constructs the number display
- Parameters
-
| 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 | ) |
|
|
inlineprotectedvirtual |
Overrides QMainWindow::contextMenuEvent() to prevent showing the context menu when the LCD widget is right-clicked (in a toolbar).
- Parameters
-
| 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 | ) |
|
|
protectedvirtual |
| void CALCDNumber::setMax |
( |
int |
iMax | ) |
|
| void CALCDNumber::setMin |
( |
int |
iMin | ) |
|
| void CALCDNumber::setRealValue |
( |
int |
val | ) |
|
Sets the current value of the number display
- Parameters
-
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
- Parameters
-
Referenced by setRealValue().
| void CALCDNumber::wheelEvent |
( |
QWheelEvent * |
poEvt | ) |
|
|
protectedvirtual |
| int CALCDNumber::realValue_ |
|
private |
| QString CALCDNumber::toolTipText_ |
|
private |
The documentation for this class was generated from the following files:
- /home/iurt/rpmbuild/BUILD/canorus-0.7.R1002/src/widgets/lcdnumber.h
- /home/iurt/rpmbuild/BUILD/canorus-0.7.R1002/src/widgets/lcdnumber.cpp