22 #ifndef GLSIMPLEENTITYITEMMODEL_H 
   23 #define GLSIMPLEENTITYITEMMODEL_H 
   25 #include <QAbstractItemModel> 
   27 #include <tulip/tulipconf.h> 
   33 class TLP_QT_SCOPE GlSimpleEntityItemModel : 
public QAbstractItemModel {
 
   35   Q_ENUMS(SimpleEntityRole)
 
   38   enum SimpleEntityRole {
 
   39     SimpleEntityRole = Qt::UserRole+1
 
   42   GlSimpleEntityItemModel(GlSimpleEntity *entity,QObject *parent=NULL);
 
   43   virtual ~GlSimpleEntityItemModel();
 
   45   int rowCount(
const QModelIndex &parent = QModelIndex()) 
const;
 
   46   int columnCount(
const QModelIndex &parent = QModelIndex()) 
const;
 
   47   QModelIndex parent(
const QModelIndex &child) 
const;
 
   49   QVariant headerData(
int section, Qt::Orientation orientation, 
int role) 
const;
 
   50   QModelIndex index(
int row, 
int column,
const QModelIndex &parent = QModelIndex()) 
const;
 
   51   QVariant data(
const QModelIndex &index, 
int role = Qt::DisplayRole) 
const;
 
   53   QString headerText()
 const {
 
   54     return QString(
"toto");
 
   57   bool setData(
const QModelIndex &index, 
const QVariant &value, 
int role);
 
   59   Qt::ItemFlags flags(
const QModelIndex &index)
 const {
 
   60     return QAbstractItemModel::flags(index) | Qt::ItemIsEditable;
 
   65   GlSimpleEntity *_entity;
 
   70 #endif // GLSIMPLEENTITYITEMMODEL_H