kdgantt

KDGanttView Class Reference

#include <KDGanttView.h>

Inheritance diagram for KDGanttView:

KDGanttMinimizeSplitter List of all members.

Detailed Description

This class represents a Gantt view with the Gantt chart, the header, an optional listview and an optional legend.

In order to set up a Gantt view, create an object of this class, and populate it with a number of KDGanttViewItem objects.

If you experience problems with the repainting of the content of the Gantt View after scrolling, call setRepaintMode().

Definition at line 69 of file KDGanttView.h.


Public Types

enum  Scale {
  Minute, Hour, Day, Week,
  Month, Auto
}
enum  YearFormat { FourDigit, TwoDigit, TwoDigitApostrophe, NoDate }
enum  HourFormat { Hour_24, Hour_12, Hour_24_FourDigit }
enum  RepaintMode { No, Medium, Always }

Public Slots

void editItem (KDGanttViewItem *)
void zoomToSelection (const QDateTime &start, const QDateTime &end)

Signals

void timeIntervallSelected (const QDateTime &start, const QDateTime &end)
void timeIntervalSelected (const QDateTime &start, const QDateTime &end)
void rescaling (Scale)
void itemLeftClicked (KDGanttViewItem *)
void itemMidClicked (KDGanttViewItem *)
void itemRightClicked (KDGanttViewItem *)
void itemDoubleClicked (KDGanttViewItem *)
void linkItems (KDGanttViewItem *from, KDGanttViewItem *to, int linkType)
void gvCurrentChanged (KDGanttViewItem *)
void gvItemLeftClicked (KDGanttViewItem *)
void gvItemMidClicked (KDGanttViewItem *)
void gvItemRightClicked (KDGanttViewItem *)
void gvMouseButtonClicked (int button, KDGanttViewItem *item, const QPoint &pos)
void gvItemDoubleClicked (KDGanttViewItem *)
void gvContextMenuRequested (KDGanttViewItem *item, const QPoint &pos)
void lvCurrentChanged (KDGanttViewItem *)
void lvItemRenamed (KDGanttViewItem *, int col, const QString &text)
void lvMouseButtonPressed (int button, KDGanttViewItem *item, const QPoint &pos, int c)
void lvItemLeftClicked (KDGanttViewItem *)
void lvItemMidClicked (KDGanttViewItem *)
void lvItemRightClicked (KDGanttViewItem *)
void lvContextMenuRequested (KDGanttViewItem *item, const QPoint &pos, int col)
void lvMouseButtonClicked (int button, KDGanttViewItem *item, const QPoint &pos, int c)
void lvItemDoubleClicked (KDGanttViewItem *)
void lvSelectionChanged (KDGanttViewItem *)
void itemConfigured (KDGanttViewItem *)
void taskLinkLeftClicked (KDGanttViewTaskLink *)
void taskLinkMidClicked (KDGanttViewTaskLink *)
void taskLinkRightClicked (KDGanttViewTaskLink *)
void taskLinkDoubleClicked (KDGanttViewTaskLink *)
void dropped (QDropEvent *e, KDGanttViewItem *droppedItem, KDGanttViewItem *itemBelowMouse)

Public Member Functions

 KDGanttView (QWidget *parent=0, const char *name=0)
 ~KDGanttView ()
virtual void show ()
virtual bool close (bool alsoDelete)
void setRepaintMode (RepaintMode mode)
void setUpdateEnabled (bool enable)
bool getUpdateEnabled () const
void setGanttMaximumWidth (int w)
int ganttMaximumWidth () const
void setShowLegend (bool show)
bool showLegend () const
void setLegendIsDockwindow (bool dock)
bool legendIsDockwindow () const
QDockWindow * legendDockwindow () const
void setShowListView (bool show)
bool showListView () const
void setEditorEnabled (bool enable)
bool editorEnabled () const
void setListViewWidth (int)
int listViewWidth ()
void setEditable (bool editable)
bool editable () const
void setCalendarMode (bool mode)
bool calendarMode () const
void setDisplaySubitemsAsGroup (bool show)
bool displaySubitemsAsGroup () const
void setDisplayEmptyTasksAsLine (bool show)
bool displayEmptyTasksAsLine () const
void setHorBackgroundLines (int count=2, QBrush brush=QBrush(QColor(200, 200, 200), Qt::Dense6Pattern))
int horBackgroundLines (QBrush &brush)
bool saveProject (QIODevice *)
bool loadProject (QIODevice *)
void print (QPrinter *printer=0, bool printListView=true, bool printTimeLine=true, bool printLegend=false)
QSize drawContents (QPainter *p=0, bool drawListView=true, bool drawTimeLine=true, bool drawLegend=false)
void setZoomFactor (double factor, bool absolute)
double zoomFactor () const
void zoomToFit ()
void ensureVisible (KDGanttViewItem *)
void center (KDGanttViewItem *)
void centerTimeline (const QDateTime &center)
void centerTimelineAfterShow (const QDateTime &center)
void setTimelineToStart ()
void setTimelineToEnd ()
void addTicksLeft (int num=1)
void addTicksRight (int num=1)
void setShowTaskLinks (bool show)
bool showTaskLinks () const
void setFont (const QFont &f)
void setShowHeaderPopupMenu (bool show=true, bool showZoom=true, bool showScale=true, bool showTime=true, bool showYear=true, bool showGrid=true, bool showPrint=false)
bool showHeaderPopupMenu () const
void setShowTimeTablePopupMenu (bool)
bool showTimeTablePopupMenu () const
void setShapes (KDGanttViewItem::Type type, KDGanttViewItem::Shape start, KDGanttViewItem::Shape middle, KDGanttViewItem::Shape end, bool overwriteExisting=true)
bool shapes (KDGanttViewItem::Type type, KDGanttViewItem::Shape &start, KDGanttViewItem::Shape &middle, KDGanttViewItem::Shape &end) const
void setColors (KDGanttViewItem::Type type, const QColor &start, const QColor &middle, const QColor &end, bool overwriteExisting=true)
bool colors (KDGanttViewItem::Type type, QColor &start, QColor &middle, QColor &end) const
void setDefaultColor (KDGanttViewItem::Type type, const QColor &, bool overwriteExisting=true)
QColor defaultColor (KDGanttViewItem::Type type) const
void setHighlightColors (KDGanttViewItem::Type type, const QColor &start, const QColor &middle, const QColor &end, bool overwriteExisting=true)
bool highlightColors (KDGanttViewItem::Type type, QColor &start, QColor &middle, QColor &end) const
void setDefaultHighlightColor (KDGanttViewItem::Type type, const QColor &, bool overwriteExisting=true)
QColor defaultHighlightColor (KDGanttViewItem::Type type) const
void setTextColor (const QColor &color)
QColor textColor () const
void setNoInformationBrush (const QBrush &brush)
QBrush noInformationBrush () const
QPtrList< KDGanttViewTaskLinktaskLinks () const
QPtrList< KDGanttViewTaskLinkGrouptaskLinkGroups () const
void addLegendItem (KDGanttViewItem::Shape shape, const QColor &shapeColor, const QString &text)
void clearLegend ()
void setHorizonStart (const QDateTime &start)
QDateTime horizonStart () const
void setHorizonEnd (const QDateTime &start)
QDateTime horizonEnd () const
void setScale (Scale)
Scale scale () const
void setMaximumScale (Scale)
Scale maximumScale () const
void setMinimumScale (Scale)
Scale minimumScale () const
void setAutoScaleMinorTickCount (int count)
int autoScaleMinorTickCount () const
void setMajorScaleCount (int count)
int majorScaleCount () const
void setMinorScaleCount (int count)
int minorScaleCount () const
void setMinimumColumnWidth (int width)
int minimumColumnWidth () const
void setYearFormat (YearFormat format)
YearFormat yearFormat () const
void setHourFormat (HourFormat format)
HourFormat hourFormat () const
void setShowMajorTicks (bool)
bool showMajorTicks () const
void setShowMinorTicks (bool)
bool showMinorTicks () const
void setColumnBackgroundColor (const QDateTime &column, const QColor &color, Scale mini=KDGanttView::Minute, Scale maxi=KDGanttView::Month)
void setIntervalBackgroundColor (const QDateTime &start, const QDateTime &end, const QColor &color, Scale mini=KDGanttView::Minute, Scale maxi=KDGanttView::Month)
bool changeBackgroundInterval (const QDateTime &oldstart, const QDateTime &oldend, const QDateTime &newstart, const QDateTime &newend)
bool deleteBackgroundInterval (const QDateTime &start, const QDateTime &end)
void clearBackgroundColor ()
QColor columnBackgroundColor (const QDateTime &column) const
void setWeekendBackgroundColor (const QColor &color)
QColor weekendBackgroundColor () const
void setWeekdayBackgroundColor (const QColor &color, int weekday)
QColor weekdayBackgroundColor (int weekday) const
void setPaletteBackgroundColor (const QColor &col)
void setGvBackgroundColor (const QColor &)
void setLvBackgroundColor (const QColor &)
void setTimeHeaderBackgroundColor (const QColor &)
void setLegendHeaderBackgroundColor (const QColor &)
QColor gvBackgroundColor () const
QColor lvBackgroundColor () const
QColor timeHeaderBackgroundColor () const
QColor legendHeaderBackgroundColor () const
void addUserdefinedLegendHeaderWidget (QWidget *w)
void setWeekendDays (int start, int end)
void weekendDays (int &start, int &end) const
void setHeaderVisible (bool)
bool headerVisible () const
void setShowLegendButton (bool show)
bool showLegendButton () const
virtual int addColumn (const QString &label, int width=-1)
virtual int addColumn (const QIconSet &iconset, const QString &label, int width=-1)
virtual void removeColumn (int index)
KDGanttViewItemselectedItem () const
void setSelected (KDGanttViewItem *, bool)
KDGanttViewItemfirstChild () const
KDGanttViewItemlastItem () const
int childCount () const
void clear ()
void setDragEnabled (bool b)
void setDropEnabled (bool b)
void setDragDropEnabled (bool b)
bool dragEnabled () const
bool dropEnabled () const
bool isDragEnabled () const
bool isDropEnabled () const
virtual bool lvDropEvent (QDropEvent *e, KDGanttViewItem *, KDGanttViewItem *)
virtual void lvStartDrag (KDGanttViewItem *)
virtual bool lvDragMoveEvent (QDragMoveEvent *e, KDGanttViewItem *, KDGanttViewItem *)
virtual void lvDragEnterEvent (QDragEnterEvent *e)
virtual QSize sizeHint () const
KDGanttViewItemgetItemByName (const QString &name) const
QDateTime getDateTimeForCoordX (int coordX, bool global=true) const
KDGanttViewItemgetItemByListViewPos (const QPoint &pos) const
KDGanttViewItemgetItemByGanttViewPos (const QPoint &pos) const
KDGanttViewItemgetItemAt (const QPoint &pos, bool global=true) const
void setLvVScrollBarMode (QScrollView::ScrollBarMode)
void setGvVScrollBarMode (QScrollView::ScrollBarMode)
void setLinkItemsEnabled (bool on)
bool isLinkItemsEnabled () const

