1 #ifndef SALOMEAPP_SELECTIONMGR_H
2 #define SALOMEAPP_SELECTIONMGR_H
6 #include <SUIT_SelectionMgr.h>
7 #include <SALOME_InteractiveObject.hxx>
12 class SalomeApp_Application;
13 class TColStd_IndexedMapOfInteger;
14 class TColStd_MapOfInteger;
16 class SALOMEAPP_EXPORT SalomeApp_SelectionMgr : public SUIT_SelectionMgr
21 SalomeApp_SelectionMgr( SalomeApp_Application*, const bool = true );
22 virtual ~SalomeApp_SelectionMgr();
24 typedef QMap< Handle(SALOME_InteractiveObject), TColStd_IndexedMapOfInteger > MapIOOfMapOfInteger;
25 typedef QMap< QString, TColStd_IndexedMapOfInteger > MapEntryOfMapOfInteger;
27 SalomeApp_Application* application() const;
29 void selectedObjects( SALOME_ListIO&, const QString& = QString::null ) const;
30 void setSelectedObjects( const SALOME_ListIO&, const bool = false );
32 void GetIndexes( const Handle(SALOME_InteractiveObject)& IObject,
33 TColStd_IndexedMapOfInteger& theIndex );
34 void GetIndexes( const QString& theEntry,
35 TColStd_IndexedMapOfInteger& theIndex );
37 bool AddOrRemoveIndex( const Handle(SALOME_InteractiveObject)& IObject,
38 const TColStd_MapOfInteger& theIndices,
41 void selectObjects( const Handle(SALOME_InteractiveObject)& IObject,
42 TColStd_IndexedMapOfInteger theIndex, bool append );
43 void selectObjects( MapIOOfMapOfInteger theMapIO, bool append );
45 void selectedSubOwners( MapEntryOfMapOfInteger& theMap );
48 void currentSelectionChanged();
51 virtual void selectionChanged( SUIT_Selector* );
54 SalomeApp_Application* myApp;