![]() |
Tulip
4.6.0
Better Visualization Through Research
|
00001 /* 00002 * 00003 * This file is part of Tulip (www.tulip-software.org) 00004 * 00005 * Authors: David Auber and the Tulip development Team 00006 * from LaBRI, University of Bordeaux 00007 * 00008 * Tulip is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation, either version 3 00011 * of the License, or (at your option) any later version. 00012 * 00013 * Tulip is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * See the GNU General Public License for more details. 00017 * 00018 */ 00019 ///@cond DOXYGEN_HIDDEN 00020 00021 #ifndef TULIPMODEL_H 00022 #define TULIPMODEL_H 00023 00024 #include <QAbstractItemModel> 00025 00026 #include <tulip/tulipconf.h> 00027 00028 namespace tlp { 00029 00030 class TLP_QT_SCOPE TulipModel: public QAbstractItemModel { 00031 Q_OBJECT 00032 Q_ENUMS(TulipRole) 00033 00034 public: 00035 enum TulipRole { 00036 GraphRole = Qt::UserRole+1, 00037 PropertyRole = Qt::UserRole+2, 00038 IsNodeRole = Qt::UserRole+3, 00039 StringRole = Qt::UserRole+4, 00040 MandatoryRole = Qt::UserRole+5, 00041 ElementIdRole = Qt::UserRole+6 00042 }; 00043 00044 explicit TulipModel(QObject *parent=NULL); 00045 virtual ~TulipModel(); 00046 00047 QVariant headerData(int section, Qt::Orientation orientation, int role) const; 00048 00049 signals: 00050 void checkStateChanged(QModelIndex,Qt::CheckState); 00051 }; 00052 00053 } 00054 00055 #endif // TULIPMODEL_H 00056 ///@endcond