]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for improvement 0017606 (EDF 168: Is it possible to customize the tooltip of... BR_V5_IMP_P8
authormzn <mzn@opencascade.com>
Tue, 23 Dec 2008 11:00:23 +0000 (11:00 +0000)
committermzn <mzn@opencascade.com>
Tue, 23 Dec 2008 11:00:23 +0000 (11:00 +0000)
idl/SALOME_Component.idl
src/Container/SALOME_Component_i.hxx

index 0619ebfa0c6a4efb8b103b439b008553e37ce921..48584eb8f66c7ad71f83dc5e5387de5dcf5822e7 100644 (file)
@@ -26,6 +26,7 @@
 #ifndef _SALOME_COMPONENT_IDL_
 #define _SALOME_COMPONENT_IDL_
 
+#include "SALOMEDS.idl"
 #include "SALOME_Exception.idl"
 
 /*! \brief
@@ -388,6 +389,25 @@ module Engines
     */
     Engines::Salome_file setOutputFileToService(in string service_name,
                                                in string Salome_file_name)      raises(SALOME::SALOME_Exception);
+    /*!
+      Returns true if the component provides custom information about its objects, false otherwise.
+      Should be redefined in the certain component to return true in case of this
+      component provides such information.
+    */
+    boolean hasObjectInfo();
+    
+    /*!
+      This method is used to get the custom information about the given object.
+      Should be redefined in the certain component in case of this
+      component provides such information.
+      It is worth using this method only if hasObjectInfo() method returns true.
+      
+      \param entry object's entry.
+      \param studyId study id
+
+      \return an information about the given object.
+    */
+    string getObjectInfo(in long studyId, in string entry);
   } ;
 
   interface Parallel_Component : Engines::Component {
index 3d75be638bbd2604cd5d98016e3e6fdcbf25f9dd..1ca0541e135a2892a856152c4411b9de73f092e7 100644 (file)
@@ -117,6 +117,11 @@ public:
  virtual void checkOutputFilesToService(const char* service_name);
  virtual Engines::Salome_file_ptr setOutputFileToService(const char* service_name, 
                                                         const char* Salome_file_name);
+
+  // Object information
+  virtual bool hasObjectInfo() { return false; }
+  virtual char* getObjectInfo(CORBA::Long studyId, const char* entry) { return ""; }
+  
   // --- local C++ methods
 
   PortableServer::ObjectId * getId();