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@635: #ifndef SV_TRANSFORM_USER_CONFIGURATOR_H Chris@635: #define SV_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@634: bool configure(ModelTransformer::Input &input, Chris@205: Transform &transform, Chris@205: Vamp::PluginBase *plugin, Chris@214: Model *&inputModel, Chris@595: AudioPlaySource *source, Chris@595: sv_frame_t startFrame, Chris@595: sv_frame_t duration, Chris@595: const QMap &modelMap, Chris@205: QStringList candidateModelNames, Chris@634: QString defaultModelName) override; 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