13 #ifndef QmitkPythonVariableStackTableModel_h
14 #define QmitkPythonVariableStackTableModel_h
16 #include <QAbstractTableModel>
18 #include <QModelIndex>
20 #include <MitkQtPythonExports.h>
38 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
39 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
40 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
41 Qt::ItemFlags flags(
const QModelIndex& index )
const override;
42 QVariant headerData(
int section, Qt::Orientation orientation,
43 int role)
const override;
45 QStringList mimeTypes()
const override;
46 bool dropMimeData (
const QMimeData *, Qt::DropAction,
int,
int,
const QModelIndex & )
override;
47 Qt::DropActions supportedDropActions()
const override;
52 std::vector<mitk::PythonVariable> GetVariableStack()
const;
54 std::vector<mitk::PythonVariable> m_VariableStack;