Salome HOME
PVViewer: minor: new method setVCRTimeToolBar visibility (for MEDCalc)
authorabn <adrien.bruneton@cea.fr>
Thu, 7 Jul 2016 08:12:25 +0000 (10:12 +0200)
committerabn <adrien.bruneton@cea.fr>
Thu, 7 Jul 2016 08:12:25 +0000 (10:12 +0200)
src/PVViewer/PVViewer_GUIElements.cxx
src/PVViewer/PVViewer_GUIElements.h

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();
index 41a05831469f70d58daff394e6e7c75d8e34632b..dcfba68a9ca4942b315ea6c2055c2c72d55d6757 100644 (file)
@@ -60,6 +60,8 @@ public:
   void setToolBarEnabled(bool enabled);
   QList<QToolBar*> getToolbars();
 
+  void setVCRTimeToolBarVisible(bool show);
+
 private:
   PVViewer_GUIElements(QMainWindow* desk);
   virtual ~PVViewer_GUIElements() {}