kdgantt

KDGanttView.h
1/*
2 $Id: KDGanttView.h 523435 2006-03-28 08:01:15Z mlaurent $
3 KDChart - a multi-platform charting engine
4*/
5
6/****************************************************************************
7 ** Copyright (C) 2001-2004 Klarälvdalens Datakonsult AB. All rights reserved.
8 **
9 ** This file is part of the KDGantt library.
10 **
11 ** This file may be distributed and/or modified under the terms of the
12 ** GNU General Public License version 2 as published by the Free Software
13 ** Foundation and appearing in the file LICENSE.GPL included in the
14 ** packaging of this file.
15 **
16 ** Licensees holding valid commercial KDGantt licenses may use this file in
17 ** accordance with the KDGantt Commercial License Agreement provided with
18 ** the Software.
19 **
20 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
21 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 **
23 ** See http://www.klaralvdalens-datakonsult.se/Public/products/ for
24 ** information about KDGantt Commercial License Agreements.
25 **
26 ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
27 ** licensing are not clear to you.
28 **
29 ** As a special exception, permission is given to link this program
30 ** with any edition of TQt, and distribute the resulting executable,
31 ** without including the source code for TQt in the source distribution.
32 **
33 **********************************************************************/
34
35#ifndef KDGANTTVIEW_H
36#define KDGANTTVIEW_H
37
38#include <tqptrlist.h>
39#include <tqwidget.h>
40#include <tqlistview.h>
41#include <tqsplitter.h>
42#include <tqlayout.h>
43#include <tqfont.h>
44#include <tqdom.h>
45#include <tqvbox.h>
46
47
48#include "KDGanttViewItem.h"
49#include "KDGanttViewTaskLinkGroup.h"
50#include "KDGanttMinimizeSplitter.h"
51#include "KDGanttViewItemDrag.h"
52
54class TQPrinter;
55class TQIODevice;
56class itemAttributeDialog;
57class KDListView;
58class KDGanttViewItem;
62class KDTimeTableWidget;
63class KDTimeHeaderWidget;
64class KDLegendWidget;
65class KDGanttCanvasView;
68
70{
71 TQ_OBJECT
72
73
74 TQ_PROPERTY( bool showLegend READ showLegend WRITE setShowLegend )
75 TQ_PROPERTY( bool showListView READ showListView WRITE setShowListView )
76 TQ_PROPERTY( bool showTaskLinks READ showTaskLinks WRITE setShowTaskLinks )
77 TQ_PROPERTY( bool editorEnabled READ editorEnabled WRITE setEditorEnabled )
78 TQ_PROPERTY( TQDateTime horizonStart READ horizonStart WRITE setHorizonStart )
79 TQ_PROPERTY( TQDateTime horizonEnd READ horizonEnd WRITE setHorizonEnd )
80 TQ_PROPERTY( Scale scale READ scale WRITE setScale )
81 TQ_PROPERTY( YearFormat yearFormat READ yearFormat WRITE setYearFormat )
82 TQ_PROPERTY( HourFormat hourFormat READ hourFormat WRITE setHourFormat )
83 TQ_PROPERTY( bool showMinorTicks READ showMinorTicks WRITE setShowMinorTicks )
84 TQ_PROPERTY( bool showMajorTicks READ showMajorTicks WRITE setShowMajorTicks )
85 TQ_PROPERTY( bool editable READ editable WRITE setEditable )
86 TQ_PROPERTY( TQColor textColor READ textColor WRITE setTextColor )
87 TQ_PROPERTY( int majorScaleCount READ majorScaleCount WRITE setMajorScaleCount )
88 TQ_PROPERTY( int minorScaleCount READ minorScaleCount WRITE setMinorScaleCount )
90 TQ_PROPERTY( Scale maximumScale READ maximumScale WRITE setMaximumScale )
91 TQ_PROPERTY( Scale minimumScale READ minimumScale WRITE setMinimumScale )
93 TQ_PROPERTY( int ganttMaximumWidth READ ganttMaximumWidth WRITE setGanttMaximumWidth )
95 TQ_PROPERTY( TQColor ganttViewBackgroundColor READ gvBackgroundColor WRITE setGvBackgroundColor )
96 TQ_PROPERTY( TQColor listViewBackgroundColor READ lvBackgroundColor WRITE setLvBackgroundColor )
99 TQ_PROPERTY( double zoomFactor READ zoomFactor )
102 TQ_PROPERTY( bool headerVisible READ headerVisible WRITE setHeaderVisible )
103 TQ_PROPERTY( bool showLegendButton READ showLegendButton WRITE setShowLegendButton )
104 TQ_PROPERTY( bool legendIsDoctwindow READ legendIsDoctwindow WRITE setLegendIsDoctwindow )
106 TQ_PROPERTY( TQBrush noInformationBrush READ noInformationBrush WRITE setNoInformationBrush )
107 TQ_PROPERTY( bool dragEnabled READ dragEnabled WRITE setDragEnabled )
108 TQ_PROPERTY( bool dropEnabled READ dropEnabled WRITE setDropEnabled )
109 TQ_PROPERTY( bool calendarMode READ calendarMode WRITE setCalendarMode )
110
111 TQ_ENUMS( Scale )
112 TQ_ENUMS( YearFormat )
113 TQ_ENUMS( HourFormat )
114
115public:
116 enum Scale { Minute, Hour, Day, Week, Month, Auto };
117 enum YearFormat { FourDigit, TwoDigit, TwoDigitApostrophe, NoDate };
118 enum HourFormat { Hour_24, Hour_12, Hour_24_FourDigit };
119 enum RepaintMode { No, Medium, Always };
120
121 KDGanttView( TQWidget* parent = 0, const char* name = 0 );
122 ~KDGanttView();
123
124 virtual void show();
125 virtual bool close ( bool alsoDelete );
126 void setRepaintMode( RepaintMode mode );
127 void setUpdateEnabled( bool enable);
128 bool getUpdateEnabled( )const;
129
130 void setGanttMaximumWidth( int w );
131 int ganttMaximumWidth() const;
132 void setShowLegend( bool show );
133 bool showLegend() const;
134 void setLegendIsDoctwindow( bool dock );
135 bool legendIsDoctwindow( ) const;
136 TQDockWindow* legendDoctwindow( ) const;
137 void setShowListView( bool show );
138 bool showListView() const;
139 void setEditorEnabled( bool enable );
140 bool editorEnabled() const;
141 void setListViewWidth( int );
142 int listViewWidth();
143 void setEditable( bool editable );
144 bool editable() const;
145 void setCalendarMode( bool mode );
146 bool calendarMode() const;
147 void setDisplaySubitemsAsGroup( bool show );
148 bool displaySubitemsAsGroup() const;
149 void setDisplayEmptyTasksAsLine( bool show );
150 bool displayEmptyTasksAsLine() const;
151
152 void setHorBackgroundLines( int count = 2,
153 TQBrush brush =
154 TQBrush( TQColor ( 200,200,200 ),
155 TQt::Dense6Pattern ));
156 int horBackgroundLines( TQBrush& brush );
157 bool saveProject( TQIODevice* );
158 bool loadProject( TQIODevice* );
159 void print( TQPrinter* printer = 0 ,
160 bool printListView = true, bool printTimeLine = true,
161 bool printLegend = false );
162 TQSize drawContents( TQPainter* p = 0,
163 bool drawListView = true, bool drawTimeLine = true,
164 bool drawLegend = false );
165 void setZoomFactor( double factor, bool absolute );
166 double zoomFactor() const;
167 void zoomToFit();
169 void center( KDGanttViewItem* );
170 void centerTimeline( const TQDateTime& center );
171 void centerTimelineAfterShow( const TQDateTime& center );
172 void setTimelineToStart();
173 void setTimelineToEnd();
174 void addTicksLeft( int num = 1 );
175 void addTicksRight( int num = 1 );
176 void setShowTaskLinks( bool show );
177 bool showTaskLinks() const;
178
179 void setFont(const TQFont& f);
180 void setShowHeaderPopupMenu( bool show = true,
181 bool showZoom = true,
182 bool showScale = true,
183 bool showTime = true,
184 bool showYear = true,
185 bool showGrid = true,
186 bool showPrint = false);
187 bool showHeaderPopupMenu() const;
188 void setShowTimeTablePopupMenu( bool );
189 bool showTimeTablePopupMenu() const;
194 bool overwriteExisting = true );
195 bool shapes( KDGanttViewItem::Type type,
198 KDGanttViewItem::Shape& end ) const;
200 const TQColor& start, const TQColor& middle,
201 const TQColor& end,
202 bool overwriteExisting = true );
203 bool colors( KDGanttViewItem::Type type,
204 TQColor& start, TQColor& middle, TQColor& end ) const;
206 const TQColor&,
207 bool overwriteExisting = true );
208 TQColor defaultColor( KDGanttViewItem::Type type ) const;
210 const TQColor& start, const TQColor& middle,
211 const TQColor& end,
212 bool overwriteExisting = true );
214 TQColor& start, TQColor& middle, TQColor& end ) const;
216 const TQColor&,
217 bool overwriteExisting = true );
218 TQColor defaultHighlightColor( KDGanttViewItem::Type type ) const;
219 void setTextColor( const TQColor& color );
220 TQColor textColor() const;
221
222 void setNoInformationBrush( const TQBrush& brush );
223 TQBrush noInformationBrush() const;
224
225 // Link-related stuff
226 TQPtrList<KDGanttViewTaskLink> taskLinks() const;
227 TQPtrList<KDGanttViewTaskLinkGroup> taskLinkGroups() const;
228
229 // Legend-related stuff
230 void addLegendItem( KDGanttViewItem::Shape shape, const TQColor& shapeColor, const TQString& text );
231 void clearLegend();
232 // Header-related stuff
233 void setHorizonStart( const TQDateTime& start );
234 TQDateTime horizonStart() const;
235 void setHorizonEnd( const TQDateTime& start );
236 TQDateTime horizonEnd() const;
237 void setScale( Scale );
238 Scale scale() const;
239 void setMaximumScale( Scale );
240 Scale maximumScale() const;
241 void setMinimumScale( Scale );
242 Scale minimumScale() const;
243 void setAutoScaleMinorTickCount( int count );
244 int autoScaleMinorTickCount() const;
245 void setMajorScaleCount( int count );
246 int majorScaleCount() const;
247 void setMinorScaleCount( int count );
248 int minorScaleCount() const;
249 void setMinimumColumnWidth( int width );
250 int minimumColumnWidth() const;
251 void setYearFormat( YearFormat format );
252 YearFormat yearFormat() const;
253 void setHourFormat( HourFormat format );
254 HourFormat hourFormat() const;
255 void setShowMajorTicks( bool );
256 bool showMajorTicks() const;
257 void setShowMinorTicks( bool );
258 bool showMinorTicks() const;
259 void setColumnBackgroundColor( const TQDateTime& column,
260 const TQColor& color,
261 Scale mini = KDGanttView::Minute ,
262 Scale maxi = KDGanttView::Month);
263 void setIntervalBackgroundColor( const TQDateTime& start,
264 const TQDateTime& end,
265 const TQColor& color,
266 Scale mini = KDGanttView::Minute ,
267 Scale maxi = KDGanttView::Month);
268 bool changeBackgroundInterval( const TQDateTime& oldstart,
269 const TQDateTime& oldend,
270 const TQDateTime& newstart,
271 const TQDateTime& newend );
272 bool deleteBackgroundInterval( const TQDateTime& start,
273 const TQDateTime& end );
275 TQColor columnBackgroundColor( const TQDateTime& column ) const;
276 void setWeekendBackgroundColor( const TQColor& color );
277 TQColor weekendBackgroundColor() const;
278 void setWeekdayBackgroundColor( const TQColor& color, int weekday );
279 TQColor weekdayBackgroundColor(int weekday) const;
280
281
282 void setPaletteBackgroundColor(const TQColor& col);
283 void setGvBackgroundColor ( const TQColor & );
284 void setLvBackgroundColor ( const TQColor & );
285 void setTimeHeaderBackgroundColor ( const TQColor & );
286 void setLegendHeaderBackgroundColor ( const TQColor & );
287 TQColor gvBackgroundColor () const ;
288 TQColor lvBackgroundColor () const ;
289 TQColor timeHeaderBackgroundColor () const ;
290 TQColor legendHeaderBackgroundColor () const ;
291 void addUserdefinedLegendHeaderWidget( TQWidget * w );
292
293 void setWeekendDays( int start, int end );
294 void weekendDays( int& start, int& end ) const;
295
296 static TQPixmap getPixmap( KDGanttViewItem::Shape shape, const TQColor& shapeColor,const TQColor& backgroundColor, int itemSize);
297
298 void setHeaderVisible( bool );
299 bool headerVisible() const;
300
301 void setShowLegendButton( bool show );
302 bool showLegendButton() const;
303
304 // Pass-through methods from TQListView
305 virtual int addColumn( const TQString& label, int width = -1 );
306 virtual int addColumn( const TQIconSet& iconset, const TQString& label,
307 int width = -1 );
308 virtual void removeColumn( int index );
310 void setSelected( KDGanttViewItem*, bool );
312 KDGanttViewItem* lastItem() const;
313 int childCount() const;
314 void clear();
315
316 void setDragEnabled( bool b );
317 void setDropEnabled( bool b );
318 void setDragDropEnabled( bool b );
319 bool dragEnabled() const;
320 bool dropEnabled() const;
321 bool isDragEnabled() const;
322 bool isDropEnabled() const;
323
324 virtual bool lvDropEvent ( TQDropEvent *e, KDGanttViewItem*, KDGanttViewItem*);
325 virtual void lvStartDrag (KDGanttViewItem*);
326 virtual bool lvDragMoveEvent (TQDragMoveEvent * e,KDGanttViewItem*, KDGanttViewItem*);
327 virtual void lvDragEnterEvent (TQDragEnterEvent * e );
328 virtual TQSize sizeHint() const;
329 KDGanttViewItem* getItemByName( const TQString& name ) const;
330 TQDateTime getDateTimeForCoordX(int coordX, bool global = true ) const;
331 KDGanttViewItem* getItemByListViewPos( const TQPoint& pos ) const;
332 KDGanttViewItem* getItemByGanttViewPos( const TQPoint& pos ) const;
333 KDGanttViewItem* getItemAt( const TQPoint& pos , bool global = true ) const;
334
335 // setting the vertical scrollbars of the listview and the timetable
336 // default values: always off for the listview, always on for the timetable
337 void setLvVScrollBarMode( TQScrollView::ScrollBarMode );
338 void setGvVScrollBarMode( TQScrollView::ScrollBarMode );
339
340 void setLinkItemsEnabled(bool on);
341 bool isLinkItemsEnabled() const;
342
343public slots:
344 void editItem( KDGanttViewItem* );
345 void zoomToSelection( const TQDateTime& start, const TQDateTime& end);
346
347signals:
348 void timeIntervallSelected( const TQDateTime& start, const TQDateTime& end);
349 void timeIntervalSelected( const TQDateTime& start, const TQDateTime& end);
351
352 // the following signals are emitted if an item is clicked in the
353 // listview (inclusive) or in the ganttview
358
359 // The following signal is emitted when two items shall be linked
360 void linkItems( KDGanttViewItem* from, KDGanttViewItem* to, int linkType );
361
362 // the following signals are emitted if an item is clicked in the
363 // listview (exlusive) or in the ganttview
364 // gv... means item in ganttview clicked
365
370 // the point is the global position!!
371 void gvMouseButtonClicked ( int button, KDGanttViewItem* item, const TQPoint & pos);
373 // the point is the global position!!
374 void gvContextMenuRequested ( KDGanttViewItem * item, const TQPoint & pos );
375
376 // lv... means item in listview clicked
378 void lvItemRenamed( KDGanttViewItem* , int col, const TQString & text );
379 void lvMouseButtonPressed( int button, KDGanttViewItem * item, const TQPoint & pos, int c );
383 void lvContextMenuRequested ( KDGanttViewItem * item, const TQPoint & pos, int col );
384 void lvMouseButtonClicked ( int button, KDGanttViewItem* item, const TQPoint & pos, int c );
387
389
394
395 void dropped ( TQDropEvent * e, KDGanttViewItem* droppedItem, KDGanttViewItem* itemBelowMouse);
396private slots:
397 void forceRepaint( int val = 0 );
398 void slotSelectionChanged( TQListViewItem* item );
399 void slotCurrentChanged ( TQListViewItem * item );
400 void slotItemRenamed ( TQListViewItem * item, int col, const TQString & text );
401 void slotMouseButtonPressed ( int button, TQListViewItem * item, const TQPoint & pos, int c );
402 void slotmouseButtonClicked ( int button, TQListViewItem * item, const TQPoint & pos, int c );
403 void slotcontextMenuRequested ( TQListViewItem * item, const TQPoint & pos, int col );
404 void slotdoubleClicked ( TQListViewItem * item );
405 void slotHeaderSizeChanged();
406 void addTickRight();
407 void addTickLeft();
408 void enableAdding( int );
409 void slot_lvDropped(TQDropEvent* e, KDGanttViewItem* droppedItem, KDGanttViewItem* itemBelowMouse );
410private:
411 struct legendItem {
413 TQColor color;
414 TQString text;
415 };
416 bool loadXML( const TQDomDocument& doc );
417 TQDomDocument saveXML( bool withPI = true ) const;
418
419 static TQString scaleToString( Scale scale );
420 static TQString yearFormatToString( YearFormat format );
421 static TQString hourFormatToString( HourFormat format );
422 static Scale stringToScale( const TQString& string );
423 static YearFormat stringToYearFormat( const TQString& string );
424 static HourFormat stringToHourFormat( const TQString& string );
425
426 // PENDING(lutz) Review these
427 friend class KDGanttCanvasView;
428 friend class KDGanttViewEventItem;
429 friend class KDGanttViewItem;
430 friend class KDGanttViewTaskItem;
431 friend class KDGanttViewSummaryItem;
432 friend class KDGanttViewTaskLink;
433 friend class KDGanttViewCalendarItem;
434 friend class KDTimeTableWidget;
435 friend class KDTimeHeaderWidget;
436 friend class KDListView;
437 friend class KDGanttViewTaskLinkGroup;
438 friend class KDLegendWidget;
439
440 KDListView * myListView;
441 KDGanttCanvasView *myCanvasView;
442 KDTimeHeaderWidget * myTimeHeader;
443 KDTimeTableWidget * myTimeTable;
444 KDLegendWidget * myLegend;
445 itemAttributeDialog* myItemAttributeDialog;
446 TQVBox * leftWidget, * rightWidget;
447 TQHBox * spacerLeft;
448 TQScrollView* myTimeHeaderScroll;
449 TQHBox* myTimeHeaderContainer ;
450 TQWidget* timeHeaderSpacerWidget;
451 TQWidget *spacerRight;
452
453 bool listViewIsVisible;
454 bool chartIsEditable;
455 bool editorIsEnabled;
456 bool _displaySubitemsAsGroup;
457 bool _displayEmptyTasksAsLine;
458 bool _showLegendButton;
459 bool _showHeader;
460 bool _enableAdding;
461 bool fCenterTimeLineAfterShow;
462 bool fDragEnabled;
463 bool fDropEnabled;
464 bool closingBlocked;
465 TQDateTime dtCenterTimeLineAfterShow;
466 KDGanttViewItem::Shape myDefaultShape [9];
467 TQColor myColor[9],myColorHL[9];
468 bool undefinedShape[3],undefinedColor[3],undefinedColorHL[3];
469 TQColor myTextColor;
470 TQColor myDefaultColor[3],myDefaultColorHL[3];
471 TQPtrList<KDGanttViewTaskLinkGroup> myTaskLinkGroupList;
472 TQPtrList<legendItem> *myLegendItems;
473 void addTaskLinkGroup(KDGanttViewTaskLinkGroup*);
474 void removeTaskLinkGroup(KDGanttViewTaskLinkGroup*);
475 int getIndex( KDGanttViewItem::Type ) const;
476 void notifyEditdialog( KDGanttViewItem * );
477 void initDefaults();
478 KDGanttViewItem* myCurrentItem;
479 KDGanttMinimizeSplitter *mySplitter;
480protected:
481 virtual TQDragObject * dragObject ();
482 virtual void startDrag ();
483};
484
485
486
487#endif
The KDGanttMinimizeSplitter class implements a splitter widget with minimize buttons.
bool showMinorTicks() const
bool showListView() const
void setTimelineToEnd()
void setZoomFactor(double factor, bool absolute)
void setYearFormat(YearFormat format)
void itemRightClicked(KDGanttViewItem *)
virtual void show()
bool isLinkItemsEnabled() const
void setDisplaySubitemsAsGroup(bool show)
void setMinimumColumnWidth(int width)
void gvContextMenuRequested(KDGanttViewItem *item, const TQPoint &pos)
TQBrush noInformationBrush() const
TQSize drawContents(TQPainter *p=0, bool drawListView=true, bool drawTimeLine=true, bool drawLegend=false)
void setScale(Scale)
void setWeekendDays(int start, int end)
void lvItemRenamed(KDGanttViewItem *, int col, const TQString &text)
bool editorEnabled() const
void lvMouseButtonPressed(int button, KDGanttViewItem *item, const TQPoint &pos, int c)
void addUserdefinedLegendHeaderWidget(TQWidget *w)
void clearBackgroundColor()
void gvItemMidClicked(KDGanttViewItem *)
TQColor timeHeaderBackgroundColor() const
virtual void startDrag()
void print(TQPrinter *printer=0, bool printListView=true, bool printTimeLine=true, bool printLegend=false)
static TQPixmap getPixmap(KDGanttViewItem::Shape shape, const TQColor &shapeColor, const TQColor &backgroundColor, int itemSize)
void lvCurrentChanged(KDGanttViewItem *)
KDGanttViewItem * getItemAt(const TQPoint &pos, bool global=true) const
void setShowMajorTicks(bool)
bool dragEnabled() const
void itemMidClicked(KDGanttViewItem *)
virtual int addColumn(const TQString &label, int width=-1)
virtual void lvStartDrag(KDGanttViewItem *)
void gvCurrentChanged(KDGanttViewItem *)
void setShowTaskLinks(bool show)
int ganttMaximumWidth() const
void setDefaultColor(KDGanttViewItem::Type type, const TQColor &, bool overwriteExisting=true)
KDGanttViewItem * firstChild() const
KDGanttViewItem * getItemByGanttViewPos(const TQPoint &pos) const
void setEditable(bool editable)
bool colors(KDGanttViewItem::Type type, TQColor &start, TQColor &middle, TQColor &end) const
void setSelected(KDGanttViewItem *, bool)
TQColor columnBackgroundColor(const TQDateTime &column) const
void setLegendHeaderBackgroundColor(const TQColor &)
void taskLinkRightClicked(KDGanttViewTaskLink *)
bool isDropEnabled() const
TQPtrList< KDGanttViewTaskLinkGroup > taskLinkGroups() const
void center(KDGanttViewItem *)
void lvContextMenuRequested(KDGanttViewItem *item, const TQPoint &pos, int col)
void lvItemDoubleClicked(KDGanttViewItem *)
void setPaletteBackgroundColor(const TQColor &col)
double zoomFactor() const
virtual void removeColumn(int index)
void setShowListView(bool show)
void setGanttMaximumWidth(int w)
void setDragDropEnabled(bool b)
void setShapes(KDGanttViewItem::Type type, KDGanttViewItem::Shape start, KDGanttViewItem::Shape middle, KDGanttViewItem::Shape end, bool overwriteExisting=true)
void setCalendarMode(bool mode)
void setDropEnabled(bool b)
void setWeekendBackgroundColor(const TQColor &color)
void setHighlightColors(KDGanttViewItem::Type type, const TQColor &start, const TQColor &middle, const TQColor &end, bool overwriteExisting=true)
void gvItemDoubleClicked(KDGanttViewItem *)
bool saveProject(TQIODevice *)
void setLinkItemsEnabled(bool on)
void addLegendItem(KDGanttViewItem::Shape shape, const TQColor &shapeColor, const TQString &text)
void setListViewWidth(int)
Scale minimumScale() const
bool getUpdateEnabled() const
void setShowHeaderPopupMenu(bool show=true, bool showZoom=true, bool showScale=true, bool showTime=true, bool showYear=true, bool showGrid=true, bool showPrint=false)
void setDisplayEmptyTasksAsLine(bool show)
void taskLinkMidClicked(KDGanttViewTaskLink *)
void gvItemRightClicked(KDGanttViewItem *)
void centerTimeline(const TQDateTime &center)
bool calendarMode() const
bool highlightColors(KDGanttViewItem::Type type, TQColor &start, TQColor &middle, TQColor &end) const
void setGvVScrollBarMode(TQScrollView::ScrollBarMode)
void taskLinkLeftClicked(KDGanttViewTaskLink *)
void setHorBackgroundLines(int count=2, TQBrush brush=TQBrush(TQColor(200, 200, 200), TQt::Dense6Pattern))
virtual bool lvDragMoveEvent(TQDragMoveEvent *e, KDGanttViewItem *, KDGanttViewItem *)
void setMinorScaleCount(int count)
void gvItemLeftClicked(KDGanttViewItem *)
void addTicksLeft(int num=1)
void setDragEnabled(bool b)
bool isDragEnabled() const
void setShowLegend(bool show)
void itemConfigured(KDGanttViewItem *)
TQColor defaultHighlightColor(KDGanttViewItem::Type type) const
int minimumColumnWidth() const
void timeIntervallSelected(const TQDateTime &start, const TQDateTime &end)
void lvSelectionChanged(KDGanttViewItem *)
void setShowLegendButton(bool show)
bool showLegend() const
TQColor lvBackgroundColor() const
TQColor legendHeaderBackgroundColor() const
virtual TQSize sizeHint() const
TQColor defaultColor(KDGanttViewItem::Type type) const
Scale scale() const
void setIntervalBackgroundColor(const TQDateTime &start, const TQDateTime &end, const TQColor &color, Scale mini=KDGanttView::Minute, Scale maxi=KDGanttView::Month)
TQDateTime getDateTimeForCoordX(int coordX, bool global=true) const
bool editable() const
void setEditorEnabled(bool enable)
bool showTaskLinks() const
bool showMajorTicks() const
int majorScaleCount() const
void itemLeftClicked(KDGanttViewItem *)
TQDateTime horizonStart() const
void setHorizonEnd(const TQDateTime &start)
virtual TQDragObject * dragObject()
void setDefaultHighlightColor(KDGanttViewItem::Type type, const TQColor &, bool overwriteExisting=true)
KDGanttViewItem * getItemByListViewPos(const TQPoint &pos) const
Scale maximumScale() const
void itemDoubleClicked(KDGanttViewItem *)
void timeIntervalSelected(const TQDateTime &start, const TQDateTime &end)
bool loadProject(TQIODevice *)
TQPtrList< KDGanttViewTaskLink > taskLinks() const
void setMaximumScale(Scale)
TQColor gvBackgroundColor() const
virtual void lvDragEnterEvent(TQDragEnterEvent *e)
void setMajorScaleCount(int count)
void lvItemMidClicked(KDGanttViewItem *)
bool showTimeTablePopupMenu() const
void lvItemLeftClicked(KDGanttViewItem *)
void setTextColor(const TQColor &color)
void setShowTimeTablePopupMenu(bool)
void setHorizonStart(const TQDateTime &start)
bool legendIsDoctwindow() const
void setFont(const TQFont &f)
void setLvVScrollBarMode(TQScrollView::ScrollBarMode)
bool shapes(KDGanttViewItem::Type type, KDGanttViewItem::Shape &start, KDGanttViewItem::Shape &middle, KDGanttViewItem::Shape &end) const
void setAutoScaleMinorTickCount(int count)
void gvMouseButtonClicked(int button, KDGanttViewItem *item, const TQPoint &pos)
void setLegendIsDoctwindow(bool dock)
TQColor weekendBackgroundColor() const
void taskLinkDoubleClicked(KDGanttViewTaskLink *)
void weekendDays(int &start, int &end) const
bool showLegendButton() const
TQColor textColor() const
HourFormat hourFormat() const
bool displaySubitemsAsGroup() const
void setWeekdayBackgroundColor(const TQColor &color, int weekday)
void ensureVisible(KDGanttViewItem *)
void zoomToSelection(const TQDateTime &start, const TQDateTime &end)
void setUpdateEnabled(bool enable)
bool dropEnabled() const
bool showHeaderPopupMenu() const
void setHourFormat(HourFormat format)
int autoScaleMinorTickCount() const
KDGanttViewItem * selectedItem() const
bool headerVisible() const
int childCount() const
int minorScaleCount() const
void dropped(TQDropEvent *e, KDGanttViewItem *droppedItem, KDGanttViewItem *itemBelowMouse)
void setHeaderVisible(bool)
virtual bool close(bool alsoDelete)
void setColors(KDGanttViewItem::Type type, const TQColor &start, const TQColor &middle, const TQColor &end, bool overwriteExisting=true)
YearFormat yearFormat() const
virtual bool lvDropEvent(TQDropEvent *e, KDGanttViewItem *, KDGanttViewItem *)
TQDateTime horizonEnd() const
void setNoInformationBrush(const TQBrush &brush)
void setLvBackgroundColor(const TQColor &)
KDGanttViewItem * getItemByName(const TQString &name) const
void setShowMinorTicks(bool)
bool displayEmptyTasksAsLine() const
int horBackgroundLines(TQBrush &brush)
void setGvBackgroundColor(const TQColor &)
void rescaling(Scale)
TQDockWindow * legendDoctwindow() const
void setMinimumScale(Scale)
void setColumnBackgroundColor(const TQDateTime &column, const TQColor &color, Scale mini=KDGanttView::Minute, Scale maxi=KDGanttView::Month)
void setTimelineToStart()
void lvItemRightClicked(KDGanttViewItem *)
void lvMouseButtonClicked(int button, KDGanttViewItem *item, const TQPoint &pos, int c)
KDGanttViewItem * lastItem() const
void addTicksRight(int num=1)
void setRepaintMode(RepaintMode mode)
void linkItems(KDGanttViewItem *from, KDGanttViewItem *to, int linkType)
bool changeBackgroundInterval(const TQDateTime &oldstart, const TQDateTime &oldend, const TQDateTime &newstart, const TQDateTime &newend)
void setTimeHeaderBackgroundColor(const TQColor &)
void centerTimelineAfterShow(const TQDateTime &center)
void editItem(KDGanttViewItem *)
TQColor weekdayBackgroundColor(int weekday) const
bool deleteBackgroundInterval(const TQDateTime &start, const TQDateTime &end)