# HG changeset patch # User Chris Cannam # Date 1308910916 -3600 # Node ID 45f2e4cda1d7504a18a6eda4a075d149e75406f0 # Parent 4d9e4053c120746dc533e04147c0269afe94c8a9 Rename "visible" to "show" to avoid confusion between current state and required activity diff -r 4d9e4053c120 -r 45f2e4cda1d7 main/MainWindow.cpp --- 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();