comparison main/MainWindow.cpp @ 275:4c91b98b4ce1

* More transform finder stuff
author Chris Cannam
date Mon, 29 Sep 2008 16:31:49 +0000
parents 1da9d83fbde6
children 189f0212f4ba
comparison
equal deleted inserted replaced
274:1da9d83fbde6 275:4c91b98b4ce1
1435 m_transformsMenu->addSeparator(); 1435 m_transformsMenu->addSeparator();
1436 m_rightButtonTransformsMenu->addSeparator(); 1436 m_rightButtonTransformsMenu->addSeparator();
1437 1437
1438 QAction *action = new QAction(tr("Find a Transform..."), this); 1438 QAction *action = new QAction(tr("Find a Transform..."), this);
1439 action->setStatusTip(tr("Search for a transform from the installed plugins, by name or description")); 1439 action->setStatusTip(tr("Search for a transform from the installed plugins, by name or description"));
1440 action->setShortcut(tr("Ctrl+M"));
1440 connect(action, SIGNAL(triggered()), this, SLOT(findTransform())); 1441 connect(action, SIGNAL(triggered()), this, SLOT(findTransform()));
1441 connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool))); 1442 connect(this, SIGNAL(canAddLayer(bool)), action, SLOT(setEnabled(bool)));
1443 m_keyReference->registerShortcut(action);
1442 m_transformsMenu->addAction(action); 1444 m_transformsMenu->addAction(action);
1443 m_rightButtonTransformsMenu->addAction(action); 1445 m_rightButtonTransformsMenu->addAction(action);
1444 1446
1445 setupRecentTransformsMenu(); 1447 setupRecentTransformsMenu();
1446 } 1448 }