-// 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 "LIGHTGUI_Exports.h"
-class SalomeApp_SelectionMgr;
+#include <LightApp_Selection.h>
-class LIGHTGUI_Selection : public QtxPopupMgr::Selection
+class LIGHT_EXPORT LIGHTGUI_Selection : public LightApp_Selection
{
public:
- LIGHTGUI_Selection ( const QString&, SalomeApp_SelectionMgr* );
- virtual ~LIGHTGUI_Selection ();
+ LIGHTGUI_Selection();
+ virtual ~LIGHTGUI_Selection();
- virtual int count () const;
- virtual QtxValue param ( const int, const QString& ) const;
+ QVariant parameter( const int, const QString& ) const;
private:
- QString myPopupClient;
- 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