1 // File: XGUI_ModuleConnector.cpp
2 // Created: 3 June 2014
3 // Author: Vitaly Smetannikov
5 #include "XGUI_ModuleConnector.h"
6 #include "XGUI_Workshop.h"
7 #include "XGUI_ViewerProxy.h"
8 #include "XGUI_SelectionMgr.h"
9 #include "XGUI_Selection.h"
11 XGUI_ModuleConnector::XGUI_ModuleConnector(XGUI_Workshop* theWorkshop)
12 : ModuleBase_IWorkshop(theWorkshop),
13 myWorkshop(theWorkshop)
15 XGUI_SelectionMgr* aSelector = myWorkshop->selector();
16 connect(aSelector, SIGNAL(selectionChanged()), this, SIGNAL(selectionChanged()));
19 XGUI_ModuleConnector::~XGUI_ModuleConnector()
23 Handle(AIS_InteractiveContext) XGUI_ModuleConnector::AISContext() const
25 return myWorkshop->viewer()->AISContext();
28 QList<ObjectPtr> XGUI_ModuleConnector::selectedObjects() const
30 return myWorkshop->selector()->selection()->selectedObjects();
33 ModuleBase_IModule* XGUI_ModuleConnector::module() const
35 return myWorkshop->module();