#include <SViewEl.h>
Inherits QObject, and SObserver.
Inherited by SDAGEdgeViewEl, SDAGNodeViewEl, SDAGViewEl, SJobViewEl, and STopViewEl.
Inheritance diagram for SViewEl:
Public Types | |
enum | SMarkStyles { STANDARD, MARKED, MARKED1, MARKED2, MARKED3, MARKED4 } |
Public Methods | |
SViewEl () | |
SViewEl (STaskSystem *ts) | |
virtual void | setView (SView &view) |
virtual void | paint (QPaintDevice *pd, QRect rect)=0 |
virtual bool | isAffectedBy (QMouseEvent *ev) |
virtual bool | mouseEvent (QMouseEvent *ev) |
virtual void | setPos (QPoint p) |
virtual const QRect & | getBoundBox () const |
virtual QRegion | getRegion ()=0 |
virtual void | update (const SEvent &event)=0 |
Protected Methods | |
QColor | lighterGray () |
void | draw3DRect (QPainter &p, int x, int y, int w, int h) |
void | draw3DRect (QPainter &p, const QRect &r) |
SView & | getView () |
void | requestRepaint () |
void | requestRepaint (const QRect &rect) |
virtual void | update (const class SEvent &) |
Protected Attributes | |
STaskSystem * | _pTaskSystem |
|
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. |
|
Constructs a new SViewEl. It initializes the pointer to the tasksystem. The corresponding view is set by the public member setView( SView &view ). ts SHOULD BE TAKEN OUT OF HERE EVENTUALLY! (AH) |
|
|
|
|
|
paint a 3D Rectangle use current Brush as color |
|
Reimplemented in SDAGEdgeViewEl, SDAGNodeViewEl, and SDAGViewEl. |
|
Implemented in SDAGEdgeViewEl, SDAGNodeViewEl, SDAGViewEl, and SMeshTopViewEl. |
|
Get the view which is responsible for this view element. This is useful for setting new cursors etc. .
|
|
The isAffectedBy function checks if an element is affected by a particular mouse event.
Reimplemented in SDAGViewEl. |
|
|
|
This virtual function handles the mouse event. You can feed it with the captured mouse event from your view.
Reimplemented in SDAGViewEl. |
|
The paint function paints the element in the paintdevice.
Implemented in SDAGEdgeViewEl, SDAGNodeViewEl, SDAGViewEl, and SMeshTopViewEl. |
|
|
|
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! |
|
Here you can set the position of the view element.
Reimplemented in SDAGNodeViewEl, and SDAGViewEl. |
|
Set the view which accepts the repaint-requests.
Reimplemented in SDAGViewEl. |
|
Here the class is informed of an event, when an observed component has sent an event by SObservable::notifyObservers()
Implemented in SGanttLog, SLogger, SJobArray, and STaskSystem. |
|
This update function gets the project specific events for updating the view element. Reimplemented in SDAGNodeViewEl, SDAGViewEl, and SMeshTopViewEl. |
|
@supplierCardinality 1 @label displays part of SHOULDN'T BE USED!! WILL BE REMOVED (AH) |