Skip to content
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

Merged
merged 3 commits into from
Mar 25, 2024
Merged

Conversation

adisuciu
Copy link
Contributor

TimeYAutoscale -> PlotAutoscaler
TimeYControl -> MenuPlotAxisRangeControl
created class MenuPlotChannelCurveStyleControl

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); }
Copy link
Contributor

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 ?

Copy link
Contributor Author

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},
Copy link
Contributor

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

Copy link
Contributor Author

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]>
@adisuciu adisuciu force-pushed the dev_movewidgetstogui branch from a3774b4 to 9f1e960 Compare March 22, 2024 13:40
Signed-off-by: Adrian Suciu <[email protected]>
@adisuciu adisuciu merged commit d3e619a into dev Mar 25, 2024
17 checks passed
@adisuciu adisuciu deleted the dev_movewidgetstogui branch March 25, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants