From: abn Date: Thu, 7 Jul 2016 08:12:25 +0000 (+0200) Subject: PVViewer: minor: new method setVCRTimeToolBar visibility (for MEDCalc) X-Git-Tag: V8_1_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=2eb0753e65ecc3327b7d1fae6ad8dab16e35a814;p=modules%2Fgui.git PVViewer: minor: new method setVCRTimeToolBar visibility (for MEDCalc) --- diff --git a/src/PVViewer/PVViewer_GUIElements.cxx b/src/PVViewer/PVViewer_GUIElements.cxx index 6061715ca..2a6d260ff 100644 --- a/src/PVViewer/PVViewer_GUIElements.cxx +++ b/src/PVViewer/PVViewer_GUIElements.cxx @@ -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 PVViewer_GUIElements::getToolbars() { buildPVWidgets(); diff --git a/src/PVViewer/PVViewer_GUIElements.h b/src/PVViewer/PVViewer_GUIElements.h index 41a058314..dcfba68a9 100644 --- a/src/PVViewer/PVViewer_GUIElements.h +++ b/src/PVViewer/PVViewer_GUIElements.h @@ -60,6 +60,8 @@ public: void setToolBarEnabled(bool enabled); QList getToolbars(); + void setVCRTimeToolBarVisible(bool show); + private: PVViewer_GUIElements(QMainWindow* desk); virtual ~PVViewer_GUIElements() {}