Salome HOME
f0b778ca3ac958e8fe8b779ece408b0585e0f1e2
[samples/light.git] / src / LIGHTGUI / LIGHTGUI_OBSelector.h
1 //  LIGHT : sample (no-corba-engine) SALOME module
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  Author : Julia DOROVSKIKH
23 //  Date   : 01/01/2005
24 //  $Header$
25
26 #ifndef LIGHTGUI_OBSELECTOR_H
27 #define LIGHTGUI_OBSELECTOR_H
28
29 #include <SUIT_Selector.h>
30
31 class OB_Browser;
32
33 class LIGHTGUI_OBSelector : public SUIT_Selector
34 {
35   Q_OBJECT
36
37 public:
38   LIGHTGUI_OBSelector ( OB_Browser*, SUIT_SelectionMgr* );
39   virtual ~LIGHTGUI_OBSelector ();
40
41   OB_Browser*     browser () const;
42
43   virtual QString type () const { return "ObjectBrowser"; }
44
45 private slots:
46   void            onSelectionChanged ();
47
48 protected:
49   virtual void    getSelection ( SUIT_DataOwnerPtrList& ) const;
50   virtual void    setSelection ( const SUIT_DataOwnerPtrList& );
51
52 private:
53   OB_Browser*     myBrowser;
54 };
55
56 #endif // LIGHTGUI_OBSELECTOR_H