QXRD  0.11.16
qxrdcalibrantlibrarymodel.h
Go to the documentation of this file.
1 #ifndef QXRDCALIBRANTLIBRARYMODEL_H
2 #define QXRDCALIBRANTLIBRARYMODEL_H
3 
4 #include <QAbstractTableModel>
6 
7 class QxrdCalibrantLibraryModel : public QAbstractTableModel
8 {
9  Q_OBJECT
10 
11 public:
14 
15  virtual int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
16  virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const;
17 
18  virtual QVariant data ( const QModelIndex & index, int role ) const;
19  virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
20 
21  enum {
28  };
29 
30  void toggleIsUsed(int n);
31  int isUsed(int n);
32  void setIsUsed(int n, int v);
33 
34  void calibrantChanged(int n);
35 
36 private:
38 };
39 
40 #endif // QXRDCALIBRANTLIBRARYMODEL_H
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
QSharedPointer< QxrdCalibrantLibrary > QxrdCalibrantLibraryPtr
QxrdCalibrantLibraryModel(QxrdCalibrantLibraryPtr cal)
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual QVariant data(const QModelIndex &index, int role) const
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
QxrdCalibrantLibraryPtr m_CalibrantLibrary