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

SView Class Reference

#include <SView.h>

Inherits QFrame.

Inherited by SDAGView, SJobPropView, SMachineView, and SMeshView.

Inheritance diagram for SView:

Inheritance graph
[legend]
List of all members.

Public Methods

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

Protected Methods

virtual void paintEvent (QPaintEvent *ev)

Protected Attributes

QPixmap * _pCanvas

Detailed Description

A view is a part of the graphical representation which is contained in an independent QFrame. There are two ways in which this class can be used:

1. pure Qt-Views (contains only Qt-Widgets) useful if complicated graphics are not needed

2. pure SViewEl-Containers ... mouse and paint-events are delegated to the dependent ViewEl(s). The view is responsible for setting up the graphical context, placing the view elements in a reasonable way and for interacting with the window system (event handling). CAUTION: Views must register themselves at the dependent ViewEl(s).


Constructor & Destructor Documentation

SView::SView QWidget   parent = 0,
QString    name = 0,
WFlags    f = 0
[inline]
 

Constructs a new SView.

SView::~SView   [inline]
 


Member Function Documentation

STaskSystem & SView::getTaskSystem  
 

Returns:
the tasksystem for this view.

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

Simply calls repaint!.

void SView::repaint QRect    rect [virtual]
 

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]
 

void SView::setTaskSystem STaskSystem   ts
 

Set the tasksystem for this view.

Parameters:
ts  pointer to the current tasksystem.


Member Data Documentation

QPixmap* SView::_pCanvas [protected]
 


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