#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.
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.
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.
Perfect, except that it still includes the unused org.csstudio.trends.databrowser2.multiselectcombo, having switched to the existing org.csstudio.ui.util.widgets.MultipleSelectionCombo
|
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