Static Public Member Functions

static QPixmap getPixmap (KDGanttViewItem::Shape shape, const QColor &shapeColor, const QColor &backgroundColor, int itemSize)

Protected Member Functions

virtual QDragObject * dragObject ()
virtual void startDrag ()

Properties

bool showLegend []
bool showListView []
bool showTaskLinks []
bool editorEnabled []
QDateTime horizonStart []
QDateTime horizonEnd []
Scale scale []
YearFormat yearFormat []
HourFormat hourFormat []
bool showMinorTicks []
bool showMajorTicks []
bool editable []
QColor textColor []
int majorScaleCount []
int minorScaleCount []
int autoScaleMinorTickCount []
Scale maximumScale []
Scale minimumScale []
int minimumColumnWidth []
int ganttMaximumWidth []
QColor weekendBackgroundColor []
QColor ganttViewBackgroundColor []
QColor listViewBackgroundColor []
QColor timeHeaderBackgroundColor []
QColor legendHeaderBackgroundColor []
double zoomFactor []
bool showHeaderPopupMenu []
bool showTimeTablePopupMenu []
bool headerVisible []
bool showLegendButton []
bool legendIsDockwindow []
bool displayEmptyTasksAsLine []
QBrush noInformationBrush []
bool dragEnabled []
bool dropEnabled []
bool calendarMode []

Friends

class KDGanttCanvasView
class KDGanttViewEventItem
class KDGanttViewItem
class KDGanttViewTaskItem
class KDGanttViewSummaryItem
class KDGanttViewTaskLink
class KDGanttViewCalendarItem
class KDTimeTableWidget
class KDTimeHeaderWidget
class KDListView
class KDGanttViewTaskLinkGroup
class KDLegendWidget

Member Enumeration Documentation

This enum is used to specify the units of the scales in the header.

Definition at line 115 of file KDGanttView.h.

This enum is used to specify the year format used in the header.

Definition at line 116 of file KDGanttView.h.

This enum is used to specify the hour format used in the header.

Definition at line 117 of file KDGanttView.h.

Please see setRepaintMode() for a description of the values of this enumeration.

Definition at line 118 of file KDGanttView.h.


Constructor & Destructor Documentation

KDGanttView::KDGanttView ( QWidget *  parent = 0,
const char *  name = 0 
)

Constructs an empty KDGanttView.

Parameters:
parent the widget parent
name the internal debugging name

Definition at line 83 of file KDGanttView.cpp.


Member Function Documentation

void KDGanttView::show (  )  [virtual]

Updates the content of the GanttView and shows it. Automatically sets setUpdateEnabled( true ).

See also:
setUpdateEnabled()

Definition at line 282 of file KDGanttView.cpp.

bool KDGanttView::close ( bool  alsoDelete  )  [virtual]

Closes the widget. The closing is rejected, if a repainting is currently being done.

Parameters:
alsoDelete if true, the widget is deleted
Returns:
true, if the widget was closed

Definition at line 304 of file KDGanttView.cpp.

void KDGanttView::setRepaintMode ( RepaintMode  mode  ) 

Specifies whether the content should be repainted after scrolling or not.

Parameters:
mode If No, there is no repainting after scrolling. This is the fastest mode. If Medium, there is extra repainting after releasing the scrollbar. This provides fast scrolling with updated content after scrolling. Recommended, when repaint problems occur. This is the default value after startup. If Always, there is an extra update after every move of the scrollbar. This entails slow scrolling with updated content at all time.

Definition at line 548 of file KDGanttView.cpp.

void KDGanttView::setUpdateEnabled ( bool  enable  ) 

Enables or disables updating of the content of the Gantt view. To avoid flickering in the Gantt view while inserting large amounts of Gantt items, you should call

bool upd = KDGanttView::getUpdateEnabled(); KDGanttView::settUpdateEnabled( false ); ... insert items here ... KDGanttView::settUpdateEnabled( upd );

With this code, you avoid unwanted side effects with other parts in your code, where you disable (and re-enable) the update.

When calling setUpdateEnabled( true ), all the content is recomputed, resized, and updated.

Before calling show() for the first time, updating is disabled. When calling show(), updating is automatically enabled.

Parameters:
enable if true, the content of the Gantt view is updated after every insertion of a new item.
See also:
getUpdateEnabled()

Definition at line 230 of file KDGanttView.cpp.

bool KDGanttView::getUpdateEnabled (  )  const

Returns whether updating is enabled or not.

Returns:
true, if updating is enabled
See also:
setUpdateEnabled()

Definition at line 246 of file KDGanttView.cpp.

void KDGanttView::setGanttMaximumWidth ( int  w  ) 

Sets the maximum width of the Gantt view part widget in pixels. The largest allowed width is 32767.

Parameters:
w the maximum width

Definition at line 260 of file KDGanttView.cpp.

void KDGanttView::setShowLegend ( bool  show  ) 

Specifies whether the legend should be shown or not. Besides setting this programmatically, the user can also show/hide the legend by using the button provided for this purpose.

Parameters:
show force legend to be shown
See also:
showLegend()

Definition at line 668 of file KDGanttView.cpp.

void KDGanttView::setLegendIsDockwindow ( bool  show  ) 

Specifies whether the legend should be shown as a dock window or not.

Parameters:
show if true, show legend as a dock window
See also:
showLegend(), legendIsDockwindow(), legendDockwindow()

Definition at line 617 of file KDGanttView.cpp.

QDockWindow * KDGanttView::legendDockwindow (  )  const

Returns the pointer to the legend dock window. DO NOT DELETE THIS POINTER! If the legend is not a dock window, 0 is returned To set the legend as a dock window, call KDGanttView::setLegendIsDockwindow( true );

Returns:
the pointer to the legend dock window 0 is returned, if the legend is no dock window DO NOT DELETE THIS POINTER!
See also:
setShowLegend(), setLegendIsDockwindow(),legendIsDockwindow()

Definition at line 654 of file KDGanttView.cpp.

void KDGanttView::setShowListView ( bool  show  ) 

Specifies whether the listview of the Gantt view should be shown or not.

Parameters:
show pass true in order to show the listview and false in order to hide it.
See also:
showListView()

Definition at line 696 of file KDGanttView.cpp.

void KDGanttView::setEditorEnabled ( bool  enable  ) 

Specifies whether it should be possible to edit the appearance of a Gantt item visually in a dialog by double-clicking the item.

Parameters:
enable pass true in order to enable the visual editor and false in order to turn it off
See also:
editorEnabled()

Definition at line 728 of file KDGanttView.cpp.

void KDGanttView::setListViewWidth ( int  w  ) 

Sets the width of the list view. Space will be taken from or given to the Gantt view.

Parameters:
w the width of the list view
See also:
listViewWidth()

Definition at line 4558 of file KDGanttView.cpp.

int KDGanttView::listViewWidth (  ) 

Returns the width of the list view.

Returns:
the width of the list view
See also:
setListViewWidth()

Definition at line 4574 of file KDGanttView.cpp.

void KDGanttView::setEditable ( bool  editable  ) 

Specifies whether the Gantt chart is user-editable.

Parameters:
editable pass true in order to get a user-editable Gantt chart, pass false in order to get a read-only chart
See also:
editable()

Definition at line 756 of file KDGanttView.cpp.

void KDGanttView::setCalendarMode ( bool  mode  ) 

This method turns calendar mode on and off. In calendar mode, only those items can be opened which have subitems which have subitems. I.e., if an item contains multiple calendars, it can be opened, but not a calendar item itself. If you want to use this GanttView as a calendar view, you have to call setDisplaySubitemsAsGroup( true ); to use the root items as calendar items. To create new calendar entries for these root items, create a new KDGanttViewTaskItem with this root item as a parent. If you want an item with subitems to behave like a calendar (which is possibly empty at startup), please call setIsCalendar( true ); for this item.

Parameters:
mode if true, the calendar view mode is turned on if false, the calendar view mode is turned off
See also:
setDisplaySubitemsAsGroup(), displaySubitemsAsGroup(), calendarMode()

Definition at line 2355 of file KDGanttView.cpp.

void KDGanttView::setDisplaySubitemsAsGroup ( bool  show  ) 

This method specifies whether hidden subitems should be displayed. It iterates over all KDGanttViewItems in this Gantt view and sets their displaySubitemsAsGroup() property. All newly created items will have this setting by default.

