#include <ScreenView.h>
Inheritance diagram for ScreenView:

Public Slots | |
| void | setZoomMode () |
| void | grabMouse (QCursor) |
| void | setTopContainer (Container *) |
| void | paintEvent (QPaintEvent *e) |
| void | setZoomMode () |
| void | grabMouse (QCursor) |
| void | setPageGrapher (Graphical *) |
| void | paintEvent (QPaintEvent *e) |
Public Member Functions | |
| void | setMode (Mode *) |
| void | mouseReleaseEvent (QMouseEvent *) |
| void | mousePressEvent (QMouseEvent *) |
| void | mouseMoveEvent (QMouseEvent *e) |
| ZoomFactor | getZoom () |
| void | setZoom (ZoomFactor) |
| ScreenView (QWidget *parent=0) | |
| Painter * | getPainter () |
| void | setMode (Mode *) |
| void | mouseReleaseEvent (QMouseEvent *) |
| void | mousePressEvent (QMouseEvent *) |
| void | mouseMoveEvent (QMouseEvent *e) |
| ZoomFactor | getZoom () |
| void | setZoom (ZoomFactor) |
| ScreenView (QWidget *parent=0) | |
Public Attributes | |
| QList< MusicSymbol > | musicSymbols |
|
|
To build a ScreenView require the zoom to be defined. By default the zoom factor is set to (0,0,1) QPushButton * zoomButton = new QPushButton (this); zoomButton->setFixedSize (100, 30); zoomButton->setText ("Zoom"); connect (zoomButton, SIGNAL (clicked ()), this, SLOT (setZoomMode ())); |
|
|
Implements PagePrintDevice. |
|
|
|
|
|
Function usefull for drag and drop ops |
|
|
Called when the mouse move. |
|
|
Function called when the mouse has been pressed, it depends on the mode we are in. |
|
|
Function called when the mouse has been released, it depends on the mode we are in. |
|
|
Redirect the paint ivent to the grapher Reimplemented from View. |
|
|
To set in one of the available mode |
|
|
This method set the page grapher Implements PagePrintDevice. |
|
|
This method set the topContainer |
|
|
This refresh all the layer and put it in the correct zoom mode. This method should be called whenever the zomm factor is changed |
|
|
Think about removing this function and use setMode instead |
1.3.6