comparison main/MainWindow.cpp @ 387:487d208fadb3

* Add show/hide time rulers toggle (on # key)
author Chris Cannam
date Sun, 24 Oct 2010 17:39:51 +0200
parents dbc1d2d72cf1
children 58b7e3893963 065b61fe7cc3 d70890996156
comparison
equal deleted inserted replaced
376:210a409e135a 387:487d208fadb3
837 action->setCheckable(true); 837 action->setCheckable(true);
838 action->setChecked(false); 838 action->setChecked(false);
839 overlayGroup->addAction(action); 839 overlayGroup->addAction(action);
840 m_keyReference->registerShortcut(action); 840 m_keyReference->registerShortcut(action);
841 menu->addAction(action); 841 menu->addAction(action);
842 842
843 menu->addSeparator();
844
845 action = new QAction(tr("Show All Time Rulers"), this);
846 action->setShortcut(tr("#"));
847 action->setStatusTip(tr("Show or hide all time rulers"));
848 connect(action, SIGNAL(triggered()), this, SLOT(toggleTimeRulers()));
849 m_keyReference->registerShortcut(action);
850 menu->addAction(action);
851
843 menu->addSeparator(); 852 menu->addSeparator();
844 853
845 action = new QAction(tr("Show &Zoom Wheels"), this); 854 action = new QAction(tr("Show &Zoom Wheels"), this);
846 action->setShortcut(tr("Z")); 855 action->setShortcut(tr("Z"));
847 action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically")); 856 action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically"));
848 connect(action, SIGNAL(triggered()), this, SLOT(toggleZoomWheels())); 857 connect(action, SIGNAL(triggered()), this, SLOT(toggleZoomWheels()));
849 action->setCheckable(true); 858 action->setCheckable(true);
850 action->setChecked(m_viewManager->getZoomWheelsEnabled()); 859 action->setChecked(m_viewManager->getZoomWheelsEnabled());
851 m_keyReference->registerShortcut(action); 860 m_keyReference->registerShortcut(action);
852 menu->addAction(action); 861 menu->addAction(action);
853 862
854 action = new QAction(tr("Show Property Bo&xes"), this); 863 action = new QAction(tr("Show Property Bo&xes"), this);
855 action->setShortcut(tr("X")); 864 action->setShortcut(tr("X"));
856 action->setStatusTip(tr("Show the layer property boxes at the side of the main window")); 865 action->setStatusTip(tr("Show the layer property boxes at the side of the main window"));
857 connect(action, SIGNAL(triggered()), this, SLOT(togglePropertyBoxes())); 866 connect(action, SIGNAL(triggered()), this, SLOT(togglePropertyBoxes()));
858 action->setCheckable(true); 867 action->setCheckable(true);