Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SDAGView Class Reference

#include <SDAGView.h>

Inherits SView.

Inheritance diagram for SDAGView:

Inheritance graph
[legend]
List of all members.

Public Slots

bool load ()

Signals

void numberOfNodes (int)
void numberOfEdges (int)

Public Methods

 SDAGView (STaskSystem &ts, QWidget *parent=0, QString name=0)
 ~SDAGView ()
void setPViewEl (SViewEl *pViewEl)
virtual void repaint (QRect rect)
void setTaskSystem (STaskSystem *ts)
STaskSystemgetTaskSystem ()

Protected Methods

virtual void mousePressEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void paintEvent (QPaintEvent *ev)

Protected Attributes

QPixmap * _pCanvas

Detailed Description

This view is the parent view for the dag view element. It manages the graphical context and the mouse events. It is a pure SViewEl-Container.


Constructor & Destructor Documentation

SDAGView::SDAGView STaskSystem   ts,
QWidget   parent = 0,
QString    name = 0
 

Constructs a new SDAGView.

SDAGView::~SDAGView  
 


Member Function Documentation

STaskSystem & SView::getTaskSystem   [inherited]
 

Returns:
the tasksystem for this view.

bool SDAGView::load   [slot]
 

Calls the load routine of the dagview element.

void SDAGView::mouseMoveEvent QMouseEvent *    [protected, virtual]
 

Calls the corresponding method of the dagview element for handling the mouse move event.

void SDAGView::mousePressEvent QMouseEvent *    [protected, virtual]
 

Calls the corresponding method of the dagview element for handling the mouse press event.

void SDAGView::mouseReleaseEvent QMouseEvent *    [protected, virtual]
 

Calls the corresponding method of the dagview element for handling the mouse release event.

void SDAGView::numberOfEdges int    [signal]
 

Signal for notifying the parent, that the number of edges has changed. This signal is connected to the corresponding signal of the view element.

void SDAGView::numberOfNodes int    [signal]
 

Signal for notifying the parent, that the number of nodes has changed. This signal is connected to the corresponding signal of the view element.

void SView::paintEvent QPaintEvent *    ev [protected, virtual, inherited]
 

Simply calls repaint!.

void SView::repaint QRect    rect [virtual, inherited]
 

This function is called from paintEvent. Don't call QWidget::repaint() or something like that in this function (endless loop !).

Default implementation: paint _pViewEl if it's not NULL

Parameters:
rect  The rect where the repaint should happen.

void SView::setPViewEl SViewEl   pViewEl [inline, inherited]
 

void SView::setTaskSystem STaskSystem   ts [inherited]
 

Set the tasksystem for this view.

Parameters:
ts  pointer to the current tasksystem.


Member Data Documentation

QPixmap* SView::_pCanvas [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Thu May 22 16:50:44 2003 for Sketch-it! by doxygen1.2.18