-// Copyright (C) 2014-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2024 CEA, EDF, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <vtkSMSessionProxyManager.h>
#include <vtkSMProxyIterator.h>
+#include <vtkPVConfig.h>
+
#include <QAction>
#include <QCoreApplication>
#include <QLayout>
#include <QMenu>
#include <QToolBar>
-
PVViewer_GUIElements * PVViewer_GUIElements::theInstance = 0;
-PVViewer_GUIElements::PVViewer_GUIElements(QMainWindow* desk) :
- myDesktop(desk),
+PVViewer_GUIElements::PVViewer_GUIElements(QMainWindow* desktop) :
propertiesPanel(0),
pipelineBrowserWidget(0),
pipelineModel(0),
filtersMenu(0),
macrosMenu(0),
catalystMenu(0),
- myPVWidgetsFlag(false)
+ mainToolBar(0),
+ vcrToolbar(0),
+ timeToolbar(0),
+ colorToolbar(0),
+ reprToolbar(0),
+ cameraToolbar(0),
+ axesToolbar(0),
+ macrosToolbar(0),
+ commonToolbar(0),
+ dataToolbar(0),
+ myDesktop(desktop),
+ myPVWidgetsFlag(false),
+ mainAction(0),
+ vcrAction(0),
+ timeAction(0),
+ colorAction(0),
+ reprAction(0),
+ cameraAction(0),
+ axesAction(0),
+ macrosAction(0),
+ commonAction(0),
+ dataAction(0)
{
}
// Catalyst Menu
if (!catalystMenu) {
catalystMenu = new QMenu(0);
+#if PARAVIEW_VERSION_MAJOR==5 && PARAVIEW_VERSION_MINOR<9
+ pqParaViewMenuBuilders::buildCatalystMenu(*catalystMenu, myDesktop);
+#else
pqParaViewMenuBuilders::buildCatalystMenu(*catalystMenu);
+#endif
}
mainToolBar = new pqMainControlsToolbar(myDesktop)
}
void PVViewer_GUIElements::setToolBarVisible(bool show)
-{
+{
QCoreApplication::processEvents();
if (!myPVWidgetsFlag)
return;