Mercurial > hg > easaier-soundaccess
diff sv/main/MainWindow.cpp @ 205:00cf9a7faa4d
add menu and shortcut to show/hide both ExpandWidget (layers and filters, search/info tab)
author | lbajardsilogic |
---|---|
date | Wed, 30 Jan 2008 10:20:41 +0000 |
parents | c5970f7af886 |
children | fa034c6ae8bf |
line wrap: on
line diff
--- a/sv/main/MainWindow.cpp Wed Jan 30 09:06:08 2008 +0000 +++ b/sv/main/MainWindow.cpp Wed Jan 30 10:20:41 2008 +0000 @@ -965,13 +965,23 @@ action->setChecked(m_viewManager->getZoomWheelsEnabled()); menu->addAction(action); - /*action = new QAction(tr("Show Property Bo&xes"), this); - action->setShortcut(tr("X")); - action->setStatusTip(tr("Show the layer property boxes at the side of the main window")); - connect(action, SIGNAL(triggered()), this, SLOT(togglePropertyBoxes())); - action->setCheckable(true); - action->setChecked(true); - menu->addAction(action);*/ + action = new QAction(tr("Show Layers and &Filters"), this); + action->setShortcut(tr("F")); + action->setStatusTip(tr("Show the layers and the real-time filters activated at the side of the main window")); + connect(action, SIGNAL(triggered()), m_rightExpandWidget, SLOT(changePaneState())); + connect(m_rightExpandWidget, SIGNAL(paneStateChanged(bool)), action, SLOT(setChecked(bool))); + action->setCheckable(true); + action->setChecked(m_rightExpandWidget->isVisible()); + menu->addAction(action); + + action = new QAction(tr("Show Search/Tracks &Info Panes"), this); + action->setShortcut(tr("I")); + action->setStatusTip(tr("Show the search funtionalities and tracks information at the bottom of the main window")); + connect(action, SIGNAL(triggered()), m_leftExpandWidget, SLOT(changePaneState())); + connect(m_leftExpandWidget, SIGNAL(paneStateChanged(bool)), action, SLOT(setChecked(bool))); + action->setCheckable(true); + action->setChecked(m_leftExpandWidget->isVisible()); + menu->addAction(action); action = new QAction(tr("Show Status &Bar"), this); action->setStatusTip(tr("Show context help information in the status bar at the bottom of the window"));