comparison src/MainWindow.cpp @ 253:b6b2f69c516d

Menu shortcuts and status tips
author Chris Cannam
date Wed, 02 Apr 2014 09:18:45 +0100
parents f99fae5fe89c
children 79ba5b50a40e
comparison
equal deleted inserted replaced
252:f99fae5fe89c 253:b6b2f69c516d
450 setupRecentFilesMenu(); 450 setupRecentFilesMenu();
451 connect(&m_recentFiles, SIGNAL(recentChanged()), 451 connect(&m_recentFiles, SIGNAL(recentChanged()),
452 this, SLOT(setupRecentFilesMenu())); 452 this, SLOT(setupRecentFilesMenu()));
453 453
454 menu->addSeparator(); 454 menu->addSeparator();
455 action = new QAction(tr("Import Pitch Track Data..."), this); 455 action = new QAction(tr("I&mport Pitch Track Data..."), this);
456 action->setStatusTip(tr("Import pitch-track data from a file")); 456 action->setStatusTip(tr("Import pitch-track data from a CSV, RDF, or layer XML file"));
457 connect(action, SIGNAL(triggered()), this, SLOT(importPitchLayer())); 457 connect(action, SIGNAL(triggered()), this, SLOT(importPitchLayer()));
458 connect(this, SIGNAL(canImportLayer(bool)), action, SLOT(setEnabled(bool))); 458 connect(this, SIGNAL(canImportLayer(bool)), action, SLOT(setEnabled(bool)));
459 menu->addAction(action); 459 menu->addAction(action);
460 460
461 action = new QAction(tr("Export Pitch Track Data..."), this); 461 action = new QAction(tr("E&xport Pitch Track Data..."), this);
462 action->setStatusTip(tr("Export pitch-track data to a file")); 462 action->setStatusTip(tr("Export pitch-track data to a CSV, RDF, or layer XML file"));
463 connect(action, SIGNAL(triggered()), this, SLOT(exportPitchLayer())); 463 connect(action, SIGNAL(triggered()), this, SLOT(exportPitchLayer()));
464 connect(this, SIGNAL(canExportPitchTrack(bool)), action, SLOT(setEnabled(bool))); 464 connect(this, SIGNAL(canExportPitchTrack(bool)), action, SLOT(setEnabled(bool)));
465 menu->addAction(action); 465 menu->addAction(action);
466 466
467 action = new QAction(tr("Export Note Data..."), this); 467 action = new QAction(tr("&Export Note Data..."), this);
468 action->setStatusTip(tr("Export note data to a file")); 468 action->setStatusTip(tr("Export note data to a CSV, RDF, layer XML, or MIDI file"));
469 connect(action, SIGNAL(triggered()), this, SLOT(exportNoteLayer())); 469 connect(action, SIGNAL(triggered()), this, SLOT(exportNoteLayer()));
470 connect(this, SIGNAL(canExportNotes(bool)), action, SLOT(setEnabled(bool))); 470 connect(this, SIGNAL(canExportNotes(bool)), action, SLOT(setEnabled(bool)));
471 menu->addAction(action); 471 menu->addAction(action);
472 472
473 menu->addSeparator(); 473 menu->addSeparator();