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@740: #include Chris@740: 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@685: Transform &transform, Chris@740: std::shared_ptr plugin, Chris@685: ModelId &inputModel, Chris@685: AudioPlaySource *source, Chris@685: sv_frame_t startFrame, Chris@685: sv_frame_t duration, Chris@685: const QMap &modelMap, Chris@685: QStringList candidateModelNames, Chris@685: QString defaultModelName) override; Chris@205: Chris@395: static void setParentWidget(QWidget *); Chris@395: Chris@205: private: Chris@205: bool getChannelRange(TransformId identifier, Chris@740: std::shared_ptr plugin, Chris@740: int &min, int &max); Chris@205: Chris@205: }; Chris@205: Chris@205: #endif