kgantt

xQGanttListView.h
1#ifndef _XTQGANTTLISTVIEW_H_
2#define _XTQGANTTLISTVIEW_H_
3
4/*
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20
21 author : jh, jochen@ifb.bv.tu-berlin.de
22
23 file : xQGanttListView.h
24 date : 23 nov 2000
25
26
27 changelog :
28
29*/
30
31
32
33
34#include "xQGanttBarView.h"
35#include "xQGanttListViewPort.h"
36
37#include <tqscrollview.h>
38
39
40
42
47class xQGanttListView : public TQScrollView
49{
50
51 TQ_OBJECT
52
53
54
55public:
56
57
59
62 xQGanttListView(KGanttItem* toplevelitem, TQWidget* parent = 0,
63 const char * name=0, WFlags f=0 );
64
65
67
71
72
73
75
79 ((xQGanttListViewPort*) _viewport)->setBarViewPort(v->viewport());
80 }
81
82
83
84public slots:
85
86 void contentsMoved(int,int);
87
88
89protected:
90
91 // ptr to toplevelitem
92 KGanttItem* _toplevelitem;
93
94 TQBrush _headerBackBrush;
95
96 xQGanttBarView* _barview;
97 xQGanttListViewPort* _viewport;
98
99 void drawHeader();
100 void paintEvent(TQPaintEvent * e);
101
102};
103
104
105
106
107
108#endif
KGanttItem.
Definition: KGanttItem.h:56
Gantt view.
GanttListViewPort Widget.
GanttListView Widget.
void setBarView(xQGanttBarView *v)
Connect barview to this listview.
xQGanttListView(KGanttItem *toplevelitem, TQWidget *parent=0, const char *name=0, WFlags f=0)
Constructor.
~xQGanttListView()
Destructor.