comparison src/MainWindow.cpp @ 251:3b5ea600829c

We should be able to switch tool mode at any time
author Chris Cannam
date Wed, 02 Apr 2014 09:03:42 +0100
parents e9a0b3fad713
children f99fae5fe89c
comparison
equal deleted inserted replaced
250:e9a0b3fad713 251:3b5ea600829c
527 tr("Edit")); 527 tr("Edit"));
528 action->setCheckable(true); 528 action->setCheckable(true);
529 action->setShortcut(tr("2")); 529 action->setShortcut(tr("2"));
530 action->setStatusTip(tr("Edit with Note Intelligence")); 530 action->setStatusTip(tr("Edit with Note Intelligence"));
531 connect(action, SIGNAL(triggered()), this, SLOT(toolEditSelected())); 531 connect(action, SIGNAL(triggered()), this, SLOT(toolEditSelected()));
532 connect(this, SIGNAL(canEditLayer(bool)), action, SLOT(setEnabled(bool)));
533 group->addAction(action); 532 group->addAction(action);
534 menu->addAction(action); 533 menu->addAction(action);
535 m_keyReference->registerShortcut(action); 534 m_keyReference->registerShortcut(action);
536 535
537 m_keyReference->setCategory 536 m_keyReference->setCategory
557 tr("Free Edit")); 556 tr("Free Edit"));
558 action->setCheckable(true); 557 action->setCheckable(true);
559 action->setShortcut(tr("3")); 558 action->setShortcut(tr("3"));
560 action->setStatusTip(tr("Free Edit")); 559 action->setStatusTip(tr("Free Edit"));
561 connect(action, SIGNAL(triggered()), this, SLOT(toolFreeEditSelected())); 560 connect(action, SIGNAL(triggered()), this, SLOT(toolFreeEditSelected()));
562 connect(this, SIGNAL(canEditLayer(bool)), action, SLOT(setEnabled(bool)));
563 group->addAction(action); 561 group->addAction(action);
564 m_keyReference->registerShortcut(action); 562 m_keyReference->registerShortcut(action);
565 */ 563 */
566 564
567 menu->addSeparator(); 565 menu->addSeparator();