Skip to content
Snippets Groups Projects
Commit 4144a7a7 authored by Elliot Oram's avatar Elliot Oram
Browse files

Added Slots and signals for ui changes

Refs #13110
parent 79263767
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,16 @@ public: ...@@ -13,6 +13,16 @@ public:
ContainerSubtraction(QWidget *parent = 0); ContainerSubtraction(QWidget *parent = 0);
private slots: 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: private:
virtual void setup(); virtual void setup();
......
...@@ -11,6 +11,17 @@ namespace CustomInterfaces { ...@@ -11,6 +11,17 @@ namespace CustomInterfaces {
ContainerSubtraction::ContainerSubtraction(QWidget *parent) ContainerSubtraction::ContainerSubtraction(QWidget *parent)
: CorrectionsTab(parent) { : CorrectionsTab(parent) {
m_uiForm.setupUi(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() {} void ContainerSubtraction::setup() {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment