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

SMeshTopViewEl Class Reference

#include <SMeshTopViewEl.h>

Inherits STopViewEl.

Inheritance diagram for SMeshTopViewEl:

Inheritance graph
[legend]
List of all members.

Public Types

enum  SMarkStyles {
  STANDARD, MARKED, MARKED1, MARKED2,
  MARKED3, MARKED4
}

Public Methods

 SMeshTopViewEl (SJobViewEl &proto, SMeshTopology &top)
 SMeshTopViewEl (SJobViewEl &proto, SMeshTopology &top, STaskSystem &ts)
virtual void paint (QPaintDevice *pd, QRect rect)
void load ()
QRegion getRegion ()
virtual void setView (SView &view)
virtual bool isAffectedBy (QMouseEvent *ev)
virtual bool mouseEvent (QMouseEvent *ev)
virtual void setPos (QPoint p)
virtual const QRect & getBoundBox () const
virtual void update (const SEvent &event)=0

Protected Methods

virtual void update (const class SEvent &)
SJobViewElgetClone ()
QColor lighterGray ()
void draw3DRect (QPainter &p, int x, int y, int w, int h)
void draw3DRect (QPainter &p, const QRect &r)
SViewgetView ()
void requestRepaint ()
void requestRepaint (const QRect &rect)

Protected Attributes

STaskSystem_pTaskSystem

Member Enumeration Documentation

enum SViewEl::SMarkStyles [inherited]
 

Mark styles influence the style how the ViewEl is displayed. The styles are stored in SVis...-objects. Identical mark styles should produce similar (NOT HARDCODED) effects in different ViewEls.

Enumeration values:
STANDARD 
MARKED 
MARKED1 
MARKED2 
MARKED3 
MARKED4 


Constructor & Destructor Documentation

SMeshTopViewEl::SMeshTopViewEl SJobViewEl   proto,
SMeshTopology   top
 

SMeshTopViewEl::SMeshTopViewEl SJobViewEl   proto,
SMeshTopology   top,
STaskSystem   ts
 


Member Function Documentation

void SViewEl::draw3DRect QPainter &    p,
const QRect &    r
[inline, protected, inherited]
 

void SViewEl::draw3DRect QPainter &    p,
int    x,
int    y,
int    w,
int    h
[protected, inherited]
 

paint a 3D Rectangle use current Brush as color

virtual const QRect& SViewEl::getBoundBox   const [inline, virtual, inherited]
 

Reimplemented in SDAGEdgeViewEl, SDAGNodeViewEl, and SDAGViewEl.

SJobViewEl* STopViewEl::getClone   [inline, protected, inherited]
 

QRegion SMeshTopViewEl::getRegion   [virtual]
 

Returns:
the region which is covered by this view element. DEPRECATED (AH): use getBoundBox() instead

Implements SViewEl.

SView& SViewEl::getView   [inline, protected, inherited]
 

Get the view which is responsible for this view element. This is useful for setting new cursors etc. .

Returns:
the view for this view element.

virtual bool SViewEl::isAffectedBy QMouseEvent *    ev [inline, virtual, inherited]
 

The isAffectedBy function checks if an element is affected by a particular mouse event.

Parameters:
ev  the mouse event we are talking about.
Returns:
true if event is handled directly by this object (in particular not only by a child).

Reimplemented in SDAGViewEl.

QColor SViewEl::lighterGray   [inline, protected, inherited]
 

void SMeshTopViewEl::load  
 

virtual bool SViewEl::mouseEvent QMouseEvent *    ev [inline, virtual, inherited]
 

This virtual function handles the mouse event. You can feed it with the captured mouse event from your view.

Returns:
true if the mouse event was handled succesfully.

Reimplemented in SDAGViewEl.

void SMeshTopViewEl::paint QPaintDevice *    pd,
QRect    rect
[virtual]
 

The paint function paints the element in the paintdevice.

Parameters:
pd  This is the paintdevice the element is painted in. Normally paintDev comes from the _pView, but it might also be printer or almost anything else.
rect  This QRect is the area where the painting takes place.

Implements SViewEl.

void SViewEl::requestRepaint const QRect &    rect [inline, protected, inherited]
 

void SViewEl::requestRepaint   [inline, protected, inherited]
 

If something in the view element has changed and you want to make the changes visible, then request a repaint for the view element. CAUTION: repaints everything!

virtual void SViewEl::setPos QPoint    p [inline, virtual, inherited]
 

Here you can set the position of the view element.

Parameters:
p  the new position of the view element.

Reimplemented in SDAGNodeViewEl, and SDAGViewEl.

virtual void SViewEl::setView SView   view [inline, virtual, inherited]
 

Set the view which accepts the repaint-requests.

Parameters:
view  This paramter is a reference to the parent view ( the view which accepts the repaint-requests.

Reimplemented in SDAGViewEl.

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 SMeshTopViewEl::update const class SEvent   ev [protected, virtual]
 

This update function gets the project specific events for updating the view element.

Reimplemented from SViewEl.


Member Data Documentation

STaskSystem* SViewEl::_pTaskSystem [protected, inherited]
 

@supplierCardinality 1 @label displays part of

SHOULDN'T BE USED!! WILL BE REMOVED (AH)


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