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// SedSAT3 – Sediment Source Assessment Tool, version 3
2// U.S. Geological Survey. See LICENSE.md and DISCLAIMER.md in the repository root.
3
4#ifndef SELECTSAMPLETABLEMODEL_H
5#define SELECTSAMPLETABLEMODEL_H
6
7#include <QObject>
8#include <QAbstractTableModel>
9#include <sourcesinkdata.h>
10
11
12class SelectSampleTableModel: public QAbstractTableModel
13{
14private:
15 Q_OBJECT
17
18public:
19 SelectSampleTableModel(SourceSinkData *Data, QObject *parent = nullptr);
20 int rowCount(const QModelIndex &parent = QModelIndex()) const override;
21 int columnCount(const QModelIndex &parent = QModelIndex()) const override;
22 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
23 QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
24 bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) override;
25 Qt::ItemFlags flags(const QModelIndex & index) const override;
27 void SetSelectedSource(const string &group) {selectedSource = group;}
29 Elemental_Profile* GetProfileSet(int row) const;
30signals:
31 void editCompleted(const QString &);
32
33};
34
35#endif // SELECTSAMPLETABLEMODEL_H
36
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
SelectSampleTableModel(SourceSinkData *Data, QObject *parent=nullptr)
void editCompleted(const QString &)