00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef OMGEXPERIMENTITEMMODEL_H
00021 #define OMGEXPERIMENTITEMMODEL_H
00022
00023 #include "omgexperiment.h"
00024 #include <QAbstractItemModel>
00025 #include <QPointer>
00026
00037 class OMG_LIB_EXPORT OmgExperimentItemModel : public QAbstractItemModel
00038 {
00039 public:
00040 OmgExperimentItemModel();
00041 ~OmgExperimentItemModel();
00042
00043
00044
00045
00046
00047
00048
00053 void setExperiment(OmgExperiment * const thepExperiment);
00054
00055
00056
00057
00058
00060 QModelIndex parent(const QModelIndex&) const;
00062 QModelIndex index ( int theRow, int theColumn, const QModelIndex & theParent = QModelIndex() ) const ;
00064 int columnCount ( const QModelIndex & parent = QModelIndex() ) const;
00066 int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
00069 QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const;
00071 QVariant headerData(int theSection, Qt::Orientation theOrientation,
00072 int theRole) const;
00073 private:
00075 QPointer<OmgExperiment> mpExperiment;
00076
00077 };
00078
00079 #endif //OMGEXPERIMENTITEMMODEL_H