X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_SelectionMgr.h;h=93f19284c72f34fdfe66899494b2933a578c6c86;hb=47c18d4de2719126f6b045b5c37525cd8f170aa1;hp=91b4c255fea2d71ddbf482ace5053820048359cf;hpb=2c7c361d0ab4687935496e4bb6fe2b2e12702fc9;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_SelectionMgr.h b/src/XGUI/XGUI_SelectionMgr.h index 91b4c255f..93f19284c 100644 --- a/src/XGUI/XGUI_SelectionMgr.h +++ b/src/XGUI/XGUI_SelectionMgr.h @@ -2,11 +2,17 @@ #define XGUI_SelectionMgr_H #include "XGUI.h" -#include "XGUI_Constants.h" +#include #include +#include + +#include +#include +#include class XGUI_Workshop; class XGUI_ObjectsBrowser; +class XGUI_Selection; /**\class XGUI_SelectionMgr * \ingroup GUI @@ -20,24 +26,34 @@ public: XGUI_SelectionMgr(XGUI_Workshop* theParent); virtual ~XGUI_SelectionMgr(); - //! Returns list of currently selected objects - QFeatureList selectedData() const { return mySelectedData; } + XGUI_Selection* selection() const { return mySelection; } + + //! 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; - void connectObjectBrowser(XGUI_ObjectsBrowser* theOB); + //! Returns list of currently selected shapes + //void selectedShapes(NCollection_List& theList) const; + + //! Connects the manager to all viewers accessible by Workshop + void connectViewers(); signals: //! Emited when selection in a one of viewers was changed void selectionChanged(); -public slots: - void onSelectionChanged(); +private slots: + void onObjectBrowserSelection(); + void onViewerSelection(); private: XGUI_Workshop* myWorkshop; - XGUI_ObjectsBrowser* myObjectBrowser; - - //! List of selected features - QFeatureList mySelectedData; + XGUI_Selection* mySelection; }; #endif