]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Improve multi-selector control to provide items multi-selection and "Delete" context...
authornds <nds@opencascade.com>
Tue, 12 Jan 2016 03:48:04 +0000 (06:48 +0300)
committerdbv <dbv@opencascade.com>
Tue, 16 Feb 2016 14:03:01 +0000 (17:03 +0300)
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp
src/ModuleBase/ModuleBase_WidgetMultiSelector.h

index 6328648a3ac0daaa33436c32813fd77701917872..ffc380878cb756b4f99caada00d4250fdc254ce8 100755 (executable)
@@ -529,4 +529,7 @@ void ModuleBase_WidgetMultiSelector::onListSelection()
   myDeleteAction->setEnabled(!aItems.isEmpty());
 
   //myWorkshop->setSelected(>setSelected(getAttributeSelection());
+  QList<ModuleBase_ViewerPrs> aSelectedItems;
+  
+  emit itemsSelected(aSelectedItems);
 }
index 9165161fc09f0d4fc978613b9cfe2d40d8eb1b2f..49dbc1a7c40551ff1cfc4ca2578a7e0b52af7d20 100755 (executable)
@@ -81,6 +81,10 @@ class MODULEBASE_EXPORT ModuleBase_WidgetMultiSelector : public ModuleBase_Widge
   /// Slot is called on selection type changed
   void onSelectionTypeChanged();
 
+signals:
+  /// Signals about items selected in the list view
+  void itemsSelected(const QList<ModuleBase_ViewerPrs>& theItems);
+
 protected slots:
   /// Slot for copy command in a list pop-up menu
   void onCopyItem();