00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GLUON_CREATOR_COMPONENTMODEL_H
00021 #define GLUON_CREATOR_COMPONENTMODEL_H
00022
00023 #include "gluoncreator_macros.h"
00024 #include <QtCore/QAbstractListModel>
00025
00026 namespace GluonCreator
00027 {
00028 class GLUONCREATOR_EXPORT ComponentModel : public QAbstractItemModel
00029 {
00030 Q_OBJECT
00031 public:
00032 ComponentModel( QObject* parent = 0 );
00033 ~ComponentModel();
00034
00035 virtual QVariant data( const QModelIndex& index, int role = Qt::DisplayRole ) const;
00036 virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
00037
00038 virtual QModelIndex index( int row, int column, const QModelIndex& parent = QModelIndex() ) const;
00039 virtual QModelIndex parent( const QModelIndex& child ) const;
00040
00041 virtual Qt::ItemFlags flags( const QModelIndex& index ) const;
00042 virtual QStringList mimeTypes() const;
00043 virtual QMimeData* mimeData( const QModelIndexList& indexes ) const;
00044
00045 virtual int rowCount( const QModelIndex& parent = QModelIndex() ) const;
00046 virtual int columnCount( const QModelIndex& parent = QModelIndex() ) const;
00047
00048 private:
00049 class ComponentModelPrivate;
00050 ComponentModelPrivate* const d;
00051 };
00052
00053 }
00054
00055 #endif // GLUON_CREATOR_COMPONENTMODEL_H