Skip to content

Commit

Permalink
Refs #10563 Add python bindings for createSubWindow
Browse files Browse the repository at this point in the history
We need this to generate documentation screenshots of c++ custom
interfaces
  • Loading branch information
Harry Jeffery committed Nov 17, 2014
1 parent d431928 commit 751931e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Code/Mantid/MantidQt/Python/mantidqt.sip
Expand Up @@ -95,6 +95,15 @@ private:
AlgorithmDialog();
};

class UserSubWindow : QMainWindow
{
%TypeHeaderCode
#include "MantidQtAPI/UserSubWindow.h"
%End
private:
UserSubWindow();
};

class InterfaceManager
{
%TypeHeaderCode
Expand All @@ -103,6 +112,7 @@ class InterfaceManager
public:
MantidQt::API::AlgorithmDialog* createDialogFromName(const QString&, const int = -1,
QWidget* = 0, bool = false);
MantidQt::API::UserSubWindow* createSubWindow(const QString& interface_name, QWidget* parent = 0);

};

Expand Down

0 comments on commit 751931e

Please sign in to comment.