]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Add 'Catalyst' menu into ParaVis module. V8_2_BR
authorrnv <rnv@opencascade.com>
Fri, 4 Aug 2017 13:26:38 +0000 (16:26 +0300)
committerrnv <rnv@opencascade.com>
Fri, 4 Aug 2017 13:26:38 +0000 (16:26 +0300)
src/PVViewer/PVViewer_GUIElements.cxx
src/PVViewer/PVViewer_GUIElements.h

index 4421a22e887fc27c1f735f2c68a86d6d4bc7074c..1b3d11a0d1a504bc4a9dddf97b02d415aa591aa8 100644 (file)
@@ -68,6 +68,7 @@ PVViewer_GUIElements::PVViewer_GUIElements(QMainWindow* desk) :
   sourcesMenu(0),
   filtersMenu(0),
   macrosMenu(0),
+  catalystMenu(0),
   myPVWidgetsFlag(false)
 {
 }
@@ -118,6 +119,12 @@ void PVViewer_GUIElements::buildPVWidgets()
       pqParaViewMenuBuilders::buildMacrosMenu(*macrosMenu);
     }
 
+    // Catalyst Menu
+    if (!catalystMenu) {
+      catalystMenu = new QMenu(0);
+      pqParaViewMenuBuilders::buildCatalystMenu(*catalystMenu);
+    }
+
     mainToolBar = new pqMainControlsToolbar(myDesktop)
       << pqSetName("MainControlsToolbar");
     mainToolBar->layout()->setSpacing(0);
@@ -336,6 +343,11 @@ QMenu* PVViewer_GUIElements::getMacrosMenu()  {
   return macrosMenu;
 }
 
+QMenu* PVViewer_GUIElements::getCatalystMenu()  {
+  buildPVWidgets();
+  return catalystMenu;
+}
+
 void PVViewer_GUIElements::publishExistingSources() {
   vtkSMSessionProxyManager* pxm = pqActiveObjects::instance().proxyManager();
   pqServerManagerModel* smmodel = pqApplicationCore::instance()->getServerManagerModel();
index 1d36c612cfaffc7a2d5d19cbd7c70b5b02628443..57c2e735e1f0df5553280ece6d082e9e5e915f1a 100644 (file)
@@ -53,6 +53,7 @@ public:
   QMenu* getFiltersMenu();
   QMenu* getSourcesMenu();
   QMenu* getMacrosMenu();
+  QMenu* getCatalystMenu();
 
   pqVCRToolbar* getVCRToolbar();
   pqAnimationTimeToolbar* getTimeToolbar();
@@ -82,6 +83,7 @@ private:
   QMenu* sourcesMenu;
   QMenu* filtersMenu;
   QMenu* macrosMenu;
+  QMenu* catalystMenu;
 
   // Toolbars also need to be instanciated early:
   QToolBar* mainToolBar;