diff transform/TransformFactory.h @ 53:94f1c2747de4

* Tidy up plugin parameter dialog by switching it to a simple constructor with separate methods for passing in the additional options if necessary * Fix sizing problem on advanced pane toggle in plugin parameter dialog * Make a start on passing in list of candidate input models for transform
author Chris Cannam
date Wed, 11 Oct 2006 16:18:51 +0000
parents fbd7a497fd89
children e200055fe80b
line wrap: on
line diff
--- a/transform/TransformFactory.h	Tue Oct 10 19:04:57 2006 +0000
+++ b/transform/TransformFactory.h	Wed Oct 11 16:18:51 2006 +0000
@@ -78,16 +78,16 @@
 
     /**
      * Get a configuration XML string for the given transform (by
-     * asking the user, most likely).  Returns true if the transform
-     * is acceptable, false if the operation should be cancelled.
-     * Audio callback play source may be used to audition effects
-     * plugins, if provided.
+     * asking the user, most likely).  Returns the selected input
+     * model if the transform is acceptable, 0 if the operation should
+     * be cancelled.  Audio callback play source may be used to
+     * audition effects plugins, if provided.
      */
-    bool getConfigurationForTransform(TransformName name,
-                                      Model *inputModel,
-                                      PluginTransform::ExecutionContext &context,
-                                      QString &configurationXml,
-                                      AudioCallbackPlaySource *source = 0);
+    Model *getConfigurationForTransform(TransformName name,
+                                        const std::vector<Model *> &candidateInputModels,
+                                        PluginTransform::ExecutionContext &context,
+                                        QString &configurationXml,
+                                        AudioCallbackPlaySource *source = 0);
 
     /**
      * Return the output model resulting from applying the named