return ProcessEvent( new TActivateModuleEvent( modName ) );
}
+/*!
+ \fn void SalomePyQt::registerModule( const QString& modName);
+ \brief Registers module in the study tree
+*/
+
+void SalomePyQt::registerModule( const QString& modName)
+{
+ class TEvent: public SALOME_Event
+ {
+ QString myName;
+ public:
+ TEvent(const QString& name): myName(name) {}
+ virtual void Execute()
+ {
+ if ( LightApp_Application* anApp = getApplication() ) {
+ anApp->desktop()->emitMessage(QString("register_module_in_study/%1").arg(myName));
+ }
+ }
+ };
+ ProcessVoidEvent( new TEvent(modName) );
+}
+
/*!
\brief Update an Object Browser of the study.
*/
static const QString getActiveComponent();
static PyObject* getActivePythonModule();
static bool activateModule( const QString& );
+ static void registerModule( const QString& );
static void updateObjBrowser();
static void putInfo( const QString&, const int = 0 );
static const QString getActiveComponent() /ReleaseGIL/ ;
static SIP_PYOBJECT getActivePythonModule() /ReleaseGIL/ ;
static bool activateModule( const QString& ) /ReleaseGIL/ ;
+ static void registerModule( const QString& ) /ReleaseGIL/ ;
static void updateObjBrowser() /ReleaseGIL/ ;
static void putInfo( const QString&, const int = 0 ) /ReleaseGIL/ ;