From: abn Date: Tue, 28 Oct 2014 10:00:02 +0000 (+0100) Subject: Fixed: contextual menu in pipeline browser + VCR controls X-Git-Tag: V7_5_0b1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c657676cc5d7be83aedffbf8da5391469c4408e;p=modules%2Fparavis.git Fixed: contextual menu in pipeline browser + VCR controls --- diff --git a/src/PVGUI/PVGUI_Module.cxx b/src/PVGUI/PVGUI_Module.cxx index 525d2777..9f8165a3 100644 --- a/src/PVGUI/PVGUI_Module.cxx +++ b/src/PVGUI/PVGUI_Module.cxx @@ -380,11 +380,14 @@ void PVGUI_Module::initialize( CAM_Application* app ) // Behaviors and connection must be instanciated *after* widgets are in place // In PARAVIS module we do not wait for PVViewer_ViewWindow to be instanciated to have this: PVViewer_ViewManager::ParaviewInitBehaviors(true, aDesktop); - PVViewer_ViewManager::ConnectToExternalPVServer(aDesktop); pvCreateActions(); - pvCreateToolBars(); pvCreateMenus(); + pvCreateToolBars(); + + // Connect after toolbar creation, etc ... as some activations of the toolbars is triggered + // by the ServerConnection event: + PVViewer_ViewManager::ConnectToExternalPVServer(aDesktop); QList activeDocks = aDesktop->findChildren(); QList activeMenus = aDesktop->findChildren(); diff --git a/src/PVGUI/PVGUI_Module_actions.cxx b/src/PVGUI/PVGUI_Module_actions.cxx index 271c01aa..303d4ff7 100644 --- a/src/PVGUI/PVGUI_Module_actions.cxx +++ b/src/PVGUI/PVGUI_Module_actions.cxx @@ -82,6 +82,7 @@ #include #include #include +#include #include "PVGUI_Tools.h" @@ -536,6 +537,10 @@ void PVGUI_Module::pvCreateMenus() #endif createMenu( AboutParaViewId, aPVHelpMnu ); + // -- Context menu in the pipeline browser + pqPipelineBrowserWidget * pq = guiElements->getPipelineBrowserWidget(); + pqParaViewMenuBuilders::buildPipelineBrowserContextMenu( *pq ); + // Reload configuration to populate dynamic menus from ParaView: PVViewer_ViewManager::ParaviewLoadConfigurations(true);