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

kdgantt

kdganttforwardingproxymodel.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 KDGANTTFORWARDINGPROXYMODEL_H
00024 #define KDGANTTFORWARDINGPROXYMODEL_H
00025 
00026 #include <QAbstractProxyModel>
00027 
00028 #include "kdganttglobal.h"
00029 
00030 namespace KDGantt {
00031     class KDGANTT_EXPORT ForwardingProxyModel : public QAbstractProxyModel {
00032         Q_OBJECT
00033         Q_DISABLE_COPY(ForwardingProxyModel)
00034     public:
00035         explicit ForwardingProxyModel( QObject* parent=0 );
00036         virtual ~ForwardingProxyModel();
00037 
00038         /*reimp*/ QModelIndex mapFromSource ( const QModelIndex & sourceIndex ) const;
00039         /*reimp*/ QModelIndex mapToSource ( const QModelIndex & proxyIndex ) const;
00040 
00041         /*reimp*/ void setSourceModel( QAbstractItemModel* model );
00042 
00043         /*reimp*/ QModelIndex index( int row, int column, const QModelIndex& parent = QModelIndex() ) const;
00044         /*reimp*/ QModelIndex parent( const QModelIndex& idx ) const;
00045 
00046         /*reimp*/ int rowCount( const QModelIndex& idx = QModelIndex() ) const;
00047         /*reimp*/ int columnCount( const QModelIndex& idx = QModelIndex() ) const;
00048 
00049         /*reimp*/ bool setData( const QModelIndex& index, const QVariant& value, int role = Qt::EditRole );
00050 
00051     protected Q_SLOTS:
00052         virtual void sourceModelAboutToBeReset();
00053         virtual void sourceModelReset();
00054         virtual void sourceLayoutAboutToBeChanged();
00055         virtual void sourceLayoutChanged();
00056         virtual void sourceDataChanged( const QModelIndex& from, const QModelIndex& to );
00057         virtual void sourceColumnsAboutToBeInserted( const QModelIndex& idx, int start, int end );
00058         virtual void sourceColumnsInserted( const QModelIndex& idx, int start, int end );
00059         virtual void sourceColumnsAboutToBeRemoved( const QModelIndex& idx, int start, int end );
00060         virtual void sourceColumnsRemoved( const QModelIndex& idx, int start, int end );
00061         virtual void sourceRowsAboutToBeInserted( const QModelIndex& idx, int start, int end );
00062         virtual void sourceRowsInserted( const QModelIndex& idx, int start, int end );
00063         virtual void sourceRowsAboutToBeRemoved( const QModelIndex&, int start, int end );
00064         virtual void sourceRowsRemoved( const QModelIndex&, int start, int end );
00065     };
00066 }
00067 
00068 #endif /* KDGANTTFORWARDINGPROXYMODEL_H */
00069 

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
  •   doc
  • 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