-
Notifications
You must be signed in to change notification settings - Fork 169
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
gui: rename and move some widgets from gr-util #1586
Conversation
void TimeYAutoscale::addChannels(PlotChannel *c) { m_channels.append(c); } | ||
void PlotAutoscaler::addChannels(PlotChannel *c) { m_channels.append(c); } | ||
|
||
void PlotAutoscaler::removeChannels(PlotChannel *c) { m_channels.removeAll(c); } |
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.
Why do we need to use removeAll ? removeOne dose the same thing
is there a case where we would have multiple of the same channel ? if so do we want to remove all of them at once ?
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.
Yes, it makes no sense to have duplicates in the autoscaler .. So remove them all in case you have them ..
|
||
m_min = new PositionSpinButton( | ||
{ | ||
{"V", 1e0}, |
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.
I think the unit of measure should be a variable not all axis will plot Volts
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.
The menuplotaxisrangecontrol will get it's unit from plotaxis on construction.
Although it should be possible to change the unit at runtime, a refactor of spinbox is required.
TimeYAutoscale -> PlotAutoscaler TimeYControl -> MenuPlotAxisRangeControl created class MenuPlotChannelCurveStyleControl Signed-off-by: Adrian Suciu <[email protected]>
…trol Signed-off-by: Adrian Suciu <[email protected]>
a3774b4
to
9f1e960
Compare
Signed-off-by: Adrian Suciu <[email protected]>
TimeYAutoscale -> PlotAutoscaler
TimeYControl -> MenuPlotAxisRangeControl
created class MenuPlotChannelCurveStyleControl