Parameters:
show if true, the hidden subitems are displayed in all items of this Gantt view.
See also:
KDGanttViewItem::setDisplaySubitemsAsGroup(), KDGanttViewItem::displaySubitemsAsGroup()

Definition at line 2384 of file KDGanttView.cpp.

bool KDGanttView::displaySubitemsAsGroup (  )  const

Returns, whether new items are created with the displayHiddenSubitems property.

Returns:
true, if hidden subitems should be displayed on newly created items.
See also:
setDisplaySubitemsAsGroup(), KDGanttViewItem::setDisplaySubitemsAsGroup(), KDGanttViewItem::displaySubitemsAsGroup()

Definition at line 2403 of file KDGanttView.cpp.

void KDGanttView::setDisplayEmptyTasksAsLine ( bool  show  ) 

This method specifies whether tasks where the start time and the end time are the same are displayed as a line over the full height of the Gantt view.

Parameters:
show if true, tasks with starttime == endtime are displayed as a line

Definition at line 2416 of file KDGanttView.cpp.

void KDGanttView::setHorBackgroundLines ( int  count = 2,
QBrush  brush = QBrush( QColor ( 200,200,200 ), Qt::Dense6Pattern ) 
)

Defines the horizontal background lines of the Gantt chart. Call setHorBackgroundLines() (equivalent to setHorBackgroundLines( 2, QBrush( QColor ( 240,240,240 )) ) ) to draw a light grey horizontal background line for every second Gantt item. Call setHorBackgroundLines(0) in order to not show horizontal background lines. You may specify the number of lines and the brush of the lines.

Parameters:
count for count >= 2, every count line gets a backgroud specified by brush for count < 2, no background lines are drawn
brush the brush of the lines

Definition at line 2448 of file KDGanttView.cpp.

int KDGanttView::horBackgroundLines ( QBrush &  brush  ) 

Returns the definition of the horizontal background lines of the Gantt chart.

Parameters:
brush the brush of the lines
Returns:
every nth line gets a background specified by brush if 0 is returned, no backgroud lines are drawn

Definition at line 2463 of file KDGanttView.cpp.

bool KDGanttView::saveProject ( QIODevice *  device  ) 

Saves the state of the Gantt view in an IO device in XML format. The saved data can be reloaded with loadProject().

Parameters:
device a pointer to the IO device in which to store the Gantt view state.
Returns:
true if the data could be written, false if an error occurred
See also:
loadProject()

Definition at line 786 of file KDGanttView.cpp.

bool KDGanttView::loadProject ( QIODevice *  device  ) 

Loads a previously saved state of the Gantt view. All current settings and items are discarded before loading the data.

Parameters:
device a pointer to the IO device from which to load the Gantt view state.
Returns:
true if the file could be read, false if an error occurred
See also:
saveProject()

Definition at line 813 of file KDGanttView.cpp.

void KDGanttView::print ( QPrinter *  printer = 0,
bool  printListView = true,
bool  printTimeLine = true,
bool  printLegend = false 
)

Sends a Gantt view to a printer. The printer should already be set up for printing (by calling QPrinter::setup()). If the printer is not set up, QPrinter::setup() is called before printing

You can specify, whether the ListView, TimeLine, or Legend will be printed. All combinations of these three widgets are allowed.

Parameters:
printer a pointer to the printer to print on. If printer is 0, the method creates a temporary printer and discards it when it is done printing.
printListView if true, the list view is printed
printTimeLine if true, the time line is printed
printLegend if true, the legend is printed
See also:
drawContents()

Definition at line 854 of file KDGanttView.cpp.

QSize KDGanttView::drawContents ( QPainter *  p = 0,
bool  drawListView = true,
bool  drawTimeLine = true,
bool  drawLegend = false 
)

Paints a Gantt view on a QPainter. You can specify, whether the list view, the time line, or the legend is painted. All combinations of these three widgets are allowed. Returns the size of the painted area. Paints the list view in the top-left corner, the time line to the right of the list view, and the legend below the list view. If called with p = 0, nothing is painted and only the size of the painted area is computed. This is useful for determining only the painted area and setting the scale of the painter, before calling this method with a painter. In order to get the output fitted to your paper and your printer, call first QSize size = drawContents( 0, printListView, printTimeLine, printLegend ); then compute the scale dx = paper.width() / size.width(); dy = paper.height() / size.height(); then make float scale to fit the width or height of the paper if ( dx < dy ) scale = dx; else scale = dy; then set the scale p.scale( scale, scale ); and now call drawContents with painter p drawContents( &p, printListView, printTimeLine, printLegend );

For a detailed example, please see the commented source code in KDGanttView::print(...)

Parameters:
p a pointer to the painter to paint on. If p is 0, nothing is painted and only the size of the painted area is computed
drawListView if true, the list view is painted
drawTimeLine if true, the time line is painted
drawLegend if true, the legend is painted
Returns:
the size of the painted area
See also:
print()

Definition at line 946 of file KDGanttView.cpp.

void KDGanttView::setZoomFactor ( double  factor,
bool  absolute 
)

Zooms into the Gantt chart. Values less than 1 mean zooming in, values greater than 1 mean zooming out. A zooming factor of exactly 1.0 means original size.

Parameters:
factor the zoom factor
absolute if true, factor is interpreted absolutely, if false, factor is interpreted relatively to the current zoom factor
See also:
zoomToFit()

zoomToSelection()

zoomFactor()

Definition at line 1021 of file KDGanttView.cpp.

void KDGanttView::zoomToFit (  ) 

Zooms such that the Gantt chart is less than the available space of the widget.

See also:
setZoomFactor()

zoomFactor()

zoomToSelection()

Definition at line 1048 of file KDGanttView.cpp.

void KDGanttView::ensureVisible ( KDGanttViewItem item  ) 

Makes sure that the specified Gantt item is visible without scrolling.

See also:
center(), centerTimelineAfterShow()

Definition at line 1079 of file KDGanttView.cpp.

void KDGanttView::center ( KDGanttViewItem item  ) 

Makes sure that the specified Gantt item is in the center of the visible Gantt chart (if possible).

Definition at line 1175 of file KDGanttView.cpp.

void KDGanttView::centerTimeline ( const QDateTime &  center  ) 

Makes sure that the specified QDateTime is in the center of the visible Gantt chart (if possible). If you want to center the timeline when the KDGanttView is hidden, calling centerTimelineAfterShow() is the better alternative.

See also:
center(), centerTimelineAfterShow()

Definition at line 1093 of file KDGanttView.cpp.

void KDGanttView::centerTimelineAfterShow ( const QDateTime &  center  ) 

Makes sure that the specified QDateTime is in the center of the visible Gantt chart (if possible). If the KDGanttView is currently hidden, this method resets the center once again after the next show() call. Use this method if you want to center the timeline when the KDGanttView is hidden. After calling KDGanttView::show(), there may be computations of the sizes of the widgets and subwidgets and of the automatically computed start datetime. This method ensures that the center of the timeline is to be properly reset after show().

See also:
center(), centerTimeline()

Definition at line 1112 of file KDGanttView.cpp.

void KDGanttView::setTimelineToStart (  ) 

Sets the timeline to the horizon start.

Definition at line 1125 of file KDGanttView.cpp.

void KDGanttView::setTimelineToEnd (  ) 

Sets the timeline to the horizon end.

Definition at line 1134 of file KDGanttView.cpp.

void KDGanttView::addTicksLeft ( int  num = 1  ) 

Add num minor ticks of the current scale of the timeline to the start of the timeline. The timeline is not set automatically at the start. Call setTimelineToStart() to ensure that the timeline is at the start after calling this method.

Parameters:
num the number of minor ticks which should be added
See also:
addTicksRight(),setTimelineToStart(), setTimelineToEnd()

Definition at line 1150 of file KDGanttView.cpp.

void KDGanttView::addTicksRight ( int  num = 1  ) 

Add num minor ticks of the current scale of the timeline to the end of the timeline. The timeline is not set automatically at the end. Call setTimelineToEnd() to ensure that the timeline is at the end after calling this method.

Parameters:
num the number of minor ticks which should be added
See also:
addTicksLeft(),setTimelineToStart(), setTimelineToEnd()

Definition at line 1165 of file KDGanttView.cpp.

void KDGanttView::setShowTaskLinks ( bool  show  ) 

Specifies whether task links should be shown.

Parameters:
show true for showing task links, false for not showing them
See also:
showTaskLinks(), KDGanttViewTaskLink

Definition at line 1190 of file KDGanttView.cpp.

void KDGanttView::setFont ( const QFont &  font  ) 

Sets the font in the left list view widget and in the right time header widget. The settings of the fonts in the time table widget are not effected.

Parameters:
font the new font of the widget

Definition at line 1216 of file KDGanttView.cpp.

void KDGanttView::setShowHeaderPopupMenu ( bool  show = true,
bool  showZoom = true,
bool  showScale = true,
bool  showTime = true,
bool  showYear = true,
bool  showGrid = true,
bool  showPrint = false 
)

Specifies whether the configure popup menu should be shown on right click on the time header widget. This menu lets the user quickly change the zoom factor, the scale mode (minute, hour, day, week, month, auto) , the time format, the year format, the grid format, and printing. The default setting is not to show the popup menu. This functionality must be enabled explicitly by the application developer. You can disable each submenu of the popmenu.

Parameters:
show true in order to show the popup menu, false in order not to. The default is true.
showZoom show the zoom submenu, default: true
showScale show the scale submenu, default: true
showTime show the time format submenu, default: true
showYear show the year format submenu, default: true
showGrid show the grid submenu, default: true
showPrint show the print submenu, default: false

