// 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
#ifndef SMESHGUI_SELECTION_HeaderFile
#define SMESHGUI_SELECTION_HeaderFile
-#include <QtxPopupMgr.h>
+#include "SMESH_SMESHGUI.hxx"
+#include "LightApp_Selection.h"
#include "SALOMEDSClient_definitions.hxx"
-#include "SUIT_DataOwner.h"
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SALOMEDSClient_Study;
-class SalomeApp_DataOwner;
+class LightApp_DataOwner;
class SMESH_Actor;
-class SMESHGUI_Selection : public QtxPopupMgr::Selection
+class SMESHGUI_EXPORT SMESHGUI_Selection : public LightApp_Selection
{
public:
- SMESHGUI_Selection( const QString&, SalomeApp_SelectionMgr* );
+ SMESHGUI_Selection();
virtual ~SMESHGUI_Selection();
+ virtual void init( const QString&, LightApp_SelectionMgr* );
virtual QtxValue param( const int , const QString& paramName ) const;
-
- virtual int count() const;
+ virtual void processOwner( const LightApp_DataOwner* );
// got from object, not from actor
+ virtual bool isAutoColor( int ind ) const;
virtual int numberOfNodes( int ind ) const;
virtual QVariant isComputable( int ind ) const;
virtual QVariant hasReference( int ind ) const;
SMESH_Actor* getActor( int ind ) const;
- static int type( SalomeApp_DataOwner* owner, _PTR(Study) study);
+ static int type( const QString&, _PTR(Study) );
static QString typeName( const int type);
private:
- QString myPopupClient;
- QStringList myTypes;
- SUIT_DataOwnerPtrList myDataOwners;
+ QStringList myTypes;
+ QPtrList<SMESH_Actor> myActors;
};
#endif