Chris@205: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@205: Chris@205: /* Chris@205: Sonic Visualiser Chris@205: An audio file viewer and annotation editor. Chris@205: Centre for Digital Music, Queen Mary, University of London. Chris@205: Chris@205: This program is free software; you can redistribute it and/or Chris@205: modify it under the terms of the GNU General Public License as Chris@205: published by the Free Software Foundation; either version 2 of the Chris@205: License, or (at your option) any later version. See the file Chris@205: COPYING included with this distribution for more information. Chris@205: */ Chris@205: Chris@205: #ifndef _TRANSFORM_USER_CONFIGURATOR_H_ Chris@205: #define _TRANSFORM_USER_CONFIGURATOR_H_ Chris@205: Chris@205: #include "transform/ModelTransformerFactory.h" Chris@205: Chris@205: class TransformUserConfigurator : public ModelTransformerFactory::UserConfigurator Chris@205: { Chris@205: public: Chris@205: // This is of course absolutely gross Chris@205: Chris@205: virtual bool configure(ModelTransformer::Input &input, Chris@205: Transform &transform, Chris@205: Vamp::PluginBase *plugin, Chris@214: Model *&inputModel, Chris@205: AudioPlaySource *source, Chris@366: int startFrame, Chris@366: int duration, Chris@205: const QMap &modelMap, Chris@205: QStringList candidateModelNames, Chris@205: QString defaultModelName); Chris@205: Chris@395: static void setParentWidget(QWidget *); Chris@395: Chris@205: private: Chris@205: bool getChannelRange(TransformId identifier, Chris@205: Vamp::PluginBase *plugin, int &min, int &max); Chris@205: Chris@205: }; Chris@205: Chris@205: #endif