20 #ifndef FDMODELRESULTS_HPP
21 #define FDMODELRESULTS_HPP
23 #include <QAbstractTableModel>
27 #include "dataDefinitions.hpp"
57 QVariant
data(
const FdItemResults_p calculation, ResultsColumn column)
const;
58 QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
59 void setData(FdItemResults_p calculation, ResultsColumn column,
const QVariant &value);
60 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
61 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
62 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
65 QMimeData*
mimeData(
const QModelIndexList &indexes)
const;
66 bool dropMimeData(
const QMimeData *
data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent);
67 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
68 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
69 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
79 FdItemResults_p
item(QString
id)
const;
80 FdItemResults_p
item(
int row)
const;
81 QList<FdItemResults_p>
items()
const;
83 bool isValid(QString calculation)
const;
84 double parse(QString calculation)
const;
86 QDomElement
toXml(QDomDocument& document)
const;
97 #endif // FDMODELRESULTS_HPP