Skip to content
Snippets Groups Projects
Commit 1d8d6898 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Lock some controls of phase detector on acquisition

parent 5a71aabe
Branches
Tags
No related merge requests found
......@@ -86,6 +86,19 @@ PhaseDetectorEditor::~PhaseDetectorEditor()
}
void PhaseDetectorEditor::startAcquisition()
{
plusButton->setEnabled(false);
for (int i = 0; i < interfaces.size(); i++)
interfaces[i]->setEnableStatus(false);
}
void PhaseDetectorEditor::stopAcquisition()
{
plusButton->setEnabled(true);
for (int i = 0; i < interfaces.size(); i++)
interfaces[i]->setEnableStatus(true);
}
void PhaseDetectorEditor::updateSettings()
{
......@@ -434,4 +447,10 @@ int DetectorInterface::getOutputChan()
int DetectorInterface::getGateChan()
{
return gateSelector->getSelectedId()-2;
}
void DetectorInterface::setEnableStatus(bool status)
{
inputSelector->setEnabled(status);
for (int i = 0; i < phaseButtons.size(); i++)
phaseButtons[i]->setEnabled(status);
}
\ No newline at end of file
......@@ -56,6 +56,9 @@ public:
void saveCustomParameters(XmlElement* xml);
void loadCustomParameters(XmlElement* xml);
void startAcquisition() override;
void stopAcquisition() override;
private:
ScopedPointer<ComboBox> detectorSelector;
......@@ -105,6 +108,8 @@ public:
int getOutputChan();
int getGateChan();
void setEnableStatus(bool status);
private:
Colour backgroundColour;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment