Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
[modules/shaper.git] / src / ModuleBase / ModuleBase_IWorkshop.h
1 // File:        ModuleBase_IWorkshop.h
2 // Created:     2 June 2014
3 // Author:      Vitaly Smetannikov
4
5 #ifndef ModuleBase_IWorkshop_H
6 #define ModuleBase_IWorkshop_H
7
8 #include "ModuleBase.h"
9
10 #include <ModelAPI_Feature.h>
11
12 #include <AIS_InteractiveContext.hxx>
13
14 #include <QObject>
15
16 /**
17 * Class which provides access to Workshop object serveces
18 */
19 class MODULEBASE_EXPORT ModuleBase_IWorkshop: public QObject
20 {
21 Q_OBJECT
22 public:
23   ModuleBase_IWorkshop(QObject* theParent):QObject(theParent) {}
24
25   virtual ~ModuleBase_IWorkshop() {};
26
27   //! Returns AIS_InteractiveContext from current OCCViewer
28   virtual Handle(AIS_InteractiveContext) AISContext() const = 0;
29
30   //! Returns list of currently selected data objects
31   virtual QList<FeaturePtr> selectedFeatures() const = 0; 
32
33 signals:
34   void selectionChanged();
35 };
36
37 #endif