SVN_SILENT made messages (.desktop file)
[kdepim.git] / kdgantt2 / kdganttproxymodel.h
blob0f5f6f0e0696b91957127171b9717ded3b72fc2c
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 KDGANTTPROXYMODEL_H
26 #define KDGANTTPROXYMODEL_H
28 #include "kdganttforwardingproxymodel.h"
30 namespace KDGantt {
31 class KDGANTT_EXPORT ProxyModel : public ForwardingProxyModel {
32 Q_OBJECT
33 Q_DISABLE_COPY(ProxyModel)
34 KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC( ProxyModel )
35 public:
36 explicit ProxyModel( QObject* parent=0 );
37 virtual ~ProxyModel();
39 void setColumn( int ganttrole, int col );
40 void setRole( int ganttrole, int role );
42 int column( int ganttrole ) const;
43 int role( int ganttrole ) const;
45 #if 0
46 void setCalendarMode( bool enable );
47 bool calendarMode() const;
48 #endif
50 /*reimp*/ QModelIndex mapFromSource( const QModelIndex& idx) const;
51 /*reimp*/ QModelIndex mapToSource( const QModelIndex& proxyIdx ) const;
53 /*reimp*/ int rowCount( const QModelIndex& idx ) const;
54 /*reimp*/ int columnCount( const QModelIndex& idx ) const;
56 /*reimp*/ QVariant data( const QModelIndex& idx, int role = Qt::DisplayRole ) const;
57 /*reimp*/ bool setData( const QModelIndex& idx, const QVariant& value, int role=Qt::EditRole );
61 #endif /* KDGANTTPROXYMODEL_H */