17 #ifndef QmitkPythonVariableStackTableModel_h
18 #define QmitkPythonVariableStackTableModel_h
20 #include <QAbstractTableModel>
22 #include <QModelIndex>
24 #include <MitkQtPythonExports.h>
42 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
43 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
44 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
45 Qt::ItemFlags flags(
const QModelIndex& index )
const;
46 virtual QVariant headerData(
int section, Qt::Orientation orientation,
49 QStringList mimeTypes()
const;
50 bool dropMimeData (
const QMimeData *, Qt::DropAction,
int,
int,
const QModelIndex & );
51 Qt::DropActions supportedDropActions()
const;
56 std::vector<mitk::PythonVariable> GetVariableStack()
const;
58 std::vector<mitk::PythonVariable> m_VariableStack;
63 #endif // QmitkPythonVariableStackTableModel_h
static const QString MITK_IMAGE_VAR_NAME
static const QString MITK_SURFACE_VAR_NAME
virtual void CommandExecuted(const std::string &pythonCommand)=0