Mercurial > hg > tony
comparison src/MainWindow.cpp @ 312:111bf81a5c96
and some more fixes around the file saving (remove from toolbar, deactivate when there's nothing to save)
author | matthiasm |
---|---|
date | Fri, 13 Jun 2014 09:25:00 +0100 |
parents | 4cf65a721a77 |
children | eef5c50e7e34 |
comparison
equal
deleted
inserted
replaced
311:4cf65a721a77 | 312:111bf81a5c96 |
---|---|
476 action->setStatusTip(tr("Save the current session into a new %1 session file").arg(QApplication::applicationName())); | 476 action->setStatusTip(tr("Save the current session into a new %1 session file").arg(QApplication::applicationName())); |
477 connect(action, SIGNAL(triggered()), this, SLOT(saveSessionAs())); | 477 connect(action, SIGNAL(triggered()), this, SLOT(saveSessionAs())); |
478 menu->addAction(action); | 478 menu->addAction(action); |
479 toolbar->addAction(action); | 479 toolbar->addAction(action); |
480 | 480 |
481 icon = il.load("filesaveas"); | 481 icon = il.load("filesave"); |
482 icon.addPixmap(il.loadPixmap("filesaveas-22")); | 482 icon.addPixmap(il.loadPixmap("filesave-22")); |
483 action = new QAction(icon, tr("Save Session In &Audio Path"), this); | 483 action = new QAction(icon, tr("Save Session In &Audio Path"), this); |
484 action->setShortcut(tr("Ctrl+Alt+S")); | 484 action->setShortcut(tr("Ctrl+Alt+S")); |
485 action->setStatusTip(tr("Save the current session into a %1 session file with the same path and filename but .ton extension.").arg(QApplication::applicationName())); | 485 action->setStatusTip(tr("Save the current session into a %1 session file with the same path and filename but .ton extension.").arg(QApplication::applicationName())); |
486 connect(action, SIGNAL(triggered()), this, SLOT(saveSessionInAudioPath())); | 486 connect(action, SIGNAL(triggered()), this, SLOT(saveSessionInAudioPath())); |
487 menu->addAction(action); | 487 connect(this, SIGNAL(canSave(bool)), action, SLOT(setEnabled(bool))); |
488 toolbar->addAction(action); | 488 menu->addAction(action); |
489 | 489 |
490 menu->addSeparator(); | 490 menu->addSeparator(); |
491 | 491 |
492 action = new QAction(tr("I&mport Pitch Track Data..."), this); | 492 action = new QAction(tr("I&mport Pitch Track Data..."), this); |
493 action->setStatusTip(tr("Import pitch-track data from a CSV, RDF, or layer XML file")); | 493 action->setStatusTip(tr("Import pitch-track data from a CSV, RDF, or layer XML file")); |