Definition at line 1251 of file KDGanttView.cpp.

void KDGanttView::setShowTimeTablePopupMenu ( bool  show  ) 

Specifies whether the add item popup menu should be shown on right click on the time table widget. This menu lets the user quickly add new items to the Gantt view (as root, as child or after an item). It also offers cutting and pasting of items.

The default setting is that the popup menu is not shown. It must be enabled by the program.

Parameters:
show true in order to show popup menu, false in order not to

Definition at line 1290 of file KDGanttView.cpp.

void KDGanttView::setShapes ( KDGanttViewItem::Type  type,
KDGanttViewItem::Shape  start,
KDGanttViewItem::Shape  middle,
KDGanttViewItem::Shape  end,
bool  overwriteExisting = true 
)

Sets the shapes for a certain type of Gantt item. Not all items use all three shapes (e.g., only summary items use the middle shape).

This setting overrides any shape settings made on individual items. These settings will be taken as initial values of any newly created item of this certain type. See also the documentation of the KDGanttViewItem class.

Parameters:
type the type of Gantt items for which to set the shapes
start the shape to use for the beginning of the item
middle the shape to use for the middle of the item
end the shape to use for the end of the item
overwriteExisting if true, overwrites existing shape settings in the individual items
See also:
shapes()

Definition at line 1325 of file KDGanttView.cpp.

bool KDGanttView::shapes ( KDGanttViewItem::Type  type,
KDGanttViewItem::Shape start,
KDGanttViewItem::Shape middle,
KDGanttViewItem::Shape end 
) const

Queries the shapes for a particular type of Gantt item.

Parameters:
type the type of Gantt items for which to query the shapes
start the start shape is returned in this parameter
middle the middle shape is returned in this parameter
end the end shape is returned in this parameter
Returns:
true if there was a general shape set for the specified type. If the return value is false, the values of the three shape parameters are undefined.
See also:
setShapes()

Definition at line 1358 of file KDGanttView.cpp.

void KDGanttView::setColors ( KDGanttViewItem::Type  type,
const QColor &  start,
const QColor &  middle,
const QColor &  end,
bool  overwriteExisting = true 
)

Sets the colors for a certain type of Gantt item. Not all items use all three colors (e.g., only summary items use the middle color).

This setting overrides any color settings made on individual items. These settings will be taken as initial values of any newly created item of this certain type. See also the description of the KDGanttViewItem class.

Parameters:
type the type of Gantt items for which to set the colors
start the color to use for the beginning of the item
middle the color to use for the middle of the item
end the color to use for the end of the item
overwriteExisting if true, overwrites existing color settings on invididual items
See also:
colors(), setDefaultColors(), defaultColors()

Definition at line 1388 of file KDGanttView.cpp.

bool KDGanttView::colors ( KDGanttViewItem::Type  type,
QColor &  start,
QColor &  middle,
QColor &  end 
) const

Queries the colors for a particular type of Gantt item.

Parameters:
type the type of Gantt items for which to query the colors
start the start color is returned in this parameter
middle the middle color is returned in this parameter
end the end color is returned in this parameter
Returns:
true if there was a general color set for the specified type. If the return value is false, the values of the three color parameters are undefined.
See also:
setColors(), setDefaultColor(), defaultColor()

Definition at line 1420 of file KDGanttView.cpp.

void KDGanttView::setDefaultColor ( KDGanttViewItem::Type  type,
const QColor &  color,
bool  overwriteExisting = true 
)

Sets the default color for a particular type of Gantt item that is used for the item if no specific start, middle, or end colors are set.

Parameters:
type the type of Gantt items for which to query the highlight colors
color the default color to use
overwriteExisting if true, existing settings for individual items are overwritten
See also:
defaultColor(), setColors(), colors()

Definition at line 2248 of file KDGanttView.cpp.

QColor KDGanttView::defaultColor ( KDGanttViewItem::Type  type  )  const

Returns the default color for a particular type of Gantt item that is used for the item if no specific start, middle, or end colors are set.

Parameters:
type the type of Gantt items for which to query the highlight colors
Returns:
color the default color used
See also:
setDefaultColor(), setColors(), colors()

Definition at line 2275 of file KDGanttView.cpp.

void KDGanttView::setHighlightColors ( KDGanttViewItem::Type  type,
const QColor &  start,
const QColor &  middle,
const QColor &  end,
bool  overwriteExisting = true 
)

Sets the highlight colors for a certain type of Gantt item. Not all items use all three highlight colors (e.g., only summary items use the middle highlight color).

This setting overrides any highlight color settings made on individual items. These settings will be taken as initial values of any newly created item of this certain type. See also the description of the KDGanttViewItem class.

Parameters:
type the type of Gantt items for which to set the highlight colors
start the highlight color to use for the beginning of the item
middle the highlight color to use for the middle of the item
end the highlight color to use for the end of the item
overwriteExisting if true, overwrites existing color settings in the individual items
See also:
highlightColors(), setDefaultHighlightColor(), defaultHighlightColor()

Definition at line 1450 of file KDGanttView.cpp.

bool KDGanttView::highlightColors ( KDGanttViewItem::Type  type,
QColor &  start,
QColor &  middle,
QColor &  end 
) const

Queries the highlight colors for a particular type of Gantt item.

Parameters:
type the type of Gantt items for which to query the highlight colors
start the start highlight color is returned in this parameter
middle the middle highlight color is returned in this parameter
end the end highlight color is returned in this parameter
Returns:
true if there was a general highlight color set for the specified type. If the return value is false, the values of the three highlight color parameters are undefined.
See also:
setHighlightColors(), setDefaultHighlightColor(), defaultHighlightColor()

Definition at line 1486 of file KDGanttView.cpp.

void KDGanttView::setDefaultHighlightColor ( KDGanttViewItem::Type  type,
const QColor &  color,
bool  overwriteExisting = true 
)

Sets the default highlighting color for a particular type of Gantt item that is used for the item if no specific start, middle, or end colors are set.

Parameters:
type the type of Gantt items for which to query the highlight colors
color the default highlighting color to use
overwriteExisting if true, existing color settings in individual items are overwritten
See also:
defaultHighlightColor(), setHighlightColors(), highlightColors()

Definition at line 2294 of file KDGanttView.cpp.

QColor KDGanttView::defaultHighlightColor ( KDGanttViewItem::Type  type  )  const

Returns the default highlighting color for a particular type of Gantt item that is used for the item if no specific start, middle, or end colors are set.

Parameters:
type the type of Gantt items for which to query the highlight colors
Returns:
color the default highlighting color used
See also:
setDefaultHighlightColor(), setHighlightColors(), highlightColors()

Definition at line 2321 of file KDGanttView.cpp.

void KDGanttView::setTextColor ( const QColor &  color  ) 

Sets the color used for texts in the Gantt chart. Overrides all individual settings of the Gantt items.

Parameters:
color the text color to use
See also:
textColor()

Definition at line 1505 of file KDGanttView.cpp.

void KDGanttView::setNoInformationBrush ( const QBrush &  brush  ) 

Specifies the brush in which the 'showNoInformation' line of items should be drawn.

Parameters:
brush the brush of the 'showNoInformation' lines
See also:
KDGanttViewItem::showNoInformation(), KDGanttViewItem::setShowNoInformation(), KDGanttView::noInformationBrush()

Definition at line 1537 of file KDGanttView.cpp.

QPtrList< KDGanttViewTaskLink > KDGanttView::taskLinks (  )  const

Returns the list of task links in the Gantt view.

Returns:
the list of task links in the Gantt view

Definition at line 2485 of file KDGanttView.cpp.

QPtrList< KDGanttViewTaskLinkGroup > KDGanttView::taskLinkGroups (  )  const

Returns the list of task link groups in the Gantt view.

Returns:
the list of task link groups in the Gantt view

Definition at line 2497 of file KDGanttView.cpp.

void KDGanttView::addLegendItem ( KDGanttViewItem::Shape  shape,
const QColor &  shapeColor,
const QString &  text 
)

Adds an item to the legend.

Parameters:
shape the shape to display
shapeColor the color in which to display the shape
text the text to display
See also:
clearLegend()

Definition at line 1577 of file KDGanttView.cpp.

void KDGanttView::clearLegend (  ) 

Removes all items from the legend.

See also:
addLegendItem()

Definition at line 1560 of file KDGanttView.cpp.

void KDGanttView::setHorizonStart ( const QDateTime &  start  ) 

Sets the start of the horizon of the Gantt chart. If start is null, the horizon start is computed automatically.

Parameters:
start the start of the horizon
See also:
horizonStart()

Definition at line 1597 of file KDGanttView.cpp.

void KDGanttView::setHorizonEnd ( const QDateTime &  end  ) 

Sets the end of the horizon of the Gantt chart. If end is null, the horizon end is computed automatically.

Parameters:
end the end of the horizon
See also:
setHorizonEnd()

Definition at line 1622 of file KDGanttView.cpp.

void KDGanttView::setScale ( Scale  unit  ) 

Configures the unit of the lower scale of the header. The higher unit is computed automatically.

Parameters:
unit the unit of the lower scale of the header.
See also:
scale()

Definition at line 1648 of file KDGanttView.cpp.

void KDGanttView::setMaximumScale ( Scale  unit  ) 

Sets the maximum allowed time scale of the lower scale of the header.

Parameters:
unit the unit of the lower scale of the header.
See also:
scale()

Definition at line 1672 of file KDGanttView.cpp.

void KDGanttView::setMinimumScale ( Scale  unit  ) 

Sets the minimum allowed time scale of the lower scale of the header.

Parameters:
unit the unit of the lower scale of the header.
See also:
scale()

Definition at line 1696 of file KDGanttView.cpp.

