Salome HOME
PVViewer: minor: new method setVCRTimeToolBar visibility (for MEDCalc)
[modules/gui.git] / src / PVViewer / PVViewer_GUIElements.cxx
index 6061715ca51860a3e9a84972c263b785dd714d42..2a6d260ff815f0f1d7482d945c0c2faae0ebaf81 100644 (file)
@@ -224,12 +224,9 @@ void PVViewer_GUIElements::setToolBarVisible(bool show)
   mainAction->setChecked(!show);
   mainAction->setVisible(show);
   mainAction->trigger();
-  vcrAction->setChecked(!show);
-  vcrAction->setVisible(show);
-  vcrAction->trigger();
-  timeAction->setChecked(!show);
-  timeAction->setVisible(show);
-  timeAction->trigger();
+
+  setVCRTimeToolBarVisible(show);
+
   colorAction->setChecked(!show);
   colorAction->setVisible(show);
   colorAction->trigger();
@@ -253,6 +250,16 @@ void PVViewer_GUIElements::setToolBarVisible(bool show)
   dataAction->trigger();
 }
 
+void PVViewer_GUIElements::setVCRTimeToolBarVisible(bool show)
+{
+  vcrAction->setChecked(!show);
+  vcrAction->setVisible(show);
+  vcrAction->trigger();
+  timeAction->setChecked(!show);
+  timeAction->setVisible(show);
+  timeAction->trigger();
+}
+
 QList<QToolBar*> PVViewer_GUIElements::getToolbars()
 {
   buildPVWidgets();