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