From: vsv Date: Mon, 30 Nov 2009 12:30:39 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: PARAVIS_2009_FINAL X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_PARAVIS_DEV;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index c0c990868..3ab519cb0 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -3092,7 +3092,7 @@ bool LightApp_Application::openAction( const int choice, const QString& aName ) return res; } -void LightApp_Application::clearKnownViewManagers() +QStringList LightApp_Application::viewManagersTypes() const { QStringList aTypesList; #ifndef DISABLE_GLVIEWER @@ -3114,7 +3114,15 @@ void LightApp_Application::clearKnownViewManagers() aTypesList< aMgrList; viewManagers( aMgrList ); foreach (SUIT_ViewManager* aMgr, aMgrList) { diff --git a/src/LightApp/LightApp_Application.h b/src/LightApp/LightApp_Application.h index 2095dd097..d3c24bd17 100644 --- a/src/LightApp/LightApp_Application.h +++ b/src/LightApp/LightApp_Application.h @@ -147,8 +147,11 @@ public: 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(); diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 2452f6a4b..cb672b095 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -1524,6 +1524,23 @@ SalomeApp_NoteBookDlg* SalomeApp_Application::getNoteBook() const 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: + *
+ * + *
+ *
+ * + * + * + *
+ */ void SalomeApp_Application::fillExtActions() { myExtActions.clear(); @@ -1558,6 +1575,9 @@ void SalomeApp_Application::fillExtActions() } } +/*! + * Called when extra action is selected + */ void SalomeApp_Application::onExtAction() { QAction* aAction = ::qobject_cast(sender());