Salome HOME
Merge from BR_V5_DEV 17Feb09
[samples/light.git] / src / LIGHTGUI / LIGHTGUI_Selection.h
index 97c8c309568444faa099cbe1b5c8f82d2d8062f5..3d7ac414047a5a44e1b843fb3fbda0057b1dd097 100644 (file)
@@ -1,7 +1,4 @@
-//  LIGHT : sample (no-corba-engine) SALOME module
-//
-//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//  Copyright (C) 2005-2008  OPEN CASCADE
 //
 //  This library is free software; you can redistribute it and/or
 //  modify it under the terms of the GNU Lesser General Public
 //  License along with this library; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// LIGHT : sample (no-corba-engine) SALOME module
+// File   : LIGHTGUI_Selection.h
+// Author : Julia DOROVSKIKH
 //
-//  Author : Julia DOROVSKIKH
-//  Date   : 01/01/2005
-//  $Header$
-
 #ifndef LIGHTGUI_SELECTION_H
 #define LIGHTGUI_SELECTION_H
 
-#include <QtxPopupMgr.h>
 #include <LightApp_Selection.h>
+#include <QVariant>
 
 class LightApp_SelectionMgr;
 
 class LIGHTGUI_Selection : public LightApp_Selection
 {
 public:
-  LIGHTGUI_Selection ();
-  virtual ~LIGHTGUI_Selection ();
+  LIGHTGUI_Selection();
+  virtual ~LIGHTGUI_Selection();
 
-  virtual void     init( const QString&, LightApp_SelectionMgr* );
-  virtual int      count () const;
-  virtual QtxValue param ( const int, const QString& ) const;
+  QVariant parameter( const int, const QString& ) const;
 
 private:
-  QStringList      myTypes;
+  QString  type( const int ) const;
+  bool     isEmpty( const int ) const;
+  bool     isVisible( const int ) const;
+
+  int      lineNb( const QString& ) const;
 };
 
 #endif  // LIGHTGUI_SELECTION_H