Skip to content

Commit

Permalink
Refs #9451. Checkpoint progress. Doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed May 14, 2014
1 parent 7c3433f commit eb000bd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
21 changes: 21 additions & 0 deletions Code/Mantid/MantidPlot/mantidplot.py
Expand Up @@ -953,3 +953,24 @@ def __getWorkspaceIndices(source):
return index_list

#-----------------------------------------------------------------------------

#=============================================================================
# VSI Methods
#=============================================================================

def showVSI(source):
workspace_names = getWorkspaceNames(source)
try:
import mantidvsipython
except:
print "Could not find module mantidvsipython. Cannot open the VatesSimpleInterface."
return

vsi = mantidvsipython.Mantid.Vates.SimpleGui.MdViewerWidget()
threadsafe_call(vsi.setupPluginMode)
# -- Connect to main window's shut down signal ---
QtCore.QObject.connect(_qti.app, QtCore.SIGNAL("shutting_down()"),
vsi, QtCore.SLOT("close()"))

threadsafe_call(vsi.show)
return proxies.MdViewerWidgetProxy(vsi)
9 changes: 9 additions & 0 deletions Code/Mantid/MantidPlot/mantidplotpy/proxies.py
Expand Up @@ -824,4 +824,13 @@ class FitBrowserProxy(QtProxyObject):
def __init__(self, toproxy):
QtProxyObject.__init__(self,toproxy)


#------------------------------------------------------------------------------
class MdViewerWidgetProxy(QtProxyObject):
"""
Proxy for the MdViewerWidget object.
"""
def __init__(self, toproxy):
QtProxyObject.__init__(self,toproxy)


6 changes: 4 additions & 2 deletions Code/Mantid/Vates/VatesSimpleGui/Python/mantidvsi.sip
Expand Up @@ -11,8 +11,6 @@
%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip

%Import mantidqt.sip

/******************************************************************/

namespace Mantid
Expand All @@ -36,3 +34,7 @@ public:
}; // namespace Vates
}; // namespace Mantid

// Push import of mantidqt.sip to end to avoid Vates namespace being
// placed in that module.

%Import mantidqt.sip

0 comments on commit eb000bd

Please sign in to comment.