From: mzn Date: Tue, 23 Dec 2008 11:00:23 +0000 (+0000) Subject: Fix for improvement 0017606 (EDF 168: Is it possible to customize the tooltip of... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=287b1e570626a13a51e8b343012422e8323e542a;p=modules%2Fkernel.git Fix for improvement 0017606 (EDF 168: Is it possible to customize the tooltip of the objects in the browser?); --- diff --git a/idl/SALOME_Component.idl b/idl/SALOME_Component.idl index 0619ebfa0..48584eb8f 100644 --- a/idl/SALOME_Component.idl +++ b/idl/SALOME_Component.idl @@ -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 { diff --git a/src/Container/SALOME_Component_i.hxx b/src/Container/SALOME_Component_i.hxx index 3d75be638..1ca0541e1 100644 --- a/src/Container/SALOME_Component_i.hxx +++ b/src/Container/SALOME_Component_i.hxx @@ -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();