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

SMeshView Class Reference

#include <SMeshView.h>

Inherits SView.

Inheritance diagram for SMeshView:

Inheritance graph
[legend]
List of all members.

Public Slots

void load ()

Public Methods

 SMeshView (STaskSystem &ts, QWidget *parent=0, const char *name=0)
 ~SMeshView ()
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

This view displays the state of one machine. It reacts to machine scheduling events like joballocated, machinebroken etc.. It displays the state of the machine (running etc.), the allocated job and the speed of the machine. This is a "pure qt widget" view, i.e. there is no view element.


Constructor & Destructor Documentation

SMeshView::SMeshView STaskSystem   ts,
QWidget   parent = 0,
const char *    name = 0
 

Constructs a new machine view.

Parameters:
mach  is the number of the machine that should be displayed by this view.

SMeshView::~SMeshView  
 


Member Function Documentation

STaskSystem & SView::getTaskSystem   [inherited]
 

Returns:
the tasksystem for this view.

void SMeshView::load   [slot]
 

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:49 2003 for Sketch-it! by doxygen1.2.18