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

SMachineView Class Reference

#include <SMachineView.h>

Inherits SView, and SObserver.

Inheritance diagram for SMachineView:

Inheritance graph
[legend]
List of all members.

Public Methods

 SMachineView (STaskSystem &ts, int mach, QWidget *parent=0, const char *name=0, WFlags f=0)
 ~SMachineView ()
void setPViewEl (SViewEl *pViewEl)
virtual void repaint (QRect rect)
void setTaskSystem (STaskSystem *ts)
STaskSystemgetTaskSystem ()
virtual void update (const SEvent &event)=0

Protected Methods

virtual void update (const class SEvent &)
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

SMachineView::SMachineView STaskSystem   ts,
int    mach,
QWidget   parent = 0,
const char *    name = 0,
WFlags    f = 0
 

Constructs a new machine view.

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

SMachineView::~SMachineView   [inline]
 


Member Function Documentation

STaskSystem & SView::getTaskSystem   [inherited]
 

Returns:
the tasksystem for this view.

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.

virtual void SObserver::update const SEvent   event [pure virtual, inherited]
 

Here the class is informed of an event, when an observed component has sent an event by SObservable::notifyObservers()

Parameters:
event  event sent by an observed component (the reference is not guaranteed to be valid after the termination of the call to update()
See also:
SObservable::notifyObservers()

Implemented in SGanttLog, SLogger, SJobArray, and STaskSystem.

void SMachineView::update const class SEvent   [protected, virtual]
 

Gets machine events.


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