Documentation: Completed Backup section, update menu.
[kdepim.git] / kdgantt2 / kdgantttreeviewrowcontroller.h
blob6cf367a61907d6bb7a071549783099dcbe59261b
1 /****************************************************************************
2 ** Copyright (C) 2001-2006 Klarälvdalens Datakonsult AB. All rights reserved.
3 **
4 ** This file is part of the KD Gantt library.
5 **
6 ** This file may be distributed and/or modified under the terms of the
7 ** GNU General Public License version 2 as published by the Free Software
8 ** Foundation and appearing in the file LICENSE.GPL included in the
9 ** packaging of this file.
11 ** Licensees holding valid commercial KD Gantt licenses may use this file in
12 ** accordance with the KD Gantt Commercial License Agreement provided with
13 ** the Software.
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 ** See http://www.kdab.net/kdgantt for
19 ** information about KD Gantt Commercial License Agreements.
21 ** Contact info@kdab.net if any conditions of this
22 ** licensing are not clear to you.
24 **********************************************************************/
25 #ifndef KDGANTTTREEVIEWROWCONTROLLER_H
26 #define KDGANTTTREEVIEWROWCONTROLLER_H
28 #include "kdganttabstractrowcontroller.h"
30 class QAbstractProxyModel;
31 class QTreeView;
33 namespace KDGantt {
34 class KDGANTT_EXPORT TreeViewRowController : public AbstractRowController {
35 KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(TreeViewRowController)
36 public:
37 TreeViewRowController( QTreeView* tv, QAbstractProxyModel* proxy );
38 virtual ~TreeViewRowController();
40 /*reimp*/ int headerHeight() const;
41 /*reimp*/ int maximumItemHeight() const;
42 /*reimp*/ int totalHeight() const;
43 /*reimp*/ bool isRowVisible( const QModelIndex& idx ) const;
44 /*reimp*/ bool isRowExpanded( const QModelIndex& idx ) const;
45 /*reimp*/ Span rowGeometry( const QModelIndex& idx ) const;
46 /*reimp*/ QModelIndex indexAt( int height ) const;
47 /*reimp*/ QModelIndex indexAbove( const QModelIndex& idx ) const;
48 /*reimp*/ QModelIndex indexBelow( const QModelIndex& idx ) const;
52 #endif /* KDGANTTTREEVIEWROWCONTROLLER_H */