diff plugin/transform/FeatureExtractionModelTransformer.cpp @ 387:7aa1de571880

* juggle some files around in order to free audioio, base, and system libraries from dependency on QtGui
author Chris Cannam
date Wed, 12 Mar 2008 17:42:56 +0000
parents 4bb19132da23
children
line wrap: on
line diff
--- a/plugin/transform/FeatureExtractionModelTransformer.cpp	Sat Mar 01 16:17:44 2008 +0000
+++ b/plugin/transform/FeatureExtractionModelTransformer.cpp	Wed Mar 12 17:42:56 2008 +0000
@@ -21,6 +21,7 @@
 
 #include "data/model/Model.h"
 #include "base/Window.h"
+#include "base/Exceptions.h"
 #include "data/model/SparseOneDimensionalModel.h"
 #include "data/model/SparseTimeValueModel.h"
 #include "data/model/EditableDenseThreeDimensionalModel.h"
@@ -31,8 +32,6 @@
 
 #include "TransformFactory.h"
 
-#include <QMessageBox>
-
 #include <iostream>
 
 FeatureExtractionModelTransformer::FeatureExtractionModelTransformer(Input in,
@@ -338,13 +337,10 @@
                                    false,
                                    StorageAdviser::PrecisionCritical);
             if (!model->isOK()) {
-                QMessageBox::critical
-                    (0, tr("FFT cache failed"),
-                     tr("Failed to create the FFT model for this transform.\n"
-                        "There may be insufficient memory or disc space to continue."));
                 delete model;
                 setCompletion(100);
-                return;
+                //!!! need a better way to handle this -- previously we were using a QMessageBox but that isn't an appropriate thing to do here either
+                throw AllocationFailed("Failed to create the FFT model for this feature extraction model transformer");
             }
             model->resume();
             fftModels.push_back(model);