qse  0.5.0
qsenormalizermodel.h
Go to the documentation of this file.
1 #ifndef QSENORMALIZERMODEL_H
2 #define QSENORMALIZERMODEL_H
3 
4 #include <QAbstractTableModel>
5 #include <QItemSelectionModel>
6 #include <QTableView>
7 #include "qsenormalizer.h"
8 
9 class QseNormalizerModel : public QAbstractTableModel
10 {
11  Q_OBJECT;
12 
13  typedef QAbstractTableModel inherited;
14 
15  public:
16  QseNormalizerModel(QseNormalizer *normalizer, QTableView *tableview, QObject *parent=0);
17 
18  int rowCount(const QModelIndex &parent = QModelIndex()) const;
19  int columnCount(const QModelIndex &parent = QModelIndex()) const;
20 
21  QVariant data(const QModelIndex &index, int role) const;
22  QVariant headerData(int section, Qt::Orientation orientation,
23  int role = Qt::DisplayRole) const;
24 
25  void setScanExceptions(QItemSelectionModel *s, QseNormalizer::QseScanRole r);
26  void setColumnExceptions(QItemSelectionModel *s, QseNormalizer::QseColumnRole r);
27 
28  public slots:
29  void operationCompleted();
30  void dataChanged();
31  void dataCleared();
32  void scanAdded(int n);
33 
34 
35  private:
37  QTableView *m_TableView;
38 };
39 
40 #endif