// 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<QDockWidget*> activeDocks = aDesktop->findChildren<QDockWidget*>();
QList<QMenu*> activeMenus = aDesktop->findChildren<QMenu*>();
#include <pqViewManager.h>
#include <pqDataQueryReaction.h>
#include <pqRecentFilesMenu.h>
+#include <pqPipelineBrowserWidget.h>
#include "PVGUI_Tools.h"
#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);