00001 #ifndef QSEDATASETMODEL_H 00002 #define QSEDATASETMODEL_H 00003 00004 #include <QAbstractItemModel> 00005 #include <QAbstractTableModel> 00006 00007 class QseDataSet; 00008 00009 class QseDataSetModel : public QAbstractTableModel 00010 { 00011 Q_OBJECT; 00012 00013 typedef QAbstractTableModel inherited; 00014 00015 public: 00016 QseDataSetModel(QseDataSet *dataSet, QObject *parent=0); 00017 00018 int rowCount(const QModelIndex &parent = QModelIndex()) const; 00019 int columnCount(const QModelIndex &parent = QModelIndex()) const; 00020 00021 QVariant data(const QModelIndex &index, int role) const; 00022 QVariant headerData(int section, Qt::Orientation orientation, 00023 int role = Qt::DisplayRole) const; 00024 00025 /* Qt::ItemFlags flags ( const QModelIndex & index ) const; */ 00026 00027 /* QModelIndex index(int row, int column, */ 00028 /* const QModelIndex &parent = QModelIndex()) const; */ 00029 00030 /* QModelIndex parent(const QModelIndex &parent) const; */ 00031 00032 /* bool insertRows(int row, int count, */ 00033 /* const QModelIndex &parent = QModelIndex()); */ 00034 /* bool removeRows(int row, int count, */ 00035 /* const QModelIndex & parent = QModelIndex()); */ 00036 /* bool insertColumns(int col, int count, */ 00037 /* const QModelIndex &parent = QModelIndex()); */ 00038 /* bool removeColumns(int col, int count, */ 00039 /* const QModelIndex & parent = QModelIndex()); */ 00040 00041 public slots: 00042 void dataChanged(); 00043 void dataCleared(); 00044 void scanAdded(int n); 00045 00046 private: 00047 QseDataSet *m_DataSet; 00048 int m_NScans; 00049 }; 00050 00051 #endif 00052 00053
1.5.6