comparison main/MainWindow.cpp @ 233:5544593dd850

* Part of #1877436 transform fails to re-run when file loaded at different rate
author Chris Cannam
date Wed, 23 Jan 2008 18:09:50 +0000
parents 99e0dfd3ea75
children 198915eac073
comparison
equal deleted inserted replaced
232:99e0dfd3ea75 233:5544593dd850
3328 LabelCounterInputDialog dialog(m_labeller, this); 3328 LabelCounterInputDialog dialog(m_labeller, this);
3329 dialog.exec(); 3329 dialog.exec();
3330 } 3330 }
3331 3331
3332 void 3332 void
3333 MainWindow::modelGenerationFailed(QString transformName) 3333 MainWindow::modelGenerationFailed(QString transformName, QString message)
3334 {
3335 if (message != "") {
3336
3337 QMessageBox::warning
3338 (this,
3339 tr("Failed to generate layer"),
3340 tr("<b>Layer generation failed</b><p>Failed to generate derived layer.<p>The layer transform \"%1\" failed:<p>%2")
3341 .arg(transformName).arg(message),
3342 QMessageBox::Ok);
3343 } else {
3344 QMessageBox::warning
3345 (this,
3346 tr("Failed to generate layer"),
3347 tr("<b>Layer generation failed</b><p>Failed to generate a derived layer.<p>The layer transform \"%1\" failed.<p>No error information is available.")
3348 .arg(transformName),
3349 QMessageBox::Ok);
3350 }
3351 }
3352
3353 void
3354 MainWindow::modelGenerationWarning(QString transformName, QString message)
3355 {
3356 QMessageBox::warning
3357 (this, tr("Warning"), message, QMessageBox::Ok);
3358 }
3359
3360 void
3361 MainWindow::modelRegenerationFailed(QString layerName,
3362 QString transformName, QString message)
3363 {
3364 if (message != "") {
3365
3366 QMessageBox::warning
3367 (this,
3368 tr("Failed to regenerate layer"),
3369 tr("<b>Layer generation failed</b><p>Failed to regenerate derived layer \"%1\" using new data model as input.<p>The layer transform \"%2\" failed:<p>%3")
3370 .arg(layerName).arg(transformName).arg(message),
3371 QMessageBox::Ok);
3372 } else {
3373 QMessageBox::warning
3374 (this,
3375 tr("Failed to regenerate layer"),
3376 tr("<b>Layer generation failed</b><p>Failed to regenerate derived layer \"%1\" using new data model as input.<p>The layer transform \"%2\" failed.<p>No error information is available.")
3377 .arg(layerName).arg(transformName),
3378 QMessageBox::Ok);
3379 }
3380 }
3381
3382 void
3383 MainWindow::modelRegenerationWarning(QString layerName,
3384 QString transformName, QString message)
3385 {
3386 QMessageBox::warning
3387 (this, tr("Warning"), tr("<b>Warning when regenerating layer</b><p>When regenerating the derived layer \"%1\" using new data model as input:<p>%2").arg(layerName).arg(message), QMessageBox::Ok);
3388 }
3389
3390 void
3391 MainWindow::alignmentFailed(QString transformName, QString message)
3334 { 3392 {
3335 QMessageBox::warning 3393 QMessageBox::warning
3336 (this, 3394 (this,
3337 tr("Failed to generate layer"), 3395 tr("Failed to calculate alignment"),
3338 tr("<b>Layer generation failed</b><p>Failed to generate a derived layer.<p>The layer transform \"%1\" failed.<p>This may mean that a plugin failed to initialise, perhaps because it rejected the processing block size that was requested.") 3396 tr("<b>Alignment calculation failed</b><p>Failed to calculate an audio alignment using transform \"%1\":<p>%2")
3339 .arg(transformName), 3397 .arg(transformName).arg(message),
3340 QMessageBox::Ok);
3341 }
3342
3343 void
3344 MainWindow::modelRegenerationFailed(QString layerName, QString transformName)
3345 {
3346 QMessageBox::warning
3347 (this,
3348 tr("Failed to regenerate layer"),
3349 tr("<b>Layer generation failed</b><p>Failed to regenerate derived layer \"%1\".<p>The layer transform \"%2\" failed to run.<p>This may mean that the layer used a plugin that is not currently available.")
3350 .arg(layerName).arg(transformName),
3351 QMessageBox::Ok); 3398 QMessageBox::Ok);
3352 } 3399 }
3353 3400
3354 void 3401 void
3355 MainWindow::rightButtonMenuRequested(Pane *pane, QPoint position) 3402 MainWindow::rightButtonMenuRequested(Pane *pane, QPoint position)