-
Notifications
You must be signed in to change notification settings - Fork 95
#2466 Waveform View support Multiple Traces #2474
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
#2466 Waveform View support Multiple Traces #2474
Conversation
…selection of multiple PVs in waveform plot; beginnings of modifications to WaveformView to handle multiple PV traces
…ation and slider handling; needs tidy
… add a new waveform without having the y axis autoscale to a different range
kasemir
left a comment
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.
As for MultiSelectCombo, there is already org.csstudio.ui.util.widgets.MultipleSelectionCombo and MultipleSelectionComboDemo, can you use that?
|
Pull request #2473 was submitted just before this one, and since it has been merged, there are merge conflicts on this one. Please check into using the existing MultipleSelectionCombo class, and the merge conflict. Otherwise I think this is a great idea, thanks! |
kasemir
left a comment
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.
Not sure about this code:
public void itemRemoved(final ModelItem item)
{
for (ModelItem model_item : model_items)
if (item == model_item)
model_items.remove(model_item);
It modifies a list that's being iterated.
Safer and actually simpler:
model_items.remove(item);
|
I resolved the merge conflict and did the simpler list removal. The |
|
Yes, |
kasemir
left a comment
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.
Perfect, except that it still includes the unused org.csstudio.trends.databrowser2.multiselectcombo, having switched to the existing org.csstudio.ui.util.widgets.MultipleSelectionCombo
kasemir
left a comment
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.
Thanks!
|
I do find the |
|
You're right. With check boxes, you just tick or un-tick the boxes. With the multiselectioncombo, you need to Shift-or-Ctrl-Click until you get carpal tunnel syndrome. |
|
I have committed a modification to the MultipleSelectionCombo to use check boxes. Hopefully it's an improvement on what was there previously? |
|
Does the MultipleSelectionComboDemo still work? |
|
|
That looks nicer. Two comments:
|
|
I think this is now ready. You could squash the commits if you like. |
Implemented support for multiple traces in WaveformView
Modification made to handle events not coming in at the same time for different plotted PVs:
cc @willrogers