]> SALOME platform Git repositories - modules/gui.git/blob - src/SalomeApp/SalomeApp_OBSelector.h
Salome HOME
New Help for KERNEL & GUI.
[modules/gui.git] / src / SalomeApp / SalomeApp_OBSelector.h
1 #ifndef SALOMEAPP_OBSELECTOR_H
2 #define SALOMEAPP_OBSELECTOR_H
3
4 #include "SalomeApp.h"
5
6 #include <SUIT_Selector.h>
7
8 class OB_Browser;
9 class SalomeApp_DataObject;
10
11 class SALOMEAPP_EXPORT SalomeApp_OBSelector : public SUIT_Selector
12 {
13   Q_OBJECT
14
15 public:
16   SalomeApp_OBSelector( OB_Browser*, SUIT_SelectionMgr* );
17   virtual ~SalomeApp_OBSelector();
18
19   OB_Browser*  browser() const;
20
21   /*!Return "ObjectBrowser"*/
22   virtual QString type() const { return "ObjectBrowser"; }
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   void         fillEntries( QMap<QString, SalomeApp_DataObject*>& );
33
34 private:
35   OB_Browser*  myBrowser;
36 };
37
38 #endif