Salome HOME
Update copyrights
[samples/light.git] / src / LIGHTGUI / LIGHTGUI_Selection.h
index 2ce070b0f4441ededbfa298c9c9a91169532126d..ce10ff742d44bffa862e595c4d9f9dbc5e048adc 100644 (file)
@@ -1,48 +1,45 @@
-//  LIGHT : sample (no-corba-engine) SALOME module
+// Copyright (C) 2005-2019  OPEN CASCADE
 //
-//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
 //
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU Lesser General Public
-//  License as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// You should have received a copy 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
 //
-//  You should have received a copy 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//  Author : Julia DOROVSKIKH
-//  Date   : 01/01/2005
-//  $Header$
+// File   : LIGHTGUI_Selection.h
+// Author : Julia DOROVSKIKH
 
 #ifndef LIGHTGUI_SELECTION_H
 #define LIGHTGUI_SELECTION_H
 
-#include <QtxPopupMgr.h>
-#include <LightApp_Selection.h>
+#include "LIGHTGUI_Exports.h"
 
-class LightApp_SelectionMgr;
+#include <LightApp_Selection.h>
 
-class LIGHTGUI_Selection : public LightApp_Selection
+class LIGHT_EXPORT 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