Skip to content
Snippets Groups Projects
Commit c3585a77 authored by Elliot Oram's avatar Elliot Oram
Browse files

Add WorkspaceWidgetSimple to SIP

Refs #21442
parent b60d3fa0
No related branches found
No related tags found
No related merge requests found
...@@ -96,6 +96,12 @@ public: ...@@ -96,6 +96,12 @@ public:
const QStringList &disabled = QStringList()); const QStringList &disabled = QStringList());
}; };
// ---------------------------------
// WorkspaceWidget and dependencies
// ---------------------------------
class MantidDisplayBase /Abstract/ { class MantidDisplayBase /Abstract/ {
%TypeHeaderCode %TypeHeaderCode
#include "MantidQtWidgets/Common/MantidDisplayBase.h" #include "MantidQtWidgets/Common/MantidDisplayBase.h"
...@@ -104,6 +110,15 @@ private: ...@@ -104,6 +110,15 @@ private:
MantidDisplayBase(); MantidDisplayBase();
}; };
class MantidTreeModel : MantidDisplayBase {
%TypeHeaderCode
#include "MantidQtWidgets/Common/MantidTreeModel.h"
%End
public:
MantidTreeModel();
private:
MantidTreeModel(const MantidTreeModel &);
};
class WorkspaceTreeWidget : QWidget { class WorkspaceTreeWidget : QWidget {
%TypeHeaderCode %TypeHeaderCode
...@@ -114,12 +129,12 @@ public: ...@@ -114,12 +129,12 @@ public:
QWidget *parent /TransferThis/ = nullptr); QWidget *parent /TransferThis/ = nullptr);
}; };
class MantidTreeModel : MantidDisplayBase { // Implementation to override context menu
class WorkspaceTreeWidgetSimple : WorkspaceTreeWidget {
%TypeHeaderCode %TypeHeaderCode
#include "MantidQtWidgets/Common/MantidTreeModel.h" #include "MantidQtWidgets/Common/WorkspacePresenter/WorkspaceTreeWidgetSimple.h"
%End %End
public: public:
MantidTreeModel(); WorkspaceTreeWidgetSimple(MantidDisplayBase *mdb /Transfer/,
private: QWidget *parent /TransferThis/ = nullptr);
MantidTreeModel(const MantidTreeModel &);
}; };
...@@ -19,4 +19,4 @@ from __future__ import (absolute_import) ...@@ -19,4 +19,4 @@ from __future__ import (absolute_import)
from mantidqt.utils.qt import import_qtlib from mantidqt.utils.qt import import_qtlib
WorkspaceTreeWidget = import_qtlib('_widgetscore', 'mantidqt.widgets.workspacewidget', 'WorkspaceTreeWidget') WorkspaceTreeWidget = import_qtlib('_widgetscore', 'mantidqt.widgets.workspacewidget', 'WorkspaceTreeWidgetSimple')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment