#include <SDAGNodeViewEl.h>
Inherits SViewEl.
Inheritance diagram for SDAGNodeViewEl:

Public Types | |
| enum | SMarkStyles { STANDARD, MARKED, MARKED1, MARKED2, MARKED3, MARKED4 } |
Public Methods | |
| SDAGNodeViewEl (STaskSystem *ts, SJob &job) | |
| ~SDAGNodeViewEl () | |
| virtual void | paint (QPaintDevice *pd, QRect rect) |
| void | hide () |
| void | show () |
| bool | isVisible () |
| void | initPixmap () |
| void | moveTo (int x, int y) |
| void | moveTo (QPoint pos) |
| void | setPos (int x, int y) |
| void | setPos (QPoint p) |
| int | getWidth () |
| int | getHeight () |
| QPoint | getPos () |
| void | addEdge (SDAGEdgeViewEl *edge) |
| void | removeEdge (SDAGEdgeViewEl *edge) |
| SJob & | getJob () |
| QRegion | getRegion () |
| const QRect & | getBoundBox () const |
| const QRect & | fullBoundBox () const |
| virtual void | setView (SView &view) |
| virtual bool | isAffectedBy (QMouseEvent *ev) |
| virtual bool | mouseEvent (QMouseEvent *ev) |
| virtual void | update (const SEvent &event)=0 |
Protected Methods | |
| void | update (const class SEvent &) |
| 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) |
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 SDAGNodeViewEl.
|
|
|
|
|
|
Function for adding a edge to the list of adjacent edges of this node. These edges are repositioned by the node if you call moveTo(..). |
|
||||||||||||
|
|
|
||||||||||||||||||||||||
|
paint a 3D Rectangle use current Brush as color |
|
|
calculate bounding box with edges |
|
|
calculate the bounding box Reimplemented from SViewEl. |
|
|
|
|
|
|
|
|
|
|
|
Implements SViewEl. |
|
|
Get the view which is responsible for this view element. This is useful for setting new cursors etc. .
|
|
|
|
|
|
Hides this node. Sets _visible to FALSE, so that this node isn't repainted until _visible is set to TRUE (show() !) again. |
|
|
Initializes the _pixmap. |
|
|
The isAffectedBy function checks if an element is affected by a particular mouse event.
Reimplemented in SDAGViewEl. |
|
|
Tests if this node is visible or not.
|
|
|
|
|
|
This virtual function handles the mouse event. You can feed it with the captured mouse event from your view.
Reimplemented in SDAGViewEl. |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
||||||||||||
|
Moves the node to a new position. If the node has adjacent edges they will be repositioned.
|
|
||||||||||||
|
Paints the node to the paintdevice.
Implements SViewEl. |
|
|
Removes an edge from the list '_edges' of the node. |
|
|
|
|
|
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! |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reimplemented from SViewEl. |
|
||||||||||||
|
Positions a node without repositioning its adjacent edges. |
|
|
Set the view which accepts the repaint-requests.
Reimplemented in SDAGViewEl. |
|
|
Shows this node: Sets _visible to TRUE, so that this node is repainted. |
|
|
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 view element reacts on scheduling events. Reimplemented from SViewEl. |
|
|
@supplierCardinality 1 @label displays part of SHOULDN'T BE USED!! WILL BE REMOVED (AH) |
1.2.18