*/
void LightApp_Application::onSelection()
{
- MESSAGE("onSelection_1")
+ //MESSAGE("onSelection")
onSelectionChanged();
- MESSAGE("onSelection_2")
if ( activeModule() && activeModule()->inherits( "LightApp_Module" ) )
((LightApp_Module*)activeModule())->selectionChanged();
- MESSAGE("onSelection_3")
}
/*!
/*!
* Class: SALOME_PYQT_BorrowedDataObjectLight
- * Description: LIGHT PYTHON module's Borrowed data object: reference objects from other modules
+ * Description: LIGHT PYTHON module's Borrowed data object: reference objects from other modules.
+ * Used to propagate selection in a light module client of other modules publishing objects in study.
+ * (copied from SALOME_PYQT_DataObjectLight)
*/
//=================================================================================
/*!
* SALOME_PYQT_BorrowedDataObjectLight - PYTHON LIGHT module's data object class
+ * for objects created by other modules and referenced in a light module.
+ * Used to propagate selection in a light module client of other modules publishing objects in study.
+ * (copied from SALOME_PYQT_DataObjectLight)
*/
class SALOME_PYQT_LIGHT_EXPORT SALOME_PYQT_BorrowedDataObjectLight : public virtual LightApp_DataObject
{
return obj;
}
+/*!
+ \brief not used yet
+*/
void SALOME_PYQT_ModuleLight::getSelected( DataObjectList& ) const
{
MESSAGE("getSelected");
}
+/*!
+ \brief not used yet
+*/
unsigned long SALOME_PYQT_ModuleLight::getModifiedTime() const
{
MESSAGE("getModifiedTime");
-
}
-
+/*!
+ \brief not used yet
+*/
SUIT_DataObject* SALOME_PYQT_ModuleLight::root() const
{
MESSAGE("root");
-
}
-
+/*!
+ \brief Used to notify a Python light module of a modification of selection in study (propagation of a remote selection)
+ \param list of study entries
+*/
void SALOME_PYQT_ModuleLight::setSelected( const QStringList& entries, const bool isUnused)
{
MESSAGE("setSelected");
return myHelper->selectionUpdated(entries);
}
+/*!
+ \brief called by Python module to notify a list of study entries locally selected (for selection propagation)
+ \param list of study entries
+*/
void SALOME_PYQT_ModuleLight::setLocalSelected(const QStringList & entries)
{
MESSAGE("setLocalSelected");
}
/*!
- *
+ \fn bool SalomePyQt::activateManagerAndView( const int id );
+ \brief Activate view manager and view: useful for a view embedded in a module main Window
+ \param id window identifier
+ \return \c true if operation is completed successfully and \c false otherwise
*/
class TActivateViewManagerAndView: public SALOME_Event
if ( wnd )
{
LightApp_Application* app = getApplication();
- app->desktop()->windowActivated(wnd);
- //app->setActiveViewManager(wnd->getViewManager());
+ app->desktop()->windowActivated(wnd); // equivalent to app->setActiveViewManager(wnd->getViewManager())
wnd->setFocus();
myResult = true;
}