Salome HOME
Has functionality from SalomeApp without dependency from CORBA
[modules/gui.git] / src / LightApp / LightApp_OCCSelector.h
1 #ifndef LIGHTAPP_OCCSELECTOR_H
2 #define LIGHTAPP_OCCSELECTOR_H
3
4 #include "LightApp.h"
5
6 #include <SUIT_Selector.h>
7
8 #include <OCCViewer_ViewModel.h>
9
10 class Handle_AIS_InteractiveObject;
11
12 class LIGHTAPP_EXPORT LightApp_OCCSelector : public SUIT_Selector
13 {
14   Q_OBJECT
15
16 public:
17   LightApp_OCCSelector( OCCViewer_Viewer*, SUIT_SelectionMgr* );
18   virtual ~LightApp_OCCSelector();
19
20   OCCViewer_Viewer* viewer() const;
21
22   virtual QString   type() const { return OCCViewer_Viewer::Type(); }
23
24 private slots:
25   virtual void      onSelectionChanged();
26
27 protected:
28   virtual void      getSelection( SUIT_DataOwnerPtrList& ) const;
29   virtual void      setSelection( const SUIT_DataOwnerPtrList& );
30
31   QString           entry( const Handle_AIS_InteractiveObject& ) const;
32
33 private:
34   OCCViewer_Viewer* myViewer;
35 };
36
37 #endif