kgantt

xQGanttBarView.h
1#ifndef _XTQGANTTBARVIEW_H_
2#define _XTQGANTTBARVIEW_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 : xQGanttBarView.h
24 date : 26 oct 2000
25
26
27 changelog :
28
29*/
30
31
32#define sgn(n) (n < 0 ? -1 : 1)
33#define TOPMARGIN 45
34
35
36#include <tqscrollview.h>
37
38#include "xQGanttBarViewPort.h"
39
40
41class KGanttBarConfig;
42
43
45
50class xQGanttBarView : public TQScrollView
52{
53
54 TQ_OBJECT
55
56
57
58public:
59
60
62
65 xQGanttBarView(KGanttItem* toplevelitem, TQWidget* parent = 0,
66 const char * name=0, WFlags f=0 );
67
68
70
74
75
76
78
81 xQGanttBarViewPort* viewport() {
82 return _viewport;
83 }
84
85
86
88
91 KGanttBarConfig* getConfig();
92
93
94
95public slots:
96
97 void horizontalScrollBarChanged(int);
98 void showConfig();
99 void hideConfig();
100
101
102protected slots:
103
104 void drawHeader();
105
106
107protected:
108
109 xQGanttBarViewPort* _viewport;
110
111 TQBrush _headerBackBrush;
112
113 void paintEvent(TQPaintEvent * e);
114
115 KGanttItem* _toplevelitem;
116 KGanttBarConfig* _config;
117
118};
119
120
121
122#endif
KGanttItem.
Definition: KGanttItem.h:56
GanttBarViewPort Widget.
Gantt view.
KGanttBarConfig * getConfig()
Get config widget.
xQGanttBarView(KGanttItem *toplevelitem, TQWidget *parent=0, const char *name=0, WFlags f=0)
Constructor.
~xQGanttBarView()
Destructor.