• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kdgantt

kdganttview.h

Go to the documentation of this file.
00001 /****************************************************************************
00002  ** Copyright (C) 2001-2006 Klarälvdalens Datakonsult AB.  All rights reserved.
00003  **
00004  ** This file is part of the KD Gantt library.
00005  **
00006  ** This file may be used under the terms of the GNU General Public
00007  ** License versions 2.0 or 3.0 as published by the Free Software
00008  ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
00009  ** included in the packaging of this file.  Alternatively you may (at
00010  ** your option) use any later version of the GNU General Public
00011  ** License if such license has been publicly approved by
00012  ** Klarälvdalens Datakonsult AB (or its successors, if any).
00013  ** 
00014  ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
00015  ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
00016  ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
00017  ** not expressly granted herein.
00018  ** 
00019  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00020  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00021  **
00022  **********************************************************************/
00023 #ifndef KDGANTTVIEW_H
00024 #define KDGANTTVIEW_H
00025 
00026 #include <QWidget>
00027 #include "kdganttglobal.h"
00028 
00029 class QAbstractItemModel;
00030 class QAbstractProxyModel;
00031 class QAbstractItemView;
00032 class QModelIndex;
00033 class QItemSelectionModel;
00034 
00035 namespace KDGantt {
00036     class ItemDelegate;
00037     class Constraint;
00038     class ConstraintModel;
00039     class AbstractGrid;
00040     class GraphicsView;
00041     class AbstractRowController;
00042     class GraphicsItem;
00043     
00044     class KDGANTT_EXPORT View : public QWidget {
00045         Q_OBJECT
00046         KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET(View)
00047         Q_PRIVATE_SLOT( d, void slotCollapsed(const QModelIndex&) )
00048         Q_PRIVATE_SLOT( d, void slotExpanded(const QModelIndex&) )
00049         Q_PRIVATE_SLOT( d, void slotVerticalScrollValueChanged( int ) )
00050         Q_PRIVATE_SLOT( d, void slotLeftWidgetVerticalRangeChanged( int, int ) )
00051         Q_PRIVATE_SLOT( d, void slotGfxViewVerticalRangeChanged( int, int ) )
00052     public:
00053         explicit View(QWidget* parent=0);
00054         virtual ~View();
00055 
00056         QAbstractItemModel* model() const;
00057         QItemSelectionModel* selectionModel() const;
00058         ItemDelegate* itemDelegate() const;
00059         ConstraintModel* constraintModel() const;
00060         AbstractGrid* grid() const;
00061         QModelIndex rootIndex() const;
00062 
00063         QModelIndex indexAt( const QPoint& pos ) const;
00064 
00065         void setLeftView( QAbstractItemView* );
00066         const QAbstractItemView* leftView() const;
00067         QAbstractItemView* leftView();
00068 
00069         void setRowController( AbstractRowController* );
00070         AbstractRowController* rowController();
00071         const AbstractRowController* rowController() const;
00072 
00073         const GraphicsView* graphicsView() const;
00074         GraphicsView* graphicsView();
00075         const QAbstractProxyModel* ganttProxyModel() const;
00076         QAbstractProxyModel* ganttProxyModel();
00077 
00078         void print( QPainter* painter, const QRectF& target = QRectF(), const QRectF& source = QRectF(), bool drawRowLabels=true, bool drawHeader=true);
00079 
00080     public Q_SLOTS:
00081         void setModel(QAbstractItemModel* model);
00082         void setRootIndex( const QModelIndex& idx );
00083         void setSelectionModel( QItemSelectionModel* smodel );
00084         void setItemDelegate( ItemDelegate* );
00085         void setConstraintModel( ConstraintModel* );
00086         void setGrid( AbstractGrid* );
00087 
00088     protected:
00089         /*reimp*/ void resizeEvent(QResizeEvent*);
00090     };
00091 }
00092 
00093 #endif /* KDGANTTVIEW_H */

kdgantt

Skip menu "kdgantt"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal