X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FXGUI%2FXGUI_SelectionMgr.h;h=0519e29d019ef11b8f750ef3e6363b43de055e71;hb=037c2e978c242407cc2e4357a84c3ffead3e877d;hp=b75989abbfb6640bc90ec681c263cc800eb8c4c2;hpb=af3e1c3206761f41cbdf56b5ca4da2ac20c62193;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_SelectionMgr.h b/src/XGUI/XGUI_SelectionMgr.h index b75989abb..0519e29d0 100644 --- a/src/XGUI/XGUI_SelectionMgr.h +++ b/src/XGUI/XGUI_SelectionMgr.h @@ -2,7 +2,7 @@ #define XGUI_SelectionMgr_H #include "XGUI.h" -#include "XGUI_Constants.h" +#include #include #include @@ -12,6 +12,7 @@ class XGUI_Workshop; class XGUI_ObjectsBrowser; +class XGUI_Selection; /**\class XGUI_SelectionMgr * \ingroup GUI @@ -25,17 +26,7 @@ public: XGUI_SelectionMgr(XGUI_Workshop* theParent); virtual ~XGUI_SelectionMgr(); - //! Returns list of currently selected data objects - QFeatureList selectedFeatures() const; - - //! Returns list of currently selected QModelIndexes - QModelIndexList selectedIndexes() const; - - //! Returns list of currently selected AIS objects - void selectedAISObjects(AIS_ListOfInteractive& theList) const; - - //! Returns list of currently selected shapes - void selectedShapes(NCollection_List& theList) const; + XGUI_Selection* selection() const { return mySelection; } //! Connects the manager to all viewers accessible by Workshop void connectViewers(); @@ -49,8 +40,8 @@ private slots: void onViewerSelection(); private: - XGUI_Workshop* myWorkshop; + XGUI_Selection* mySelection; }; #endif