Salome HOME
There were added new version of method type returning type by string entry
authorasl <asl@opencascade.com>
Thu, 7 Jul 2005 09:07:10 +0000 (09:07 +0000)
committerasl <asl@opencascade.com>
Thu, 7 Jul 2005 09:07:10 +0000 (09:07 +0000)
src/SMESHGUI/SMESHGUI_Selection.cxx
src/SMESHGUI/SMESHGUI_Selection.h

index 5a060f295a9e82289ada685df68f8d710ef21a18..912d1a0d44426be93faacf7693cc7aa6b6c4ff2c 100644 (file)
@@ -313,17 +313,21 @@ QVariant SMESHGUI_Selection::isVisible( int ind ) const
   return QVariant( false, 0 );
 }
 
+//=======================================================================
+//function : type
+//purpose  :
+//=======================================================================
+int SMESHGUI_Selection::type( SalomeApp_DataOwner* owner, _PTR(Study) study )
+{
+  return type( owner->entry(), study );
+}
 
 //=======================================================================
 //function : type
 //purpose  : 
 //=======================================================================
-
-int SMESHGUI_Selection::type( SalomeApp_DataOwner* owner,
-                              _PTR(Study) study )
+int SMESHGUI_Selection::type( const QString& entry, _PTR(Study) study )
 {
-  QString entry = owner->entry();
-
   _PTR(SObject) obj (study->FindObjectID(entry.latin1()));
   if( !obj )
     return -1;
index 7137ebaef333b72e8adc07c0cac80f43688e9e69..7fccc4e9b2656b3b5017302e562b4e8ef274ac44 100644 (file)
@@ -63,7 +63,8 @@ public:
   
   SMESH_Actor* getActor( int ind ) const;
 
-  static int       type( SalomeApp_DataOwner* owner, _PTR(Study) study);
+  static int       type( const QString&, _PTR(Study) );
+  static int       type( SalomeApp_DataOwner* owner, _PTR(Study) );
   static QString   typeName( const int type);
 
 private: