xQGanttListView.h
00001 #ifndef _XTQGANTTLISTVIEW_H_ 00002 #define _XTQGANTTLISTVIEW_H_ 00003 00004 /* 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 00021 author : jh, jochen@ifb.bv.tu-berlin.de 00022 00023 file : xQGanttListView.h 00024 date : 23 nov 2000 00025 00026 00027 changelog : 00028 00029 */ 00030 00031 00032 00033 00034 #include "xQGanttBarView.h" 00035 #include "xQGanttListViewPort.h" 00036 00037 #include <tqscrollview.h> 00038 00039 00040 00042 00046 00047 class xQGanttListView : public TQScrollView 00049 { 00050 00051 Q_OBJECT 00052 00053 00054 00055 public: 00056 00057 00059 00062 xQGanttListView(KGanttItem* toplevelitem, TQWidget* parent = 0, 00063 const char * name=0, WFlags f=0 ); 00064 00065 00067 00070 ~xQGanttListView(); 00071 00072 00073 00075 00078 void setBarView(xQGanttBarView* v) { 00079 ((xQGanttListViewPort*) _viewport)->setBarViewPort(v->viewport()); 00080 } 00081 00082 00083 00084 public slots: 00085 00086 void contentsMoved(int,int); 00087 00088 00089 protected: 00090 00091 // ptr to toplevelitem 00092 KGanttItem* _toplevelitem; 00093 00094 TQBrush _headerBackBrush; 00095 00096 xQGanttBarView* _barview; 00097 xQGanttListViewPort* _viewport; 00098 00099 void drawHeader(); 00100 void paintEvent(TQPaintEvent * e); 00101 00102 }; 00103 00104 00105 00106 00107 00108 #endif