return res;
}
-void LightApp_Application::clearKnownViewManagers()
+QStringList LightApp_Application::viewManagersTypes() const
{
QStringList aTypesList;
#ifndef DISABLE_GLVIEWER
aTypesList<<VTKViewer_Viewer::Type();
#endif
#endif
-
+ return aTypesList;
+}
+/*!
+ * Removes all view managers of known types
+ * Other view managers are ignored
+ */
+void LightApp_Application::clearKnownViewManagers()
+{
+ QStringList aTypesList = viewManagersTypes();
QList<SUIT_ViewManager*> aMgrList;
viewManagers( aMgrList );
foreach (SUIT_ViewManager* aMgr, aMgrList) {
virtual void updateDesktopTitle();
- // Removes ViewManagers only of known type
- virtual void clearKnownViewManagers();
+ //! Returns list of view manager types which are supported by this application
+ QStringList viewManagersTypes() const;
+
+ //! Removes ViewManagers only of known type
+ virtual void clearKnownViewManagers();
signals:
void studyOpened();
return myNoteBook;
}
+/*!
+ * Define extra actions defined in module definition XML file.
+ * Additional popup items sections can be defined by parameter "popupitems".
+ * Supported attributes:
+ * title - title of menu item,
+ * attributelocalid - AttributeLocalId defined for selected data item where menu command has to be applied,
+ * method - method which has to be called when menu item is selected
+ * Example:
+ * <section name="MODULENAME">
+ * <parameter name="popupitems" value="menuitem1:menuitem2:..."/>
+ * </section>
+ * <section name="importmed">
+ * <parameter name="title" value="My menu"/>
+ * <parameter name="attributelocalid" value="19"/>
+ * <parameter name="method" value="nameOfModuleMethod"/>
+ * </section>
+ */
void SalomeApp_Application::fillExtActions()
{
myExtActions.clear();
}
}
+/*!
+ * Called when extra action is selected
+ */
void SalomeApp_Application::onExtAction()
{
QAction* aAction = ::qobject_cast<QAction*>(sender());