kgantt Library API Documentation

xQGanttListView.h

00001 #ifndef _XQGANTTLISTVIEW_H_
00002 #define _XQGANTTLISTVIEW_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., 59 Temple Place - Suite 330,
00019     Boston, MA 02111-1307, 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 <qscrollview.h>
00038 
00039 
00040 
00042 
00046 
00047 class xQGanttListView : public QScrollView
00049 {
00050 
00051   Q_OBJECT
00052 
00053 
00054 public:
00055 
00056 
00058 
00061   xQGanttListView(KGanttItem* toplevelitem, QWidget* parent = 0,  
00062           const char * name=0, WFlags f=0 );
00063 
00064 
00066 
00069   ~xQGanttListView();
00070 
00071 
00072 
00074 
00077   void setBarView(xQGanttBarView* v) {
00078     ((xQGanttListViewPort*) _viewport)->setBarViewPort(v->viewport());
00079   }
00080 
00081 
00082 
00083 public slots:
00084 
00085   void contentsMoved(int,int);
00086 
00087 
00088 protected:
00089 
00090   //  ptr to toplevelitem
00091   KGanttItem* _toplevelitem;
00092 
00093   QBrush _headerBackBrush;
00094  
00095   xQGanttBarView* _barview;
00096   xQGanttListViewPort* _viewport;
00097 
00098   void drawHeader();
00099   void paintEvent(QPaintEvent * e);
00100 
00101 };
00102 
00103 
00104 
00105 
00106 
00107 #endif
KDE Logo
This file is part of the documentation for kgantt Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:42 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003