comparison main/MainWindow.cpp @ 785:624a8864391e

Restore the old prev/next layer commands (that were never enabled because they didn't work) using the new fixed order layer list (so they now do work)
author Chris Cannam
date Tue, 02 Sep 2014 16:06:41 +0100
parents 8b51bfe70625
children c8e378ad8a10
comparison
equal deleted inserted replaced
784:1ba1340aa137 785:624a8864391e
1396 m_sliceMenu->setTearOffEnabled(true); 1396 m_sliceMenu->setTearOffEnabled(true);
1397 m_rightButtonLayerMenu->addMenu(m_sliceMenu); 1397 m_rightButtonLayerMenu->addMenu(m_sliceMenu);
1398 1398
1399 setupExistingLayersMenus(); 1399 setupExistingLayersMenus();
1400 1400
1401 /*!!! These don't work correctly -- fix or omit
1402 menu->addSeparator(); 1401 menu->addSeparator();
1403 1402
1404 action = new QAction(tr("Switch to Previous Layer"), this); 1403 action = new QAction(tr("Switch to Previous Layer"), this);
1405 action->setShortcut(tr("{")); 1404 action->setShortcut(tr("{"));
1406 action->setStatusTip(tr("Make the previous layer in the pane current")); 1405 action->setStatusTip(tr("Make the previous layer in the pane current"));
1414 action->setStatusTip(tr("Make the next layer in the pane current")); 1413 action->setStatusTip(tr("Make the next layer in the pane current"));
1415 connect(action, SIGNAL(triggered()), this, SLOT(nextLayer())); 1414 connect(action, SIGNAL(triggered()), this, SLOT(nextLayer()));
1416 connect(this, SIGNAL(canSelectNextLayer(bool)), action, SLOT(setEnabled(bool))); 1415 connect(this, SIGNAL(canSelectNextLayer(bool)), action, SLOT(setEnabled(bool)));
1417 m_keyReference->registerShortcut(action); 1416 m_keyReference->registerShortcut(action);
1418 menu->addAction(action); 1417 menu->addAction(action);
1419 */ 1418
1420 m_rightButtonLayerMenu->addSeparator(); 1419 m_rightButtonLayerMenu->addSeparator();
1421 menu->addSeparator(); 1420 menu->addSeparator();
1422 1421
1423 QAction *raction = new QAction(tr("&Rename Layer..."), this); 1422 QAction *raction = new QAction(tr("&Rename Layer..."), this);
1424 raction->setShortcut(tr("R")); 1423 raction->setShortcut(tr("R"));