Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

ScreenView Class Reference

#include <ScreenView.h>

Inheritance diagram for ScreenView:

PagePrintDevice View List of all members.

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)
PaintergetPainter ()
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< MusicSymbolmusicSymbols

Detailed Description

Author:
clement
Date:
05/08/02 This class will be used for a screen display and editing, the layout of it is horizontal. A more constrained view will be the page view. The rendering of the font is done in grey scale.
The font manager used is not the one provided with Qt.


Constructor & Destructor Documentation

ScreenView::ScreenView QWidget *  p = 0  ) 
 

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 ()));


Member Function Documentation

Painter * ScreenView::getPainter  )  [virtual]
 

Returns:
a painter consturcted on the widget

Implements PagePrintDevice.

ZoomFactor ScreenView::getZoom  ) 
 

Returns:
the zoom Factor

void ScreenView::grabMouse QCursor  c  )  [slot]
 

Function usefull for drag and drop ops

void ScreenView::mouseMoveEvent QMouseEvent *  e  ) 
 

Called when the mouse move.

void ScreenView::mousePressEvent QMouseEvent *  e  ) 
 

Function called when the mouse has been pressed, it depends on the mode we are in.

void ScreenView::mouseReleaseEvent QMouseEvent *  e  ) 
 

Function called when the mouse has been released, it depends on the mode we are in.

void ScreenView::paintEvent QPaintEvent *  e  )  [slot]
 

Redirect the paint ivent to the grapher

Reimplemented from View.

void ScreenView::setMode Mode m  ) 
 

To set in one of the available mode

void ScreenView::setPageGrapher Graphical c  )  [virtual, slot]
 

This method set the page grapher

Implements PagePrintDevice.

void ScreenView::setTopContainer Container c  )  [slot]
 

This method set the topContainer

void ScreenView::setZoom ZoomFactor  z  ) 
 

This refresh all the layer and put it in the correct zoom mode. This method should be called whenever the zomm factor is changed

void ScreenView::setZoomMode  )  [slot]
 

Think about removing this function and use setMode instead


The documentation for this class was generated from the following files:
Generated on Tue Jun 1 21:13:36 2004 for Alternate Take by doxygen 1.3.6