diff --git a/Code/Mantid/MantidQt/MantidWidgets/inc/MantidQtMantidWidgets/InputController.h b/Code/Mantid/MantidQt/MantidWidgets/inc/MantidQtMantidWidgets/InputController.h index cdb2680d233a1ed4b72323b86bb62fe2a864ad1b..6c2b3ab4330b8d0449a41efd133838c1cdd18e17 100644 --- a/Code/Mantid/MantidQt/MantidWidgets/inc/MantidQtMantidWidgets/InputController.h +++ b/Code/Mantid/MantidQt/MantidWidgets/inc/MantidQtMantidWidgets/InputController.h @@ -1,6 +1,7 @@ #ifndef MANTID_MANTIDWIDGETS_INPUTCONTROLLER_H #define MANTID_MANTIDWIDGETS_INPUTCONTROLLER_H +#include "WidgetDllOption.h" #include <QObject> #include <QRect> #include <QColor> @@ -26,7 +27,7 @@ namespace MantidWidgets { on the surface. */ -class InputController : public QObject { +class EXPORT_OPT_MANTIDQT_MANTIDWIDGETS InputController : public QObject { Q_OBJECT public: explicit InputController(QObject *parent, bool contextAllowed = true); @@ -64,7 +65,7 @@ private: translation, rotation and zooming. */ -class InputController3DMove : public InputController { +class EXPORT_OPT_MANTIDQT_MANTIDWIDGETS InputController3DMove : public InputController { Q_OBJECT public: @@ -99,7 +100,7 @@ private: /** Controller for picking detectors. */ -class InputControllerPick : public InputController { +class EXPORT_OPT_MANTIDQT_MANTIDWIDGETS InputControllerPick : public InputController { Q_OBJECT public: @@ -122,7 +123,7 @@ private: /** Controller for drawing mask shapes. */ -class InputControllerDrawShape : public InputController { +class EXPORT_OPT_MANTIDQT_MANTIDWIDGETS InputControllerDrawShape : public InputController { Q_OBJECT public: @@ -176,7 +177,7 @@ private: /** Controller for moving the instrument on an unwrapped surface. */ -class InputControllerMoveUnwrapped : public InputController { +class EXPORT_OPT_MANTIDQT_MANTIDWIDGETS InputControllerMoveUnwrapped : public InputController { Q_OBJECT public: @@ -198,7 +199,7 @@ private: /** Controller for moving the instrument on an unwrapped surface. */ -class InputControllerErase : public InputController { +class EXPORT_OPT_MANTIDQT_MANTIDWIDGETS InputControllerErase : public InputController { Q_OBJECT public: diff --git a/Code/Mantid/MantidQt/SliceViewer/src/ConcretePeaksPresenter.cpp b/Code/Mantid/MantidQt/SliceViewer/src/ConcretePeaksPresenter.cpp index 9d88886456cee771bc37941e5e84cf09059ecfdc..b77a07265de1db62a4ac352681b4088c4f418937 100644 --- a/Code/Mantid/MantidQt/SliceViewer/src/ConcretePeaksPresenter.cpp +++ b/Code/Mantid/MantidQt/SliceViewer/src/ConcretePeaksPresenter.cpp @@ -69,7 +69,7 @@ bool canAddPeaksTo(IPeaksWorkspace const * const peaksWS, Mantid::Kernel::Speci - PeaksWS Must not be integrated, because we have no concept of radius until each individual peak is integrated. - The MDWorkspace must be in the HKL frame otherwise we cannot interpret plot cursor coordinates. */ - return peaksWS->sample().hasOrientedLattice() && !peaksWS->hasIntegratedPeaks() && frame == HKL; + return peaksWS->sample().hasOrientedLattice() && !peaksWS->hasIntegratedPeaks() && frame == Mantid::Kernel::HKL; } } diff --git a/Code/Mantid/MantidQt/SliceViewer/test/ConcretePeaksPresenterTest.h b/Code/Mantid/MantidQt/SliceViewer/test/ConcretePeaksPresenterTest.h index fb1b5863f6bbc50225c720ccdbb08e2e2a900663..f849197c6cef1c8a666867b5d66d05d0879ec99d 100644 --- a/Code/Mantid/MantidQt/SliceViewer/test/ConcretePeaksPresenterTest.h +++ b/Code/Mantid/MantidQt/SliceViewer/test/ConcretePeaksPresenterTest.h @@ -156,7 +156,7 @@ class ConcretePeaksPresenterTest : public CxxTest::TestSuite { // Map enum to string. std::string frame_str = "Q (lab frame)"; - if(frame == HKL){ + if(frame == Mantid::Kernel::HKL){ frame_str = "HKL"; } else if(frame == QSample) { frame_str = "Q (sample frame)"; @@ -784,7 +784,7 @@ public: { using namespace Mantid::DataObjects; Peak* pPeak = dynamic_cast<Peak*>(&peak); - pPeak->setPeakShape(boost::make_shared<PeakShapeSpherical>(radius, HKL)); + pPeak->setPeakShape(boost::make_shared<PeakShapeSpherical>(radius, Mantid::Kernel::HKL)); } void test_delete_in() { @@ -792,7 +792,7 @@ public: const int nPeaks = 3; const double radius = 0.1; - auto concreteBuilder = createStandardBuild(nPeaks, radius, HKL); + auto concreteBuilder = createStandardBuild(nPeaks, radius, Mantid::Kernel::HKL); // Custom peaks workspace IPeaksWorkspace_sptr peaksWS = createPeaksWorkspace(nPeaks, radius);