-
Notifications
You must be signed in to change notification settings - Fork 5
Fix scale on right side of pane for channel configuration dialogs #499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add a column to separate the track bar for the channel configuration dialog
- Only applies for dialogs that need to draw a scale (such as NeuropixelsV1e/V1f and NeuropixelsV2e/V2eBeta) - Updated the logic for constraining pan/zoom in all dialogs so that the probe is always in view - Standardized dialog sizes for consistency
- Change background color to WhiteSmoke to provide visual difference between background and probe - Decrease scale line thickness, and remove boldness from text - Round the X/Y values when resizing panes to avoid a visual flickering effect
@jonnew This PR is ready for review again after our meeting today. |
During testing, this update solves issue #313 as well. Now, the ChannelConfiguration dialog does not reset the zoom status when resizing. |
Please remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments.
This PR updates how scales are rendered and manipulated in channel configuration dialogs. Previously, they were drawn as objects in the same
GraphPane
as theProbeInterface
objects. Now, there is a secondary pane that is created to the right of the main pane that overrides the default Y-Axis labels and tics to simplify the logic required to maintain these scales over time.The scale pane and the main pane are tied together so that they pan/zoom whenever the user pans/zooms in the main pane. Due to the separation in panes, all panning and zooming are disabled in the scale pane to avoid any issues.
Devices that utilize this new feature:
NeuropixelsV1e
NeuropixelsV1f
NeuropixelsV2e
NeuropixelsV2eBeta
For devices that do not have a scale, such as the
Rhs2116
, the original behavior is retained with a single pane to draw the probe object.Fixes #339
Fixes #313
NeuropixelsV1e GIF
NeuropixelsV2e GIF
Rhs2116 GIF