Skip to content

Commit

Permalink
Disable quick-load IMRO ComboBox during acquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Nov 5, 2024
1 parent 2fd82be commit 1ec92fe
Showing 1 changed file with 6 additions and 31 deletions.
37 changes: 6 additions & 31 deletions Source/UI/NeuropixInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,9 @@ void NeuropixInterface::startAcquisition()
if (loadJsonButton != nullptr)
loadJsonButton->setEnabled (enabledState);

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

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

Expand Down Expand Up @@ -1243,6 +1246,9 @@ void NeuropixInterface::stopAcquisition()
if (loadJsonButton != nullptr)
loadJsonButton->setEnabled (enabledState);

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

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

Expand All @@ -1258,39 +1264,8 @@ void NeuropixInterface::stopAcquisition()
if (bscFirmwareButton != nullptr)
bscFirmwareButton->setEnabled (enabledState);

//probeBrowser->stopTimer();
}

/*void NeuropixInterface::mouseWheelMove(const MouseEvent& event, const MouseWheelDetails& wheel)
{
if (event.x > 100 && event.x < 350)
{
if (wheel.deltaY > 0)
zoomOffset += 2;
else
zoomOffset -= 2;
//std::cout << wheel.deltaY << " " << zoomOffset << std::endl;
if (zoomOffset < 0)
{
zoomOffset = 0;
}
else if (zoomOffset + 18 + zoomHeight > lowerBound)
{
zoomOffset = lowerBound - zoomHeight - 18;
}
repaint();
}
else {
canvas->mouseWheelMove(event, wheel);
}
}*/

void NeuropixInterface::paint (Graphics& g)
{
if (probe != nullptr)
Expand Down

0 comments on commit 1ec92fe

Please sign in to comment.