void KDGanttView::setAutoScaleMinorTickCount ( int  count  ) 

Sets the absolute number of minor ticks, if scaling is set to Auto. If the scale mode is set to Auto, then the actual scale and the minorScaleCount is automatically computed, such that there are count minor ticks

Parameters:
count the number of minor ticks
See also:
autoScaleMinorTickCount(),setScale(),scale()

Definition at line 1723 of file KDGanttView.cpp.

void KDGanttView::setMajorScaleCount ( int  count  ) 

Sets the number of ticks in the major scale.

Parameters:
count the number of ticks in the major scale
See also:
majorScaleCount(), setMinorScaleCount(), minorScaleCount()

Definition at line 2193 of file KDGanttView.cpp.

void KDGanttView::setMinorScaleCount ( int  count  ) 

Sets the number of ticks in the minor scale.

Parameters:
count the number of ticks in the minor scale
See also:
minorScaleCount, setMajorScaleCount, majorScaleCount()

Definition at line 2217 of file KDGanttView.cpp.

void KDGanttView::setMinimumColumnWidth ( int  width  ) 

Sets the minimum width that a column needs to have. If the size of the Gantt chart and the scale would make it necessary to go below this limit otherwise, the chart will automatically be made less exact.

Parameters:
width the minimum column width
See also:
minimumColumnWidth()

Definition at line 1749 of file KDGanttView.cpp.

void KDGanttView::setYearFormat ( YearFormat  format  ) 

Specifies the format in which to display years. If no years are shown, this method has no effect.

Parameters:
format the year format
See also:
yearFormat(), setHourFormat(), hourFormat()

Definition at line 1774 of file KDGanttView.cpp.

void KDGanttView::setHourFormat ( HourFormat  format  ) 

Specifies the format in which to display hours. If no hours are shown, this method has no effect.

Parameters:
format the hour format
See also:
hourFormat(), setYearFormat(), yearFormat()

Definition at line 1800 of file KDGanttView.cpp.

void KDGanttView::setShowMajorTicks ( bool  show  ) 

Hides/shows the grid for the major ticks of the time header in the gantt view.

Parameters:
show true in order to show ticks, false in order to hide them. If show is true, setShowMinorTicks( false ) is performed automatically to hide the grid of the minor ticks. In order to show now grid, call setShowMinorTicks( false ) and setShowMajorTicks( false ).
See also:
showMajorTicks(), setShowMinorTicks(), showMinorTicks()

Definition at line 1829 of file KDGanttView.cpp.

void KDGanttView::setShowMinorTicks ( bool  show  ) 

Hides/shows the grid for the minor ticks of the time header in the gantt view.

Parameters:
show true in order to show ticks, false in order to hide them. If show is true, setShowMajorTicks( false ) is performed automatically to hide the grid of the major ticks. In order to show now grid, call setShowMinorTicks( false ) and setShowMajorTicks( false ).
See also:
showMinorTicks(), setShowMajorTicks(), showMajorTicks()

Definition at line 1859 of file KDGanttView.cpp.

void KDGanttView::setColumnBackgroundColor ( const QDateTime &  column,
const QColor &  color,
Scale  mini = KDGanttView::Minute,
Scale  maxi = KDGanttView::Month 
)

Sets the background color for the column closest to column. It can be specified whether the color should be shown in all scales or only in specific scales. If you want to define the color only for the daily view, specify mini and maxi as Day. If there is no value specified for mini and maxi, the color for the column is shown on all scales. Note that it is possible that there are two values for a column in a scale. In this case, the shown color is unspecified.

Parameters:
column the column to set the background color for
color the background color
mini show the colour only in scales greater than this
maxi show the colour only in scales lesser than this
See also:
columnBackgroundColor(), setWeekendBackgroundColor(), weekendBackgroundColor()

Definition at line 1894 of file KDGanttView.cpp.

void KDGanttView::setIntervalBackgroundColor ( const QDateTime &  start,
const QDateTime &  end,
const QColor &  color,
Scale  mini = KDGanttView::Minute,
Scale  maxi = KDGanttView::Month 
)

Sets the background color for a time interval given by start and end. start may be later than end. If there is already a background interval with the same start and end values defined, the values (i.e. const QColor& color , Scale mini, Scale maxi) of this background interval are changed. Change the times of an already defined interval with changeBackgroundInterval(). Delete an already defined interval with deleteBackgroundInterval().

It can be defined, whether the color should be shown in all scales or only in specific scales. If you want to define the color only for the daily view, scecify mini and maxi as Day. If there is no value for mini/maxi specified, the color for the columns is shown in all scales.

Parameters:
start start datetime of the time interval
end end datetime of the time interval
color the background color
mini show the color only in scales greater than this
maxi show the color only in scales lesser than this
See also:
changeBackgroundInterval(), deleteBackgroundInterval(), columnBackgroundColor(), setWeekendBackgroundColor(), weekendBackgroundColor()

Definition at line 1928 of file KDGanttView.cpp.

bool KDGanttView::changeBackgroundInterval ( const QDateTime &  oldstart,
const QDateTime &  oldend,
const QDateTime &  newstart,
const QDateTime &  newend 
)

Changes the times of an already defined background color interval. The new values startnew and endnew should not be datetime values of an already defined background color interval. If that is the case, nothing is changed and false is returned.

Parameters:
oldstart the start date and time of the interval to change
oldend the end date and time of the interval to change
newstart the new start date and time
newend the new end date and time
Returns:
true, if there is a backgroundcolor interval with values start and end found and the new values startnew and endnew are not datetime values of an already defined background color interval. Returns false otherwise.
See also:
changeBackgroundInterval(), deleteBackgroundInterval(), columnBackgroundColor(), setWeekendBackgroundColor(), weekendBackgroundColor()

Definition at line 1955 of file KDGanttView.cpp.

bool KDGanttView::deleteBackgroundInterval ( const QDateTime &  start,
const QDateTime &  end 
)

Deletes an already defined background color interval.

Parameters:
start start datetime of time interval
end end datetime of time interval
Returns:
true, if there is a backgroundcolor interval with values start and end found (and hence deleted).
See also:
changeBackgroundInterval(), columnBackgroundColor()

Definition at line 1973 of file KDGanttView.cpp.

void KDGanttView::clearBackgroundColor (  ) 

QColor KDGanttView::columnBackgroundColor ( const QDateTime &  column  )  const

Returns the background color for the column closest to column.

Parameters:
column the column to query the background color for
Returns:
the background color of the specified color
See also:
setColumnBackgroundColor(), setWeekendBackgroundColor(), weekendBackgroundColor()

Definition at line 2002 of file KDGanttView.cpp.

void KDGanttView::setWeekendBackgroundColor ( const QColor &  color  ) 

Specifies the background color for weekend days. If no individual days are visible on the Gantt chart, this method has no visible effect.

Parameters:
color the background color to use for weekend days.
See also:
weekendBackgroundColor(), setWeekendDays(), weekendDays()

Definition at line 2016 of file KDGanttView.cpp.

void KDGanttView::setWeekdayBackgroundColor ( const QColor &  color,
int  weekday 
)

Specifies the background color for weekday days. If no individual days are visible on the Gantt chart, this method has no visible effect. The days are specified as an intervals of integer values where 1 means Monday and 7 means Sunday.

Parameters:
color the background color to use for weekend days.
weekday the day of the week (Monday = 1, Sunday = 7)
See also:
weekendBackgroundColor(), setWeekendDays(), weekendDays()

Definition at line 2044 of file KDGanttView.cpp.

QColor KDGanttView::weekdayBackgroundColor ( int  weekday  )  const

Returns the background color for weekday days.

Parameters:
weekday the day of the week (Monday = 1, Sunday = 7)
Returns:
the background color for weekend days
See also:
setWeekendBackgroundColor(), setWeekendDays(), weekendDays()

Definition at line 2057 of file KDGanttView.cpp.

void KDGanttView::setPaletteBackgroundColor ( const QColor &  col  ) 

This method is overridden for internal purposes.

Definition at line 4125 of file KDGanttView.cpp.

void KDGanttView::setGvBackgroundColor ( const QColor &  c  ) 

Sets the background color of the Gantt view.

Parameters:
c the background color of the Gantt view.
See also:
gvBackgroundColor()

Definition at line 4138 of file KDGanttView.cpp.

void KDGanttView::setLvBackgroundColor ( const QColor &  c  ) 

Sets the background color of the list view.

Parameters:
c the background color of the list view
See also:
lvBackgroundColor()

Definition at line 4177 of file KDGanttView.cpp.

void KDGanttView::setTimeHeaderBackgroundColor ( const QColor &  c  ) 

Sets the background color of the time header.

Parameters:
c the background color of the time header.
See also:
timeHeaderBackgroundColor()

Definition at line 4150 of file KDGanttView.cpp.

void KDGanttView::setLegendHeaderBackgroundColor ( const QColor &  c  ) 

Sets the background color of the legend header.

Parameters:
c the background color of the legend header
See also:
legendHeaderBackgroundColor()

Definition at line 4164 of file KDGanttView.cpp.

QColor KDGanttView::gvBackgroundColor (  )  const

Returns the background color of the Gantt view.

Returns:
the background color of the Gantt view
See also:
setGvBackgroundColor()

Definition at line 4201 of file KDGanttView.cpp.

QColor KDGanttView::lvBackgroundColor (  )  const

Returns the background color of the list view.

Returns:
the background color of the list view
See also:
setLvBackgroundColor()

Definition at line 4189 of file KDGanttView.cpp.

void KDGanttView::addUserdefinedLegendHeaderWidget ( QWidget *  w  ) 

