|
Public Types |
enum | MenuIDs {
COLOR_MENU_ID_WHITE,
COLOR_MENU_ID_RED,
COLOR_MENU_ID_BLUE,
COLOR_MENU_ID_GREEN,
COLOR_MENU_ID_YELLOW,
COLOR_MENU_ID_USER,
SHAPE_MENU_ID_ELLIPSE,
SHAPE_MENU_ID_RECTANGLE,
WIDTH_MENU_ID_1,
WIDTH_MENU_ID_2,
WIDTH_MENU_ID_3,
WIDTH_MENU_ID_4,
WIDTH_MENU_ID_5
} |
enum | GraphType { DIRECTED,
UNDIRECTED
} |
enum | HitTestInfo { GetHit = 0,
OnContext = 1,
OnNode = 2,
OnEdge = 3
} |
enum | DAGViewState {
Idle = 0,
InsertNode = 1,
DragNode = 2,
SelectEdgeStart = 3,
SelectEdgeEnd = 4,
DragEdge = 5
} |
enum | SMarkStyles {
STANDARD,
MARKED,
MARKED1,
MARKED2,
MARKED3,
MARKED4
} |
Public Slots |
bool | load () |
Signals |
void | numberOfNodes (int) |
void | numberOfEdges (int) |
Public Methods |
| SDAGViewEl (STaskSystem *ts) |
| ~SDAGViewEl () |
virtual void | paint (QPaintDevice *pd, QRect rect) |
virtual void | setView (SView &view) |
virtual void | setPos (QPoint p) |
bool | isDirected () |
virtual bool | mouseEvent (QMouseEvent *e) |
virtual bool | isAffectedBy (QMouseEvent *) |
QRegion | getRegion () |
const QRect & | getBoundBox () const |
virtual void | update (const class SEvent &) |
virtual void | update (const SEvent &event)=0 |
Protected Methods |
void | removeEdge (SDAGEdgeViewEl *edge) |
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 |
Friends |
class | SDAGEdgeViewEl |