gerbilvis / gerbil

Gerbil Hyperspectral Visualization and Analysis Framework
http://gerbilvis.org
GNU General Public License v3.0
43 stars 15 forks source link

Socis2015project3 #3

Closed ajaskier closed 9 years ago

ajaskier commented 9 years ago

Project3. Multi-label selecting. It's delivered with solutions from project1, because I find it more resonable, since project1 brings 'Pick' mode.

ypnos commented 9 years ago

Please incorporate the following changes:

ypnos commented 9 years ago

In the LabelDock, the user can select several labels by using rectangle selection (keep left mouse button pressed and adjust a rectangle, all items under the rectangle make up the selection). This is not reflected however in our internally selected labels and leads to an inconsistent state.

Please also capture these selection changes to update internally selected labels.

ypnos commented 9 years ago

When at least one label is selected, and a new selection is initiated with mouse keep-left-pressed, rectangular selection, we observe weird behavior. First, all labels get deselected (expected), then after finishing the selection, one of the previously selected labels is suddenly selected again (additionally to the rectangular selection.

I wonder if we maybe drifted off a bit here. Can't we just let the view widget handle all kinds of (de)selections on its own and just keep track of the current selection? that means for example, that to select additional labels the ctrl or shift modifier keys need to be pressed. It would actually welcome if this list view behaves like list views normally would.

I suppose we ran into our current complicated setup for historical reasons (going from mouse-over-to-select to click-to-select). Maybe it is not too hard to have the listview to be genuine again? Please evaluate.