Adds a widget to the spacer widget above the list view part and below the ShowLegendButton. To assign all the space above the Listview to the spacer widget, hide the ShowLegendButton by calling setShowLegendButton( false ). The spacer widget is a QHBox. You may add as many widgets as you want. They are ordered horizontally from left to right. To remove a widget from the spacer widget, call widget->reparent(newParent,...) or delete the widget. Since the spacer is a QHBox, the layout of the added widgets is managed by this QHBox.

Parameters:
w A pointer to the widget to be added.
See also:
setShowLegendButton( )

Definition at line 4245 of file KDGanttView.cpp.

void KDGanttView::setWeekendDays ( int  start,
int  end 
)

Defines which days are considered weekends. The days are specified as an interval of integer values where 1 means Monday and 7 means Sunday. In order to define a weekend from Sunday to Monday, specify (7,1).

Parameters:
start the first day of the weekend
end the last day of the weekend
See also:
weekendDays(), setWeekendBackgroundColor(), weekendBackgroundColor()

Definition at line 2074 of file KDGanttView.cpp.

void KDGanttView::weekendDays ( int &  start,
int &  end 
) const

Returns which days are considered weekends.

Parameters:
start in this parameter, the first day of the weekend is returned
end in this parameter, the end day of the weekend is returned
See also:
setWeekendDays(), setWeekendBackgroundColor(), weekendBackgroundColor()

Definition at line 2087 of file KDGanttView.cpp.

QPixmap KDGanttView::getPixmap ( KDGanttViewItem::Shape  shape,
const QColor &  shapeColor,
const QColor &  backgroundColor,
int  itemSize 
) [static]

This method returns the pixmap used for a certain shape, in the selected color and size.

Parameters:
shape the shape to generate
shapeColor the foreground color of the shape
backgroundColor the background color of the shape
itemSize the size of the shape
Returns:
the generated shape pixmap

Definition at line 3766 of file KDGanttView.cpp.

void KDGanttView::setHeaderVisible ( bool  visible  ) 

Specifies whether the listview header should be visible. By default, it is not visible.

Parameters:
visible true to make the header visible, false to make it invisible

Definition at line 391 of file KDGanttView.cpp.

void KDGanttView::setShowLegendButton ( bool  show  ) 

Specifies whether the legend button should be visible. By default, it is visible.

Parameters:
show true to show the legend button, false to hide it
See also:
showLegendButton()

Definition at line 362 of file KDGanttView.cpp.

int KDGanttView::addColumn ( const QString &  label,
int  width = -1 
) [virtual]

Calls to this method are passed through to the underlying QListView.

Definition at line 3879 of file KDGanttView.cpp.

int KDGanttView::addColumn ( const QIconSet &  iconset,
const QString &  label,
int  width = -1 
) [virtual]

Calls to this method are passed through to the underlying QListView.

Definition at line 3889 of file KDGanttView.cpp.

void KDGanttView::removeColumn ( int  index  )  [virtual]

Calls to this method are passed through to the underlying QListView.

Definition at line 3899 of file KDGanttView.cpp.

KDGanttViewItem * KDGanttView::selectedItem (  )  const

Calls to this method are passed through to the underlying QListView.

Definition at line 3908 of file KDGanttView.cpp.

void KDGanttView::setSelected ( KDGanttViewItem item,
bool  selected 
)

Calls to this method are passed through to the underlying QListView.

Definition at line 3917 of file KDGanttView.cpp.

KDGanttViewItem * KDGanttView::firstChild (  )  const

Returns the first item in the Gantt view.

Returns:
the first item in the Gantt view, 0 if there are no items

Definition at line 2333 of file KDGanttView.cpp.

KDGanttViewItem * KDGanttView::lastItem (  )  const

Returns the last item in the Gantt view

Returns:
the last item in the Gantt view, 0 if there are no items

Definition at line 2474 of file KDGanttView.cpp.

int KDGanttView::childCount (  )  const

Returns the number of items in the Gantt view.

Returns:
the number of items in the Gantt view.

Definition at line 4076 of file KDGanttView.cpp.

void KDGanttView::clear (  ) 

Removes all items from the Gantt view.

Definition at line 4085 of file KDGanttView.cpp.

void KDGanttView::setDragEnabled ( bool  b  ) 

Specifies whether drag operations are allowed in the Gantt view. Recurses over all items contained in the Gantt view and enables or disabled them for dragging.

Parameters:
b true if dragging is enabled, false if dragging is disabled
See also:
isDragEnabled(), setDropEnabled(), isDropEnabled(), setDragDropEnabled()

Definition at line 4261 of file KDGanttView.cpp.

void KDGanttView::setDropEnabled ( bool  b  ) 

Specifies whether drop operations are allowed in the Gantt view. Recurses over all items contained in the Gantt view and enables or disabled them for dropping.

Parameters:
b true if dragging is enabled, false if dragging is disabled
See also:
setDropEnabled(), setDragEnabled(), isDragEnabled(), setDragDropEnabled()

Definition at line 4280 of file KDGanttView.cpp.

void KDGanttView::setDragDropEnabled ( bool  b  ) 

Combines setDragEnabled() and setDropEnabled() in one convenient method.

Parameters:
b true if dragging and dropping are enabled, false if dragging and dropping are disabled
See also:
setDragEnabled(), setDropEnabled()

Definition at line 4300 of file KDGanttView.cpp.

bool KDGanttView::isDragEnabled (  )  const

Returns whether dragging is enabled for this Gantt view.

Returns:
true if dragging is enabled
See also:
setDragEnabled(), setDragDropEnabled()

Definition at line 4313 of file KDGanttView.cpp.

bool KDGanttView::isDropEnabled (  )  const

Returns whether dropping is enabled for this Gantt view.

Returns:
true if dropping is enabled
See also:
setDropEnabled(), setDragDropEnabled()

Definition at line 4325 of file KDGanttView.cpp.

bool KDGanttView::lvDropEvent ( QDropEvent *  e,
KDGanttViewItem droppedItem,
KDGanttViewItem itemBelowMouse 
) [virtual]

This virtual method makes it possible to specify user-defined drop handling. The method is called directly before the internal drop handling is executed. Return false to execute internal drop handling. Return true to not execute internal drop handling. In order to specify user-defined drop handling, subclass KDGanttView and reimplement this method.

Parameters:
e The QDropEvent Note: e->source() is a pointer to the KDGanttView from which the drag started. I.e., if e->source() == this, this drag is an internal drag.
droppedItem 0, if this is a drag operation from another KDGanttView instance. If this drag is an internal drag (i.e., within the KDGanttView), this parameter points to the dropped item.
itemBelowMouse a pointer to the item below the dragged item (i.e., below the mouse). If you accept, the dragged item may be inserted in the KDGanttView as a child of this item. The value is 0 if there is no item below the dragged item, and the dragged item will be inserted as a root item.
Returns:
false, when the internal drop handling should be executed true, when the internal drop handling should not be executed
See also:
lvDropEvent(), lvStartDrag()

Definition at line 4375 of file KDGanttView.cpp.

void KDGanttView::lvStartDrag ( KDGanttViewItem item  )  [virtual]

This virtual method creates a QDragObject and starts a drag for a KDGanttViewItem. In order to prevent drags of particular items, subclass from KDGanttView and reimplement this method.

Parameters:
item the KDGanttViewItem, which should be dragged
See also:
lvDropEvent(), lvDragMoveEvent()

Definition at line 4533 of file KDGanttView.cpp.

bool KDGanttView::lvDragMoveEvent ( QDragMoveEvent *  e,
KDGanttViewItem ,
KDGanttViewItem  
) [virtual]

This virtual method specifies whether a drop event may be accepted or not. To accept a drop event, call e->accept( true ); To not accept a drop event, call e->accept( false ); This method does nothing but allowing to execute the internal drag move event handling.

In order to specify user-defined drop acceptance for particular items, subclass KDGanttView and reimplement this method.

Parameters:
e The QDragMoveEvent Note: e->source() is a pointer to the KDGanttView, the drag started from. I.e. if e->source() == this, this drag is an internal drag. draggedItem 0, if this is a drag operation from another KDGanttView instance. If this drag is an internal drag (i.e., within the KDGanttView), this parameter points to the dragged item. itemBelowMouse a pointer to the item below the dragged item (i.e., below the mouse). If you accept the drop, the dragged item will be inserted in the KDGanttView as a child of this item. The value is 0 if there is no item below the dragged item, and the dragged item will be inserted as a root item.
Returns:
false, when the internal drag move event handling should be executed true, when the internal drag move event handling should not be executed; usually you should return true, if you have called e->accept( true ) before.
See also:
lvDropEvent(), lvStartDrag()

Definition at line 4493 of file KDGanttView.cpp.

void KDGanttView::lvDragEnterEvent ( QDragEnterEvent *  e  )  [virtual]

This virtual method specifies whether a drag enter event may be accepted or not. To accept a drag enter event, call e->accept( true ); To not accept a drag enter evente, call e->accept( false ); This method does nothing but accepting the drag enter event, in case decoding is possible. In order to define accepting drops for particular items yourself, subclass KDGanttView and reimplement this method.

Parameters:
e The QDragMoveEvent Note: e->source() is a pointer to the KDGanttView, the drag started from. I.e., if e->source() == this, this drag is an internal drag.
See also:
lvDropEvent(), lvStartDrag(), lvDragMoveEvent()

Definition at line 4439 of file KDGanttView.cpp.

QSize KDGanttView::sizeHint (  )  const [virtual]

Returns a useful size for the view. Returned width: sizeHint().width() of the list view + width of TimeTable Returned height: height() of TimeHeader + height() of TimeTable + height() of Legend (if shown)

Reimplemented from KDGanttMinimizeSplitter.

Definition at line 321 of file KDGanttView.cpp.

