Commit 7235413a authored by Cristina Cocho's avatar Cristina Cocho

Overload setDisable for d22 stuff

parent 50ce8de8
......@@ -402,6 +402,14 @@ float64 CountWithSpectro::calculateWaitingTimeInSec() {
return singleWaitTime;
}
/*
* setEnabled
*/
void CountWithSpectro::setEnabledForLoading(bool all, bool postconf) {
addExcludeSetEnableController(count.getRole());
ExperimentController::setEnabledForLoading(all, postconf);
}
/*
* setDisabled
*/
......
......@@ -79,7 +79,8 @@ public:
void updateProgression();
void updateSubtitle();
void update();
virtual void setDisabled(bool all);
virtual void setEnabledForLoading(bool all, bool postconf = true);
virtual void setDisabled(bool all = false);
virtual void cleanArrays();
private:
......
......@@ -314,13 +314,24 @@ void D22SpectroSampleSequencer::stop() {
}
/*
* setEnabled
*/
void D22SpectroSampleSequencer::setEnabledForLoading(bool all, bool postconf) {
addExcludeSetEnableController(m_dataParams.getRole());
addExcludeSetEnableController(m_sampleChanger.getRole());
ExperimentController::setEnabledForLoading(all, postconf);
}
/*
* setDisabled
*/
void D22SpectroSampleSequencer::setDisabled(bool all) {
addExcludeSetEnableController(m_dataParams.getRole());
addExcludeSetEnableController(m_sampleChanger.getRole());
ExperimentController::setDisabled(all);
}
}
......@@ -44,7 +44,8 @@ public:
void start(); // virtual?
void stop();
virtual void setDisabled(bool all);
virtual void setEnabledForLoading(bool all, bool postconf = true);
virtual void setDisabled(bool all = false);
private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment