SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
selectsampletablemodel.h
Go to the documentation of this file.
1#ifndef SELECTSAMPLETABLEMODEL_H
2#define SELECTSAMPLETABLEMODEL_H
3
4#include <QObject>
5#include <QAbstractTableModel>
6#include <sourcesinkdata.h>
7
8
9class SelectSampleTableModel: public QAbstractTableModel
10{
11private:
12 Q_OBJECT
14
15public:
16 SelectSampleTableModel(SourceSinkData *Data, QObject *parent = nullptr);
17 int rowCount(const QModelIndex &parent = QModelIndex()) const override;
18 int columnCount(const QModelIndex &parent = QModelIndex()) const override;
19 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
20 QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
21 bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) override;
22 Qt::ItemFlags flags(const QModelIndex & index) const override;
24 void SetSelectedSource(const string &group) {selectedSource = group;}
26 Elemental_Profile* GetProfileSet(int row) const;
27signals:
28 void editCompleted(const QString &);
29
30};
31
32#endif // SELECTSAMPLETABLEMODEL_H
33
Container for elemental concentration data of a single sediment sample.
void SetSelectedSource(const string &group)
Elemental_Profile * GetProfileSet(int row)
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Qt::ItemFlags flags(const QModelIndex &index) const override
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void editCompleted(const QString &)