KDGanttViewItem * KDGanttView::getItemByName ( const QString &  name  )  const

Returns the pointer to the Gantt item with the name name. If no item is found, the return value is 0. If there is more than one item with the same name in the Gantt view, the first item found will be returned. This may not necessarily be the first item in the listview.

Parameters:
name the name of the Gantt item
Returns:
the pointer to the item with name name. O, if there is no item in the Gantt view with this name.

Definition at line 3935 of file KDGanttView.cpp.

QDateTime KDGanttView::getDateTimeForCoordX ( int  coordX,
bool  global = true 
) const

Returns the corresponding date and time of the coordinate X in the Gantt view.

Parameters:
coordX the coordinate to search for
global true if coordX is a global position, false otherwise
Returns:
the date and time at coordinate X in the Gantt view.

Definition at line 421 of file KDGanttView.cpp.

KDGanttViewItem * KDGanttView::getItemByListViewPos ( const QPoint &  pos  )  const

Returns the pointer to the Gantt item at the position pos in the list view. The position pos is a global position. If no item is found, 0 is returned.

Parameters:
pos the (global) position of the Gantt item
Returns:
the pointer to the item with position pos. O, if there is no item in the list view at this position.

Definition at line 3958 of file KDGanttView.cpp.

KDGanttViewItem * KDGanttView::getItemByGanttViewPos ( const QPoint &  pos  )  const

Returns the pointer to the Gantt item at the position pos in the Gantt view. The position pos is a global position. If no items are found, or the item is disabled, 0 is returned. If there is more than one item with the same position in the Gantt view, the first item found will be returned. This is not necessarily the first item in the listview.

Parameters:
pos the (global) position of the Gantt item
Returns:
the pointer to the item with position pos. O, if there is no item in the Gantt view at this position.

Definition at line 3978 of file KDGanttView.cpp.

KDGanttViewItem * KDGanttView::getItemAt ( const QPoint &  pos,
bool  global = true 
) const

Returns the pointer to the Gantt item at the position pos in the list view part of the Gantt view. The position pos is a global position if parameter global is true. If the vertical part (y coordinate) of pos (mapped to local coordinates) is less than 0 or larger than the height of the listview, 0 is returned. The horizontal part (x coordinate) of pos is ignored.

Parameters:
pos the position of the Gantt item
global if true, pos is assumed to be global
Returns:
the pointer to the item with position pos. O, if there is no item in the Gantt view at this position.

Definition at line 4010 of file KDGanttView.cpp.

void KDGanttView::setLvVScrollBarMode ( QScrollView::ScrollBarMode  m  ) 

Sets the scrollbar mode of the listview. The default is always off. Possible values are always on, always off and auto. It only makes sense to set this to always off if setGvVScrollBarMode() is set to always on.

Parameters:
m the scrollbar mode.
See also:
setGvVScrollBarMode( )

Definition at line 4589 of file KDGanttView.cpp.

void KDGanttView::setGvVScrollBarMode ( QScrollView::ScrollBarMode  m  ) 

Sets the scrollbar mode of the time table. The default is always on. Possible values are always on and always off. It only makes sense to set this to always off if setLvVScrollBarMode() is set to always on or auto.

Parameters:
m The scrollbar mode.
See also:
setLvVScrollBarMode( )

Definition at line 4604 of file KDGanttView.cpp.

void KDGanttView::setLinkItemsEnabled ( bool  on  ) 

This enables/disables the linking ui of KDGanttViewItems in KDGanttView. A signal linkItems() is emitted when two items shall be linked and can be used to create the actual link.

Definition at line 4633 of file KDGanttView.cpp.

void KDGanttView::editItem ( KDGanttViewItem item  )  [slot]

This slot is called when a new item has been added to the Gantt view. It will show the item attribute dialog in case the item is editable. item is a pointer to the item that has been created.

Definition at line 3743 of file KDGanttView.cpp.

void KDGanttView::zoomToSelection ( const QDateTime &  start,
const QDateTime &  end 
) [slot]

Zooms so that at least the selected time period is visible after the zoom.

Parameters:
start the new font of the widget
end the new font of the widget
See also:
setZoomFactor()

zoomFactor()

zoomToFit()

Definition at line 1065 of file KDGanttView.cpp.

void KDGanttView::timeIntervallSelected ( const QDateTime &  start,
const QDateTime &  end 
) [signal]

Deprecated:
This signal is deprecated, do not use it in new code; use timeIntervalSelected() instead. timeIntervallSelected() will be removed in future versions.

void KDGanttView::timeIntervalSelected ( const QDateTime &  start,
const QDateTime &  end 
) [signal]

This signal is emitted when the user selects a time interval with the mouse on the time header connect this signal to the slot void zoomToSelection( const QDateTime& start, const QDateTime& end) to obtain automatic zooming.

void KDGanttView::rescaling ( Scale   )  [signal]

This signal is emitted if another scale is choosen than the specified one: i.e. if the horizon has a very wide range from start to end and as scale is choosen minute it may be that the size of the Gantt widget would become more than 32000 pixels. In this case the scale is automatically changed to Hour and rescaling( Hour ) is emitted. If the widget size would be still more than 32000 pixels, the scale is automatically changed to day and rescaling( Day ) is emitted. In the new scale, the minortickcount is increased such that the horizon will fit in the maximum size of 32000 pixels.

void KDGanttView::itemLeftClicked ( KDGanttViewItem  )  [signal]

This signal is emitted when the user clicks on an item with the left mouse button.

void KDGanttView::itemMidClicked ( KDGanttViewItem  )  [signal]

This signal is emitted when the user clicks on an item with the middle mouse button.

void KDGanttView::itemRightClicked ( KDGanttViewItem  )  [signal]

This signal is emitted when the user clicks on an item with the right mouse button.

void KDGanttView::itemDoubleClicked ( KDGanttViewItem  )  [signal]

This signal is emitted when the user double-clicks an item.

void KDGanttView::linkItems ( KDGanttViewItem from,
KDGanttViewItem to,
int  linkType 
) [signal]

This signal is emitted when the user wants to link two items in the Gantt view.

void KDGanttView::gvCurrentChanged ( KDGanttViewItem item  )  [signal]

This signal is emitted whenever the user clicks on the Gantt view item parameter is 0, if no item was clicked

void KDGanttView::gvItemLeftClicked ( KDGanttViewItem  )  [signal]

This signal is emitted whenever the user clicks into the Gantt view with the left mouse button.

void KDGanttView::gvItemMidClicked ( KDGanttViewItem  )  [signal]

This signal is emitted whenever the user clicks into the Gantt view with the middle mouse button.

void KDGanttView::gvItemRightClicked ( KDGanttViewItem  )  [signal]

This signal is emitted whenever the user clicks into the Gantt view with the right mouse button.

void KDGanttView::gvMouseButtonClicked ( int  button,
KDGanttViewItem item,
const QPoint &  pos 
) [signal]

This signal is emitted when the user clicks into the Gantt view with any mouse button. Notice that pos is the absolute mouse position.

void KDGanttView::gvItemDoubleClicked ( KDGanttViewItem  )  [signal]

This signal is emitted whenever the user double-clicks into the Gantt view.

void KDGanttView::gvContextMenuRequested ( KDGanttViewItem item,
const QPoint &  pos 
) [signal]

This signal is emitted when the user requests a context menu in the Gantt view. Notice that pos is the absolute mouse position.

void KDGanttView::lvCurrentChanged ( KDGanttViewItem item  )  [signal]

This signal is emitted whenever the user clicks on the list view item parameter is 0, if no item was clicked

void KDGanttView::lvItemRenamed ( KDGanttViewItem ,
int  col,
const QString &  text 
) [signal]

This signal is emitted whenever the user changes the name of an item in the list view using in-place editing. text contains the new text in the list view.

void KDGanttView::lvMouseButtonPressed ( int  button,
KDGanttViewItem item,
const QPoint &  pos,
int  col 
) [signal]

This signal is emitted when the user presses any mouse button in the list view. Notice that pos is the absolute mouse position.

void KDGanttView::lvItemLeftClicked ( KDGanttViewItem  )  [signal]

This signal is emitted whenever the user clicks into the list view with the left mouse button.

void KDGanttView::lvItemMidClicked ( KDGanttViewItem  )  [signal]

This signal is emitted whenever the user clicks into the list view with the middle mouse button.

void KDGanttView::lvItemRightClicked ( KDGanttViewItem  )  [signal]

This signal is emitted whenever the user clicks into the list view with the right mouse button.

void KDGanttView::lvContextMenuRequested ( KDGanttViewItem item,
const QPoint &  pos,
int  col 
) [signal]

This signal is emitted when the user requests a context menu in the list view. Notice that pos is the absolute mouse position.

void KDGanttView::lvMouseButtonClicked ( int  button,
KDGanttViewItem item,
const QPoint &  pos,
int  col 
) [signal]

This signal is emitted when the user clicks into the list view with any mouse button . Notice that pos is the absolute mouse position.

void KDGanttView::lvItemDoubleClicked ( KDGanttViewItem  )  [signal]

This signal is emitted whenever the user double-clicks into the list view.

void KDGanttView::lvSelectionChanged ( KDGanttViewItem  )  [signal]

This signal is emitted whenever the user changes the selection in the list view.

void KDGanttView::itemConfigured ( KDGanttViewItem  )  [signal]

This signal is emitted when the user has configured an item visually.

void KDGanttView::taskLinkLeftClicked ( KDGanttViewTaskLink  )  [signal]

This signal is emitted when the user clicks on a task link with the left mouse button.

void KDGanttView::taskLinkMidClicked ( KDGanttViewTaskLink  )  [signal]

This signal is emitted when the user clicks on a task link with the middle mouse button.

