Files
harbour-core/harbour/contrib/hbqt/qth/QAbstractItemModel.qth
2010-06-14 19:01:41 +00:00

147 lines
6.3 KiB
Plaintext

/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
* www - http://www.harbour-project.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
*
* As a special exception, the Harbour Project gives permission for
* additional uses of the text contained in its release of Harbour.
*
* The exception is that, if you link the Harbour libraries with other
* files to produce an executable, this does not by itself cause the
* resulting executable to be covered by the GNU General Public License.
* Your use of that executable is in no way restricted on account of
* linking the Harbour library code into it.
*
* This exception does not however invalidate any other reasons why
* the executable file might be covered by the GNU General Public License.
*
* This exception applies only to the code released by the Harbour
* Project under the name Harbour. If you copy code from other
* Harbour Project or Free Software Foundation releases into a copy of
* Harbour, as the General Public License permits, the exception does
* not apply to the code that you add in this way. To avoid misleading
* anyone as to the status of such modified files, you must delete
* this exception notice from them.
*
* If you write modifications of your own for Harbour, it is your choice
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice.
*
*/
/*----------------------------------------------------------------------*/
;
; Header File to Generate QT Wrapper Sources
;
<CLASS>
Inherits = QObject
Type = Core
New =
</CLASS>
<SUBCLASS>
</SUBCLASS>
<CODE>
#include <QtCore/QSize>
#include <QtCore/QStringList>
#include <QtCore/QAbstractItemModel>
/*
* QAbstractItemModel ( QObject * parent = 0 )
* virtual ~QAbstractItemModel ()
*/
HB_FUNC( QT_QABSTRACTITEMMODEL )
{
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
virtual QModelIndex buddy ( const QModelIndex & index ) const
virtual bool canFetchMore ( const QModelIndex & parent ) const
virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const = 0
virtual QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const = 0
virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
virtual void fetchMore ( const QModelIndex & parent )
virtual Qt::ItemFlags flags ( const QModelIndex & index ) const
virtual bool hasChildren ( const QModelIndex & parent = QModelIndex() ) const
bool hasIndex ( int row, int column, const QModelIndex & parent = QModelIndex() ) const
virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const
virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const = 0
bool insertColumn ( int column, const QModelIndex & parent = QModelIndex() )
virtual bool insertColumns ( int column, int count, const QModelIndex & parent = QModelIndex() )
bool insertRow ( int row, const QModelIndex & parent = QModelIndex() )
virtual bool insertRows ( int row, int count, const QModelIndex & parent = QModelIndex() )
virtual QMap<int, QVariant> itemData ( const QModelIndex & index ) const
// virtual QModelIndexList match ( const QModelIndex & start, int role, const QVariant & value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const
// virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const
virtual QStringList mimeTypes () const
virtual QModelIndex parent ( const QModelIndex & index ) const = 0
bool removeColumn ( int column, const QModelIndex & parent = QModelIndex() )
virtual bool removeColumns ( int column, int count, const QModelIndex & parent = QModelIndex() )
bool removeRow ( int row, const QModelIndex & parent = QModelIndex() )
virtual bool removeRows ( int row, int count, const QModelIndex & parent = QModelIndex() )
virtual int rowCount ( const QModelIndex & parent = QModelIndex() ) const = 0
virtual bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole )
virtual bool setHeaderData ( int section, Qt::Orientation orientation, const QVariant & value, int role = Qt::EditRole )
virtual bool setItemData ( const QModelIndex & index, const QMap<int, QVariant> & roles )
void setSupportedDragActions ( Qt::DropActions actions )
QModelIndex sibling ( int row, int column, const QModelIndex & index ) const
virtual void sort ( int column, Qt::SortOrder order = Qt::AscendingOrder )
virtual QSize span ( const QModelIndex & index ) const
Qt::DropActions supportedDragActions () const
virtual Qt::DropActions supportedDropActions () const
</PROTOS>
<SLOTS>
virtual void revert ()
virtual bool submit ()
</SLOTS>
<SIGNALS>
void columnsAboutToBeInserted ( const QModelIndex & parent, int start, int end )
void columnsAboutToBeRemoved ( const QModelIndex & parent, int start, int end )
void columnsInserted ( const QModelIndex & parent, int start, int end )
void columnsRemoved ( const QModelIndex & parent, int start, int end )
void dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight )
void headerDataChanged ( Qt::Orientation orientation, int first, int last )
void layoutAboutToBeChanged ()
void layoutChanged ()
void modelAboutToBeReset ()
void modelReset ()
void rowsAboutToBeInserted ( const QModelIndex & parent, int start, int end )
void rowsAboutToBeRemoved ( const QModelIndex & parent, int start, int end )
void rowsInserted ( const QModelIndex & parent, int start, int end )
void rowsRemoved ( const QModelIndex & parent, int start, int end )
</SIGNALS>
<VARIABLES>
</VARIABLES>