Palette browser: allowing multiple selection by holding down the ctrl key 86/17086/2
authorMarcos CARDINOT <mcardinot@gmail.com>
Fri, 21 Aug 2015 16:45:01 +0000 (17:45 +0100)
committerClément DAVID <clement.david@scilab-enterprises.com>
Fri, 4 Sep 2015 13:27:38 +0000 (15:27 +0200)
commit8c4b463a00fca97ac20687f14e0eb503ab52ffc8
treefe674a81437414dbde72a9460b944e274bad3ec6
parent54c00bb05638c7610aba1d9d773a53825384d9a9
Palette browser: allowing multiple selection by holding down the ctrl key

This patch introduces a new feature to the palette browser.
Now it is able to select multiple blocks by holding down the ctrl key.

test cases:
A)
- open the palette browser
- hold down the ctrl key
- left click on some blocks
- drag the blocks to a diagram

B)
- open the palette browser
- hold down the ctrl key
- left click on some blocks
- double click any block to load all of them on the most recent diagram

C)
- open the palette browser
- hold down the ctrl key
- use the arrow keys to move the selection (hightlight)
- press SPACE key to select a block
- press ENTER to load the selected blocks on the most recent diagram

Change-Id: Iba03c2ad71cf7e894bea2804834a56ab2135881f
13 files changed:
scilab/CHANGES_5.6.X
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/PaletteBlockCtrl.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/PaletteCtrl.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/listener/PaletteBlockKeyListener.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/listener/PaletteBlockMouseListener.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/listener/PaletteDragGestureListener.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/listener/PaletteManagerTreeSelectionListener.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/listener/PaletteMouseListener.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/view/PaletteBlockView.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/view/PaletteManagerPanel.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/view/PaletteSearchView.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/view/PaletteView.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/utils/XcosMessages.java