comparison main/MainWindow.cpp @ 497:e583f57f1311

Give a dedicated key to toggling the centre line, and move it out of the overlay level setting -- reducing number of overlay levels to 3. Introduce two distinct vertical scale types (so that we can hide the spectrogram colour scale part easily)
author Chris Cannam
date Mon, 30 Jan 2012 16:01:21 +0000
parents bc04d651f8a4
children d2a58dfc3ae5
comparison
equal deleted inserted replaced
496:abbd15ead43d 497:e583f57f1311
841 841
842 menu->addSeparator(); 842 menu->addSeparator();
843 843
844 m_keyReference->setCategory(tr("Display Features")); 844 m_keyReference->setCategory(tr("Display Features"));
845 845
846 action = new QAction(tr("Show &Centre Line"), this);
847 action->setShortcut(tr("'"));
848 action->setStatusTip(tr("Show or hide the centre line"));
849 connect(action, SIGNAL(triggered()), this, SLOT(toggleCentreLine()));
850 action->setCheckable(true);
851 action->setChecked(true);
852 m_keyReference->registerShortcut(action);
853 menu->addAction(action);
854
855 action = new QAction(tr("Toggle All Time Rulers"), this);
856 action->setShortcut(tr("#"));
857 action->setStatusTip(tr("Show or hide all time rulers"));
858 connect(action, SIGNAL(triggered()), this, SLOT(toggleTimeRulers()));
859 m_keyReference->registerShortcut(action);
860 menu->addAction(action);
861
862 menu->addSeparator();
863
846 QActionGroup *overlayGroup = new QActionGroup(this); 864 QActionGroup *overlayGroup = new QActionGroup(this);
847 865
848 action = new QAction(tr("Show &No Overlays"), this); 866 action = new QAction(tr("Show &No Overlays"), this);
849 action->setShortcut(tr("0")); 867 action->setShortcut(tr("0"));
850 action->setStatusTip(tr("Hide centre indicator, frame times, layer names and scale")); 868 action->setStatusTip(tr("Hide times, layer names, and scale"));
851 connect(action, SIGNAL(triggered()), this, SLOT(showNoOverlays())); 869 connect(action, SIGNAL(triggered()), this, SLOT(showNoOverlays()));
852 action->setCheckable(true); 870 action->setCheckable(true);
853 action->setChecked(false); 871 action->setChecked(false);
854 overlayGroup->addAction(action); 872 overlayGroup->addAction(action);
855 m_keyReference->registerShortcut(action); 873 m_keyReference->registerShortcut(action);
856 menu->addAction(action); 874 menu->addAction(action);
857 875
858 action = new QAction(tr("Show &Minimal Overlays"), this); 876 action = new QAction(tr("Show &Minimal Overlays"), this);
859 action->setShortcut(tr("9")); 877 action->setShortcut(tr("9"));
860 action->setStatusTip(tr("Show centre indicator only")); 878 action->setStatusTip(tr("Show times and basic scale"));
861 connect(action, SIGNAL(triggered()), this, SLOT(showMinimalOverlays())); 879 connect(action, SIGNAL(triggered()), this, SLOT(showMinimalOverlays()));
862 action->setCheckable(true);
863 action->setChecked(false);
864 overlayGroup->addAction(action);
865 m_keyReference->registerShortcut(action);
866 menu->addAction(action);
867
868 action = new QAction(tr("Show &Standard Overlays"), this);
869 action->setShortcut(tr("8"));
870 action->setStatusTip(tr("Show centre indicator, frame times and scale"));
871 connect(action, SIGNAL(triggered()), this, SLOT(showStandardOverlays()));
872 action->setCheckable(true); 880 action->setCheckable(true);
873 action->setChecked(true); 881 action->setChecked(true);
874 overlayGroup->addAction(action); 882 overlayGroup->addAction(action);
875 m_keyReference->registerShortcut(action); 883 m_keyReference->registerShortcut(action);
876 menu->addAction(action); 884 menu->addAction(action);
877 885
878 action = new QAction(tr("Show &All Overlays"), this); 886 action = new QAction(tr("Show &All Overlays"), this);
879 action->setShortcut(tr("7")); 887 action->setShortcut(tr("8"));
880 action->setStatusTip(tr("Show all texts and scale")); 888 action->setStatusTip(tr("Show times, layer names, and scale"));
881 connect(action, SIGNAL(triggered()), this, SLOT(showAllOverlays())); 889 connect(action, SIGNAL(triggered()), this, SLOT(showAllOverlays()));
882 action->setCheckable(true); 890 action->setCheckable(true);
883 action->setChecked(false); 891 action->setChecked(false);
884 overlayGroup->addAction(action); 892 overlayGroup->addAction(action);
885 m_keyReference->registerShortcut(action); 893 m_keyReference->registerShortcut(action);
886 menu->addAction(action); 894 menu->addAction(action);
887 895
888 menu->addSeparator(); 896 menu->addSeparator();
889 897
890 action = new QAction(tr("Show All Time Rulers"), this);
891 action->setShortcut(tr("#"));
892 action->setStatusTip(tr("Show or hide all time rulers"));
893 connect(action, SIGNAL(triggered()), this, SLOT(toggleTimeRulers()));
894 m_keyReference->registerShortcut(action);
895 menu->addAction(action);
896
897 menu->addSeparator();
898
899 action = new QAction(tr("Show &Zoom Wheels"), this); 898 action = new QAction(tr("Show &Zoom Wheels"), this);
900 action->setShortcut(tr("Z")); 899 action->setShortcut(tr("Z"));
901 action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically")); 900 action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically"));
902 connect(action, SIGNAL(triggered()), this, SLOT(toggleZoomWheels())); 901 connect(action, SIGNAL(triggered()), this, SLOT(toggleZoomWheels()));
903 action->setCheckable(true); 902 action->setCheckable(true);