@@ -32,6 +32,7 @@ qx.Class.define("osparc.file.FolderViewer", {
3232 const folderUpBtn = this . getChildControl ( "folder-up" ) ;
3333 folderUpBtn . addListener ( "execute" , ( ) => this . fireDataEvent ( "folderUp" , this . getFolder ( ) ) , this ) ;
3434 this . getChildControl ( "folder-path" ) ;
35+ const multiSelectButton = this . getChildControl ( "multi-select-button" ) ;
3536 const iconsButton = this . getChildControl ( "view-options-icons" ) ;
3637 const listButton = this . getChildControl ( "view-options-list" ) ;
3738 const folderContent = this . getChildControl ( "folder-content" ) ;
@@ -46,6 +47,7 @@ qx.Class.define("osparc.file.FolderViewer", {
4647
4748 this . bind ( "folder" , folderContent , "folder" ) ;
4849
50+ multiSelectButton . addListener ( "changeValue" , e => folderContent . setMultiSelect ( e . getData ( ) ) ) ;
4951 iconsButton . addListener ( "execute" , ( ) => folderContent . setMode ( "icons" ) ) ;
5052 listButton . addListener ( "execute" , ( ) => folderContent . setMode ( "list" ) ) ;
5153
@@ -100,6 +102,14 @@ qx.Class.define("osparc.file.FolderViewer", {
100102 } ) ;
101103 break ;
102104 }
105+ case "multi-select-button" :
106+ control = new qx . ui . form . ToggleButton ( this . tr ( "Multiselect" ) ) . set ( {
107+ value : false ,
108+ marginRight : 10 ,
109+ } ) ;
110+ const header = this . getChildControl ( "header" ) ;
111+ header . addAt ( control , 2 ) ;
112+ break ;
103113 case "view-options-rgroup" :
104114 control = new qx . ui . form . RadioGroup ( ) ;
105115 break ;
@@ -108,15 +118,15 @@ qx.Class.define("osparc.file.FolderViewer", {
108118 const group = this . getChildControl ( "view-options-rgroup" ) ;
109119 group . add ( control ) ;
110120 const header = this . getChildControl ( "header" ) ;
111- header . addAt ( control , 2 ) ;
121+ header . addAt ( control , 3 ) ;
112122 break ;
113123 }
114124 case "view-options-list" : {
115125 control = new qx . ui . form . ToggleButton ( null , "@MaterialIcons/reorder/18" ) ;
116126 const group = this . getChildControl ( "view-options-rgroup" ) ;
117127 group . add ( control ) ;
118128 const header = this . getChildControl ( "header" ) ;
119- header . addAt ( control , 3 ) ;
129+ header . addAt ( control , 4 ) ;
120130 break ;
121131 }
122132 case "folder-content" : {
0 commit comments