pc2ccs / pc2v9

Version 9 of the PC^2 Programming Contest Control System
Eclipse Public License 2.0
46 stars 23 forks source link

When editing a filter, there should be a way to select/deselect multiple items from a list #369

Open johnbrvc opened 2 years ago

johnbrvc commented 2 years ago

Is your feature request related to a problem? Need a way to select multiple items in an edit filter list (EditFilterPane) ...

Feature Description: In EditFilterPane, which is used by many other Panes, each of the categories of filtering should provide a mechanism to allow multiple selections. Ex. select first item in list, then scroll to end and do SHIFT-click to select the entire list (or some subset thereof). ...

Have you considered other ways to accomplish the same thing? Individually clicking each desired item. Can become a problem when there are lots of teams, runs, or clarifications. ...

Do you have any specific suggestions for how your feature would be **implemented in PC^2?** Change EditFilterPane to allow multiple selections using standard key-strokes: CTRL-Click to select multiple individual items. SHIFT-Click to select a range of items, etc.
...

...

lane55 commented 2 years ago

Note that a Ctrl-A will select and deselect all items.

The Ctrl-Click function is done by simply clicking on the checkbox or item.

The Shift-Click function is not implemented.

johnbrvc commented 2 years ago

Confirmed: Ctrl-A does selected/deselect all when focus is in the appropriate list. Perhaps, then, a single checkbox in the column header, to the left of the title, where, if it's checked, then all items get checked, when unchecked all become unchecked (kind of like 'gmail' does). A message on the editpane indicating ^A to select all, or, perhaps a tool-tip when hovering over a list? There should be some indication that there is a way to select/deselect all items.

Ctrl-click is not needed - what was I thinking?

Shift-Click: select everything between previously clicked item and the one that is currently selected when shift-select is pressed. The state of the checkbox depends on several factors. 'gmail' selection seems natural and a set of rules can be drawn up. Low priority.

lane55 commented 2 years ago

I recommend refactoring the list, remove the checkbox and treat it like a typical list Ctrl-A select/de-select all Click to select/deselect Shift-Click to select a range of items.