#include <SGanttView.h>
Inherits QCanvasView, and SObserver.
Inheritance diagram for SGanttView:

Public Types | |
| enum | HitInfo { OnContext, OnJob, OnMachine } |
Public Slots | |
| void | load () |
Public Methods | |
| SGanttView (STaskSystem &ts, QWidget *parent=0, QString name=0) | |
| ~SGanttView () | |
| void | addToToolbar (QToolBar *toolbar) |
| virtual void | update (const SEvent &event)=0 |
Protected Methods | |
| virtual void | contentsMousePressEvent (QMouseEvent *) |
| QRegion | getRegion () |
| virtual bool | isAffectedBy (QMouseEvent *e) |
| void | setPos (QPoint p) |
| virtual void | update (const class SEvent &) |
| QColor | lighterGray () |
| void | draw3DRect (int x, int y, int w, int h, const QColor &color) |
| void | draw3DRect (const QRect &r, const QColor &color) |
| void | drawText (int x, int y, int textFlags, const QString &text, const QColor &color=black) |
| void | resizeCheck () |
|
|
This enum indicates where on the view a mouse click occured. This is used in the hitTest(..) function mainly for displaying the right context menu. |
|
||||||||||||||||
|
Constructs a new SGanttView. |
|
|
|
|
|
add the Actions to the given Toolbar |
|
|
Handles the mouse events for context menus etc. |
|
||||||||||||
|
|
|
||||||||||||||||||||||||
|
paint a 3D Rectangle use current Brush as color |
|
||||||||||||||||||||||||
|
paint the given text at the given position with the given flags |
|
|
|
|
|
Checks if the dag is affected by the mouse event.
|
|
|
|
|
|
This slot is connected to a load signal from the parent of this view. It calls the load routine of the gantt view element. |
|
|
|
|
|
Set a new position for the ganttview element.
|
|
|
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. |
|
|
|
1.2.18