comparison main/MainWindow.cpp @ 1912:a28cab68eac6 import-audio-data

Experimental relabelling
author Chris Cannam
date Fri, 29 Jun 2018 14:10:08 +0100
parents 2160976df436
children 015416e3a298
comparison
equal deleted inserted replaced
1911:2160976df436 1912:a28cab68eac6
586 connect(action, SIGNAL(triggered()), this, SLOT(exportAudio())); 586 connect(action, SIGNAL(triggered()), this, SLOT(exportAudio()));
587 connect(this, SIGNAL(canExportAudio(bool)), action, SLOT(setEnabled(bool))); 587 connect(this, SIGNAL(canExportAudio(bool)), action, SLOT(setEnabled(bool)));
588 menu->addAction(action); 588 menu->addAction(action);
589 589
590 menu->addSeparator(); 590 menu->addSeparator();
591
592 action = new QAction(tr("Import Audio Data..."), this);
593 action->setStatusTip(tr("Import audio sample values from a CSV data file"));
594 connect(action, SIGNAL(triggered()), this, SLOT(importAudioData()));
595 menu->addAction(action);
596
597 action = new QAction(tr("Export Audio Data..."), this);
598 action->setStatusTip(tr("Export audio from selection into a CSV data file"));
599 connect(action, SIGNAL(triggered()), this, SLOT(exportAudioData()));
600 connect(this, SIGNAL(canExportAudio(bool)), action, SLOT(setEnabled(bool)));
601 menu->addAction(action);
602
603 menu->addSeparator();
604 591
605 action = new QAction(tr("Import Annotation &Layer..."), this); 592 action = new QAction(tr("Import Annotation &Layer..."), this);
606 action->setShortcut(tr("Ctrl+L")); 593 action->setShortcut(tr("Ctrl+L"));
607 action->setStatusTip(tr("Import layer data from an existing file")); 594 action->setStatusTip(tr("Import layer data from an existing file"));
608 connect(action, SIGNAL(triggered()), this, SLOT(importLayer())); 595 connect(action, SIGNAL(triggered()), this, SLOT(importLayer()));
614 action->setShortcut(tr("Ctrl+Y")); 601 action->setShortcut(tr("Ctrl+Y"));
615 action->setStatusTip(tr("Export layer data to a file")); 602 action->setStatusTip(tr("Export layer data to a file"));
616 connect(action, SIGNAL(triggered()), this, SLOT(exportLayer())); 603 connect(action, SIGNAL(triggered()), this, SLOT(exportLayer()));
617 connect(this, SIGNAL(canExportLayer(bool)), action, SLOT(setEnabled(bool))); 604 connect(this, SIGNAL(canExportLayer(bool)), action, SLOT(setEnabled(bool)));
618 m_keyReference->registerShortcut(action); 605 m_keyReference->registerShortcut(action);
606 menu->addAction(action);
607
608 menu->addSeparator();
609
610 action = new QAction(tr("Import Audio Data from CSV..."), this);
611 action->setStatusTip(tr("Import audio sample values from a CSV data file"));
612 connect(action, SIGNAL(triggered()), this, SLOT(importAudioData()));
613 menu->addAction(action);
614
615 action = new QAction(tr("Export Audio Data to CSV..."), this);
616 action->setStatusTip(tr("Export audio from selection into a CSV data file"));
617 connect(action, SIGNAL(triggered()), this, SLOT(exportAudioData()));
618 connect(this, SIGNAL(canExportAudio(bool)), action, SLOT(setEnabled(bool)));
619 menu->addAction(action); 619 menu->addAction(action);
620 620
621 menu->addSeparator(); 621 menu->addSeparator();
622 622
623 action = new QAction(tr("Export Image File..."), this); 623 action = new QAction(tr("Export Image File..."), this);