Mercurial > hg > tony
comparison src/MainWindow.cpp @ 4:976d9aec2a7e
Minor tidy
author | Chris Cannam |
---|---|
date | Fri, 16 Nov 2012 12:19:29 +0000 |
parents | 17da7a332620 |
children | c2a0d8666017 |
comparison
equal
deleted
inserted
replaced
3:17da7a332620 | 4:976d9aec2a7e |
---|---|
771 } | 771 } |
772 | 772 |
773 void | 773 void |
774 MainWindow::documentModified() | 774 MainWindow::documentModified() |
775 { | 775 { |
776 //!!! | |
777 MainWindowBase::documentModified(); | 776 MainWindowBase::documentModified(); |
778 } | 777 } |
779 | 778 |
780 void | 779 void |
781 MainWindow::documentRestored() | 780 MainWindow::documentRestored() |
782 { | 781 { |
783 //!!! | |
784 MainWindowBase::documentRestored(); | 782 MainWindowBase::documentRestored(); |
785 } | 783 } |
786 | 784 |
787 void | 785 void |
788 MainWindow::newSession() | 786 MainWindow::newSession() |
958 } | 956 } |
959 | 957 |
960 void | 958 void |
961 MainWindow::paneDropAccepted(Pane *pane, QStringList uriList) | 959 MainWindow::paneDropAccepted(Pane *pane, QStringList uriList) |
962 { | 960 { |
963 // if (pane) m_paneStack->setCurrentPane(pane); | 961 if (pane) m_paneStack->setCurrentPane(pane); |
964 | 962 |
965 for (QStringList::iterator i = uriList.begin(); i != uriList.end(); ++i) { | 963 for (QStringList::iterator i = uriList.begin(); i != uriList.end(); ++i) { |
966 | 964 |
967 FileOpenStatus status = open(*i, ReplaceSession); | 965 FileOpenStatus status = open(*i, ReplaceSession); |
968 | 966 |
1324 | 1322 |
1325 void | 1323 void |
1326 MainWindow::sampleRateMismatch(size_t requested, size_t actual, | 1324 MainWindow::sampleRateMismatch(size_t requested, size_t actual, |
1327 bool willResample) | 1325 bool willResample) |
1328 { | 1326 { |
1329 if (!willResample) { | |
1330 //!!! more helpful message needed | |
1331 QMessageBox::information | |
1332 (this, tr("Sample rate mismatch"), | |
1333 tr("The sample rate of this audio file (%1 Hz) does not match\nthe current playback rate (%2 Hz).\n\nThe file will play at the wrong speed and pitch.") | |
1334 .arg(requested).arg(actual)); | |
1335 } | |
1336 | |
1337 updateDescriptionLabel(); | 1327 updateDescriptionLabel(); |
1338 } | 1328 } |
1339 | 1329 |
1340 void | 1330 void |
1341 MainWindow::audioOverloadPluginDisabled() | 1331 MainWindow::audioOverloadPluginDisabled() |
1511 } | 1501 } |
1512 | 1502 |
1513 void | 1503 void |
1514 MainWindow::website() | 1504 MainWindow::website() |
1515 { | 1505 { |
1516 openHelpUrl(tr("http://www.sonicvisualiser.org/")); | 1506 //!!! todo: URL! |
1507 openHelpUrl(tr("http://code.soundsoftware.ac.uk/projects/tony/")); | |
1517 } | 1508 } |
1518 | 1509 |
1519 void | 1510 void |
1520 MainWindow::help() | 1511 MainWindow::help() |
1521 { | 1512 { |
1522 openHelpUrl(tr("http://www.sonicvisualiser.org/doc/reference/1.0/en/")); | 1513 //!!! todo: help URL! |
1514 openHelpUrl(tr("http://code.soundsoftware.ac.uk/projects/tony/")); | |
1523 } | 1515 } |
1524 | 1516 |
1525 void | 1517 void |
1526 MainWindow::about() | 1518 MainWindow::about() |
1527 { | 1519 { |