changeset 445:45f2e4cda1d7 toggle

Rename "visible" to "show" to avoid confusion between current state and required activity
author Chris Cannam
date Fri, 24 Jun 2011 11:21:56 +0100
parents 4d9e4053c120
children 8df5d64bf7c5
files main/MainWindow.cpp
diffstat 1 files changed, 17 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Fri Jun 24 11:21:00 2011 +0100
+++ b/main/MainWindow.cpp	Fri Jun 24 11:21:56 2011 +0100
@@ -4172,34 +4172,34 @@
 void
 MainWindow::toggleViewMode()
 {
-    bool visible;
+    bool show;
 
     if (m_viewManager->getMinimalModeEnabled()) {
-        visible = true;
+        show = true;
         m_viewManager->setMinimalModeEnabled(false);
         m_scroll->show();
     } else {
-        visible = false;
+        show = false;
         m_viewManager->setMinimalModeEnabled(true);
         m_scroll->hide();
     }
 
     //cerr << "Call to MainWindow::toggleViewMode"<< endl;
 
-    m_playModeToolBar->setVisible(visible);
-    m_editToolBar->setVisible(visible);
-    m_toolsToolBar->setVisible(visible);
-
-    m_importAnnotationLayerAction->setVisible(visible);
-    m_exportAnnotationLayerAction->setVisible(visible);
-    m_showNoOverlaysAction->setVisible(visible);
-    m_showMinimalOverlaysAction->setVisible(visible);
-    m_showStandardOverlaysAction->setVisible(visible);
-    m_showAllOverlaysAction->setVisible(visible);
-    m_showAllTimeRulersAction->setVisible(visible);
-    m_showZoomWheelsAction->setVisible(visible);
-    m_showPropertyBoxesAction->setVisible(visible);
-    m_showStatusBarAction->setVisible(visible);
+    m_playModeToolBar->setVisible(show);
+    m_editToolBar->setVisible(show);
+    m_toolsToolBar->setVisible(show);
+
+    m_importAnnotationLayerAction->setVisible(show);
+    m_exportAnnotationLayerAction->setVisible(show);
+    m_showNoOverlaysAction->setVisible(show);
+    m_showMinimalOverlaysAction->setVisible(show);
+    m_showStandardOverlaysAction->setVisible(show);
+    m_showAllOverlaysAction->setVisible(show);
+    m_showAllTimeRulersAction->setVisible(show);
+    m_showZoomWheelsAction->setVisible(show);
+    m_showPropertyBoxesAction->setVisible(show);
+    m_showStatusBarAction->setVisible(show);
 
     //layout()->activate();
     //layout()->update();