KDGanttViewTaskLinkGroup Class Reference
#include <KDGanttViewTaskLinkGroup.h>
Inheritance diagram for KDGanttViewTaskLinkGroup:


Public Member Functions | |
KDGanttViewTaskLinkGroup (const QString &name) | |
KDGanttViewTaskLinkGroup () | |
~KDGanttViewTaskLinkGroup () | |
void | insert (KDGanttViewTaskLink *) |
bool | remove (KDGanttViewTaskLink *) |
void | setVisible (bool show) |
bool | visible () const |
void | setHighlight (bool highlight) |
bool | highlight () const |
void | setColor (const QColor &color) |
QColor | color () const |
void | setHighlightColor (const QColor &color) |
QColor | highlightColor () const |
void | createNode (QDomDocument &doc, QDomElement &parentElement) |
void | generateAndInsertName (const QString &name) |
Static Public Member Functions | |
static KDGanttViewTaskLinkGroup * | find (const QString &name) |
static KDGanttViewTaskLinkGroup * | createFromDomElement (QDomElement &) |
Friends | |
class | KDTimeTableWidget |
class | KDGanttViewTaskLink |
Detailed Description
A group of task links.This class groups a number of task links together in order to manipulate them uniformly.
Definition at line 45 of file KDGanttViewTaskLinkGroup.h.
Constructor & Destructor Documentation
|
Constructs an empty task link group and records it under the name name so that it can later be found again with KDGanttViewTaskLinkGroup::find().
Definition at line 77 of file KDGanttViewTaskLinkGroup.cpp. References generateAndInsertName(). |
|
Constructs an empty task link group Definition at line 51 of file KDGanttViewTaskLinkGroup.cpp. References generateAndInsertName(). Referenced by createFromDomElement(). |
|
Destructor Removes this task link group from the list of task link groups in the KDGanttView class. Definition at line 61 of file KDGanttViewTaskLinkGroup.cpp. |
Member Function Documentation
|
Adds a task link LINK to this group. If the task link is already a member of another group, it will be removed from it. This function is equivalent to LINK->setGroup(this), where this is a pointer to this TaskLinkGroup.
Definition at line 91 of file KDGanttViewTaskLinkGroup.cpp. References KDGanttViewTaskLink::setGroup(). |
|
Removes a task link LINK from this group. You may remove a tasklink LINK from its group with LINK->setGroup(0).
Definition at line 105 of file KDGanttViewTaskLinkGroup.cpp. |
|
Specifies whether the task links of this group should be visible or not.
Definition at line 121 of file KDGanttViewTaskLinkGroup.cpp. Referenced by createFromDomElement(). |
|
Returns whether the task links of this group should be visible or not.
Definition at line 137 of file KDGanttViewTaskLinkGroup.cpp. Referenced by createFromDomElement(), and createNode(). |
|
Specifies whether the task links of this group should be shown highlighted. The user can also highlight a task link with the mouse.
Definition at line 151 of file KDGanttViewTaskLinkGroup.cpp. Referenced by createFromDomElement(). |
|
Returns whether all task links in this group are highlighted, either programmatically by setHighlight() or by the user with the mouse. This method is not particularly useful and is mainly provided for API uniformity reasons.
Definition at line 170 of file KDGanttViewTaskLinkGroup.cpp. Referenced by createFromDomElement(), and createNode(). |
|
Specifies the color to draw the task links in this group in.
Definition at line 182 of file KDGanttViewTaskLinkGroup.cpp. Referenced by createFromDomElement(). |
|
Returns the color in which the task links in this group are drawn. If task links have been assigned individual colors, the return value of this method is undefined. This method is not particularly useful and is mainly provided for API uniformity reasons.
Definition at line 201 of file KDGanttViewTaskLinkGroup.cpp. Referenced by createFromDomElement(), and createNode(). |
|
Specifies the highlight color to draw the task links in this group in.
Definition at line 213 of file KDGanttViewTaskLinkGroup.cpp. Referenced by createFromDomElement(). |
|
Returns the highlight color in which the task links in this group are drawn. If task links have been assigned individual highlight colors, the return value of this method is undefined. This method is not particularly useful and is mainly provided for API uniformity reasons.
Definition at line 233 of file KDGanttViewTaskLinkGroup.cpp. Referenced by createFromDomElement(), and createNode(). |
|
Returns the task link group with the specified name.
Definition at line 271 of file KDGanttViewTaskLinkGroup.cpp. Referenced by KDGanttViewTaskLink::createFromDomElement(). |
|
Creates a DOM node that describes this task link group.
Definition at line 285 of file KDGanttViewTaskLinkGroup.cpp. References color(), highlight(), highlightColor(), and visible(). |
|
Creates a KDGanttViewTaskLinkGroup according to the specification in a DOM element.
Definition at line 309 of file KDGanttViewTaskLinkGroup.cpp. References color(), highlight(), highlightColor(), KDGanttViewTaskLinkGroup(), setColor(), setHighlight(), setHighlightColor(), setVisible(), and visible(). |
|
Generates a unique name if necessary and inserts it into the group dictionary. Definition at line 365 of file KDGanttViewTaskLinkGroup.cpp. Referenced by KDGanttViewTaskLinkGroup(). |
The documentation for this class was generated from the following files: