Skip to content

Commit

Permalink
Disable settings buttons during acquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Dec 12, 2023
1 parent a565198 commit be294fa
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/NeuropixThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ bool NeuropixThread::startAcquisition()
return true;
}


void NeuropixThread::timerCallback()
{
LOGD("Timer callback.");
Expand Down
62 changes: 62 additions & 0 deletions Source/UI/NeuropixInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,40 @@ void NeuropixInterface::startAcquisition()
if (bistButton != nullptr)
bistButton->setEnabled(enabledState);

if (copyButton != nullptr)
copyButton->setEnabled(enabledState);

if (pasteButton != nullptr)
pasteButton->setEnabled(enabledState);

if (applyToAllButton != nullptr)
applyToAllButton->setEnabled(enabledState);

if (loadImroButton != nullptr)
loadImroButton->setEnabled(enabledState);

if (loadJsonButton != nullptr)
loadJsonButton->setEnabled(enabledState);

if (firmwareToggleButton != nullptr)
firmwareToggleButton->setEnabled(enabledState);

if (bscFirmwareComboBox != nullptr)
bscFirmwareComboBox->setEnabled(enabledState);

if (bsFirmwareComboBox != nullptr)
bsFirmwareComboBox->setEnabled(enabledState);

if (bsFirmwareButton != nullptr)
bsFirmwareButton->setEnabled(enabledState);

if (bscFirmwareButton != nullptr)
bscFirmwareButton->setEnabled(enabledState);

if (mode == ACTIVITY_VIEW)
probeBrowser->startTimer(100);


}

void NeuropixInterface::stopAcquisition()
Expand Down Expand Up @@ -1209,6 +1241,36 @@ void NeuropixInterface::stopAcquisition()
if (bistButton != nullptr)
bistButton->setEnabled(enabledState);

if (copyButton != nullptr)
copyButton->setEnabled(enabledState);

if (pasteButton != nullptr)
pasteButton->setEnabled(enabledState);

if (applyToAllButton != nullptr)
applyToAllButton->setEnabled(enabledState);

if (loadImroButton != nullptr)
loadImroButton->setEnabled(enabledState);

if (loadJsonButton != nullptr)
loadJsonButton->setEnabled(enabledState);

if (firmwareToggleButton != nullptr)
firmwareToggleButton->setEnabled(enabledState);

if (bscFirmwareComboBox != nullptr)
bscFirmwareComboBox->setEnabled(enabledState);

if (bsFirmwareComboBox != nullptr)
bsFirmwareComboBox->setEnabled(enabledState);

if (bsFirmwareButton != nullptr)
bsFirmwareButton->setEnabled(enabledState);

if (bscFirmwareButton != nullptr)
bscFirmwareButton->setEnabled(enabledState);

//probeBrowser->stopTimer();
}

Expand Down

0 comments on commit be294fa

Please sign in to comment.