diff --git a/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Indirect/ContainerSubtraction.h b/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Indirect/ContainerSubtraction.h index c572e7162d922009157e87c4e469c29e67723672..846fb3b2b6e527d52b1923f49afd01c99bb0a845 100644 --- a/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Indirect/ContainerSubtraction.h +++ b/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Indirect/ContainerSubtraction.h @@ -13,6 +13,16 @@ public: ContainerSubtraction(QWidget *parent = 0); private slots: + /// Handles the geometry being changed + void handleGeometryChange(int index); + /// Handles a new sample being loaded + void newData(const QString &dataName); + /// Updates the preview mini plot + void plotPreview(int specIndex); + /// Handle abs. correction algorithm completion + void absCorComplete(bool error); + /// Handle convert units and save algorithm completion + void postProcessComplete(bool error); private: virtual void setup(); diff --git a/Code/Mantid/MantidQt/CustomInterfaces/src/Indirect/ContainerSubtraction.cpp b/Code/Mantid/MantidQt/CustomInterfaces/src/Indirect/ContainerSubtraction.cpp index 0b7991b576d2bedabefea357fb4f2ba93fcd978f..3ef9ba04f64738b58097d4f31f522a95bc84df1b 100644 --- a/Code/Mantid/MantidQt/CustomInterfaces/src/Indirect/ContainerSubtraction.cpp +++ b/Code/Mantid/MantidQt/CustomInterfaces/src/Indirect/ContainerSubtraction.cpp @@ -11,6 +11,17 @@ namespace CustomInterfaces { ContainerSubtraction::ContainerSubtraction(QWidget *parent) : CorrectionsTab(parent) { m_uiForm.setupUi(parent); + + // Connect slots + connect(m_uiForm.cbGeometry, SIGNAL(currentIndexChanged(int)), this, + SLOT(handleGeometryChanged(int))); + connect(m_uiForm.dsSample, SIGNAL(dataReady(const QString &)), this, + SLOT(newData(const QString &))); + connect(m_uiForm.spPreviewSpec, SIGNAL(valueChanged(int)), this, + SLOT(plotPreview(int))); + + m_uiForm.spPreviewSpec->setMinimum(0); + m_uiForm.spPreviewSpec->setMaximum(0); } void ContainerSubtraction::setup() {}