Salome HOME
50a783ecb04e98fa38a3d26e71eea5433f928359
[modules/gui.git] / src / LightApp / LightApp_GLSelector.h
1 #ifndef LIGHTAPP_GLSELECTOR_H
2 #define LIGHTAPP_GLSELECTOR_H
3
4 #include "LightApp.h"
5
6 #include <SUIT_Selector.h>
7
8 #include <GLViewer_Viewer2d.h>
9
10 class LIGHTAPP_EXPORT LightApp_GLSelector : public SUIT_Selector
11 {
12   Q_OBJECT
13
14 public:
15   LightApp_GLSelector( GLViewer_Viewer2d*, SUIT_SelectionMgr* );
16   virtual ~LightApp_GLSelector();
17
18   GLViewer_Viewer2d* viewer() const;
19
20   virtual QString type() const { return GLViewer_Viewer2d::Type(); }
21
22 private slots:
23   void                onSelectionChanged();
24
25 protected:
26   virtual void        getSelection( SUIT_DataOwnerPtrList& ) const;
27   virtual void        setSelection( const SUIT_DataOwnerPtrList& );
28
29 private:
30   GLViewer_Viewer2d*  myViewer;
31 };
32
33 #endif