Skip to content

Commit

Permalink
Edited the sip file to include the new RefDetectorViewer prototype. T…
Browse files Browse the repository at this point in the history
…his refs #5801
  • Loading branch information
JeanBilheux committed Sep 27, 2012
1 parent 7d81c15 commit d003dd8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Code/Mantid/MantidQt/Python/mantidqt.sip
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,35 @@ WidgetFactory::WidgetFactory()



namespace MantidQt
{
namespace RefDetectorViewer
{


//*WIKI* == Classes ==
//*WIKI* Here follows a list of the classes exposed to python and the methods you can execute on them.


/***************************************************************************/
/***************************************************************************/
/***************************************************************************/
class RefMatrixWSImageView
{
%TypeHeaderCode
#include "MantidQtRefDetectorViewer/RefMatrixWSImageView.h"
%End

public:
RefMatrixWSImageView (QString wps_name);
};

}; // end namespace
}; // end namespace







Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER RefMatrixWSImageView
/// Construct an image viewer for the specifed MatrixWorkspace
RefMatrixWSImageView( Mantid::API::MatrixWorkspace_sptr mat_ws );

RefMatrixWSImageView( QString wps_name);

~RefMatrixWSImageView();

private:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ RefMatrixWSImageView::RefMatrixWSImageView( MatrixWorkspace_sptr mat_ws )
// is closed
}

RefMatrixWSImageView::RefMatrixWSImageView( QString wps_name)
{
// std::cout << "wps name is : " << wps_name << std::endl;
}

RefMatrixWSImageView::~RefMatrixWSImageView()
{
// nothing to do here, since image_view is deleted when the window closes
Expand Down

0 comments on commit d003dd8

Please sign in to comment.