void KDGanttView::taskLinkRightClicked ( KDGanttViewTaskLink  )  [signal]

This signal is emitted when the user clicks on a task link with the right mouse button.

void KDGanttView::taskLinkDoubleClicked ( KDGanttViewTaskLink  )  [signal]

This signal is emitted when the user double-clicks a task link.

void KDGanttView::dropped ( QDropEvent *  e,
KDGanttViewItem droppedItem,
KDGanttViewItem itemBelowMouse 
) [signal]

This signal is emitted whenever a Gantt item is dropped onto the Gantt view. droppedItem is 0, if this is a drag operation from another KDGanttView instance. If this drag is an internal drag (i.e. within the KDGanttView), this parameter points to the dropped item. itemBelowMouse is a pointer to the item below the dragged item (i.e., below the mouse). The dragged item may be inserted in the KDGanttView as a child of this item. If The value is 0, if there is no item below the dragged item, and the dragged item will be inserted as a root item.

In order to get user-defined behavior for drop events, reimplement KDGanttView::lvDropEvent()

QDragObject * KDGanttView::dragObject (  )  [protected, virtual]

Implements a pass-through to the list view.

Definition at line 4107 of file KDGanttView.cpp.

void KDGanttView::startDrag (  )  [protected, virtual]

Implements a pass-through to the list view.

Definition at line 4116 of file KDGanttView.cpp.


Property Documentation

bool KDGanttView::showLegend [read, write]

Returns whether the legend is currently shown. The visibility of the legend can be changed both by setShowLegend(), and interactively by the user.

Returns:
true if the legend is currently visible
See also:
setShowLegend()

Definition at line 73 of file KDGanttView.h.

bool KDGanttView::showListView [read, write]

Returns whether the listview of the Gantt view is shown or not.

Returns:
true if the listview is shown
See also:
setShowListView()

Definition at line 74 of file KDGanttView.h.

bool KDGanttView::showTaskLinks [read, write]

Returns whether task links should be shown.

Returns:
true if task links are shown, false otherwise
See also:
setShowTaskLinks(), KDGanttViewTaskLink

Definition at line 75 of file KDGanttView.h.

bool KDGanttView::editorEnabled [read, write]

Returns whether it is possible to edit the appearance of a Gantt item visually in a dialog by double-clicking the item.

Returns:
true if visual editing is enabled, false otherwise
See also:
setEditorEnabled()

Definition at line 76 of file KDGanttView.h.

QDateTime KDGanttView::horizonStart [read, write]

Returns the start of the horizon of the Gantt chart.

Returns:
the start of the horizon of the Gantt chart
See also:
setHorizonStart()

Definition at line 77 of file KDGanttView.h.

QDateTime KDGanttView::horizonEnd [read, write]

Returns the end of the horizon of the Gantt chart.

Returns:
the end of the horizon of the Gantt chart
See also:
setHorizonEnd()

Definition at line 78 of file KDGanttView.h.

KDGanttView::Scale KDGanttView::scale [read, write]

Returns the unit of the lower scale of the header.

Returns:
the unit of the lower scale of the header.
See also:
setScale()

Definition at line 79 of file KDGanttView.h.

KDGanttView::YearFormat KDGanttView::yearFormat [read, write]

Returns the format in which to display years.

Returns:
the year format
See also:
setYearFormat(), setHourFormat(), hourFormat()

Definition at line 80 of file KDGanttView.h.

KDGanttView::HourFormat KDGanttView::hourFormat [read, write]

Returns the format in which to display hours.

Returns:
the hour format
See also:
setHourFormat(), setYearFormat(), yearFormat()

Definition at line 81 of file KDGanttView.h.

bool KDGanttView::showMinorTicks [read, write]

Returns whether ticks are shown on the minor scale.

Returns:
true if ticks are shown on the minor scale
See also:
setShowMinorTicks(), setShowMajorTicks(), showMajorTicks()

Definition at line 82 of file KDGanttView.h.

bool KDGanttView::showMajorTicks [read, write]

Returns whether the grid is shown on the major scale.

Returns:
true if ticks are shown on the major scale
See also:
setShowMajorTicks(), setShowMinorTicks(), showMinorTicks()

Definition at line 83 of file KDGanttView.h.

bool KDGanttView::editable [read, write]

Returns whether the Gantt chart is user-editable

Returns:
true if the Gantt chart is user-editable
See also:
setEditable()

Definition at line 84 of file KDGanttView.h.

QColor KDGanttView::textColor [read, write]

Returns the color used for texts in the Gantt chart.

Returns:
the color used for texts in the Gantt chart.
See also:
setTextColor()

Definition at line 85 of file KDGanttView.h.

int KDGanttView::majorScaleCount [read, write]

Returns the number of ticks per unit in the major scale.

Returns:
the number of ticks in the major scale
See also:
setMajorScaleCount(), setMinorScaleCount(), minorScaleCount()

Definition at line 86 of file KDGanttView.h.

int KDGanttView::minorScaleCount [read, write]

Returns the number of ticks per unit in the minor scale.

Returns:
the number of ticks in the minor scale
See also:
setMinorScaleCount(), setMajorScaleCount(), majorScaleCount()

Definition at line 87 of file KDGanttView.h.

int KDGanttView::autoScaleMinorTickCount [read, write]

Returns the absolut number of minor ticks, if scaling is set to Auto

Returns:
the absolut number of minor ticks
See also:
setAutoScaleMinorTickCount(),setScale(),scale()

Definition at line 88 of file KDGanttView.h.

KDGanttView::Scale KDGanttView::maximumScale [read, write]

Returns the maximum allowed time scale of the lower scale of the header.

Returns:
the unit of the lower scale of the header.
See also:
setScale()

Definition at line 89 of file KDGanttView.h.

KDGanttView::Scale KDGanttView::minimumScale [read, write]

Returns the minimum allowed time scale of the lower scale of the header.

Returns:
the unit of the lower scale of the header.
See also:
setScale()

Definition at line 90 of file KDGanttView.h.

int KDGanttView::minimumColumnWidth [read, write]

Returns the minimum width a column needs to have.

Returns:
the column minimum width
See also:
setMinimumColumnWidth()

Definition at line 91 of file KDGanttView.h.

int KDGanttView::ganttMaximumWidth [read, write]

Returns the maximum width of the Gantt view part widget in pixels. The default maximum width is 32767 pixels.

Returns:
the maximum width of the Gantt view part widget in pixels.

Definition at line 92 of file KDGanttView.h.

QColor KDGanttView::weekendBackgroundColor [read, write]

Returns the background color for weekend days.

Returns:
the background color for weekend days
See also:
setWeekendBackgroundColor(), setWeekendDays(), weekendDays()

Definition at line 93 of file KDGanttView.h.

QColor KDGanttView::timeHeaderBackgroundColor [read, write]

Returns the background color of the time header.

Returns:
the background color of the time header
See also:
setTimeHeaderBackgroundColor()

Definition at line 96 of file KDGanttView.h.

QColor KDGanttView::legendHeaderBackgroundColor [read, write]

Returns the background color of the legend header.

Returns:
the background color of the legend header
See also:
setLegendHeaderBackgroundColor()

Definition at line 97 of file KDGanttView.h.

double KDGanttView::zoomFactor [read]

Returns the current zoom factor.

Returns:
the current zoom factor
See also:
zoomToFit(), zoomToSelection(), setZoomFactor()

Definition at line 98 of file KDGanttView.h.

bool KDGanttView::showHeaderPopupMenu [read, write]

Returns whether the configure popup menu should be shown on right click on the time header widget.

Returns:
true if the popup menu should be shown

Definition at line 99 of file KDGanttView.h.

bool KDGanttView::showTimeTablePopupMenu [read, write]

Returns whether the add item popup menu should be shown on right click on the time table widget.

Returns:
true if the popup menu should be shown

Definition at line 100 of file KDGanttView.h.

bool KDGanttView::headerVisible [read, write]

Returns whether the listview header is visible.

Returns:
whether the header is visible

Definition at line 101 of file KDGanttView.h.

bool KDGanttView::showLegendButton [read, write]

Returns whether the legend button is visible.

Returns:
whether the legend button is visible
See also:
setShowLegendButton()

Definition at line 102 of file KDGanttView.h.

bool KDGanttView::legendIsDockwindow [read, write]

Returns whether the legend is shown as a dock window

Returns:
true if the legend is shown as a dock window
See also:
setShowLegend(), setLegendIsDockwindow(), legendDockwindow()

Definition at line 103 of file KDGanttView.h.

bool KDGanttView::displayEmptyTasksAsLine [read, write]

Returns, whether tasks where the start time and the end time are the same are displayed as a line over the full height of the Gantt view.

Returns:
true, if empty tasks are displayed as line.

Definition at line 104 of file KDGanttView.h.

QBrush KDGanttView::noInformationBrush [read, write]

Returns the brush of the 'showNoInformation' lines

Returns:
the brush of the 'showNoInformation' lines
See also:
KDGanttViewItem::showNoInformation(), KDGanttViewItem::setShowNoInformation(), setNoInformationBrush()

Definition at line 105 of file KDGanttView.h.

bool KDGanttView::dragEnabled [read, write]

Deprecated:
Use isDragEnabled() instead

Definition at line 106 of file KDGanttView.h.

bool KDGanttView::dropEnabled [read, write]

Deprecated:
Use isDropEnabled() instead

Definition at line 107 of file KDGanttView.h.

bool KDGanttView::calendarMode [read, write]

Returns true, if the Gantt view is in calendar mode. See setCalendarMode() for the meaning of calendar mode.

Returns:
returns true, if the Gantt view is in calendermode
See also:
setCalendarMode()

Definition at line 108 of file KDGanttView.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys