23 #ifndef LIGHTAPP_SELECTIONMGR_H
24 #define LIGHTAPP_SELECTIONMGR_H
30 #include <QtCore/QTime>
32 #ifndef DISABLE_SALOMEOBJECT
35 #include <NCollection_DataMap.hxx>
37 #include <TColStd_IndexedMapOfInteger.hxx>
38 #include <TColStd_MapOfInteger.hxx>
41 class TCollection_AsciiString;
43 #include <QStringList>
64 #ifndef DISABLE_SALOMEOBJECT
73 TColStd_IndexedMapOfInteger& theIndex );
74 void GetIndexes(
const QString& theEntry,
75 TColStd_IndexedMapOfInteger& theIndex );
79 const TColStd_MapOfInteger& theIndices,
83 TColStd_IndexedMapOfInteger theIndex,
bool append );
88 void selectedObjects( QStringList&,
const QString& = QString(),
const bool =
true )
const;
89 void setSelectedObjects(
const QStringList&,
const bool =
false );
92 void clearSelectionCache();
93 bool isSelectionCacheEnabled()
const;
94 void setSelectionCacheEnabled(
bool );
102 #ifndef DISABLE_SALOMEOBJECT
105 QStringList selectionCache(
const QString& = QString() )
const;
107 bool isActualSelectionCache(
const QString& = QString() )
const;
109 QStringList selectorTypes()
const;
112 #ifndef DISABLE_SALOMEOBJECT
115 typedef QString SelObject;
Handle(TDocStd_Application) CAF_Application
Get OCAF application.
Definition: CAF_Application.cxx:97
#define LIGHTAPP_EXPORT
Definition: LightApp.h:36
Definition: LightApp_Application.h:77
Definition: LightApp_SelectionMgr.h:53
TimeMap myCacheTimes
Definition: LightApp_SelectionMgr.h:127
NCollection_DataMap< Handle(SALOME_InteractiveObject), TColStd_IndexedMapOfInteger > MapIOOfMapOfInteger
Definition: LightApp_SelectionMgr.h:65
typedef Handle(SALOME_InteractiveObject) SelObject
void selectedObjects(SALOME_ListIO &, const QString &=QString(), const bool=true, const bool sole=false) const
bool myCacheState
Definition: LightApp_SelectionMgr.h:126
QList< SelObject > SelList
Definition: LightApp_SelectionMgr.h:117
void setSelectedObjects(const SALOME_ListIO &, const bool=false)
QMap< QString, SelList > CacheMap
Definition: LightApp_SelectionMgr.h:119
NCollection_DataMap< TCollection_AsciiString, TColStd_IndexedMapOfInteger > MapEntryOfMapOfInteger
Definition: LightApp_SelectionMgr.h:66
CacheMap myCacheSelection
Definition: LightApp_SelectionMgr.h:128
QTime myTimeStamp
Definition: LightApp_SelectionMgr.h:124
QMap< QString, QTime > TimeMap
Definition: LightApp_SelectionMgr.h:118
void currentSelectionChanged()
LightApp_Application * myApp
Definition: LightApp_SelectionMgr.h:122
Definition: SALOME_ListIO.hxx:29
Manage list of SUIT_DataOwnerPtr.
Definition: SUIT_DataOwner.h:67
Definition: SUIT_SelectionMgr.h:39
virtual void setSelected(const SUIT_DataOwnerPtrList &, const bool=false)
Definition: SUIT_SelectionMgr.cxx:130
Definition: SUIT_Selector.h:44