2010-06-06 23:43:45 +02:00
|
|
|
//
|
|
|
|
// C++ Interface: MilkdropPresetFactory
|
|
|
|
//
|
|
|
|
// Description:
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Author: Carmelo Piccione <carmelo.piccione@gmail.com>, (C) 2008
|
|
|
|
//
|
|
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __MILKDROP_PRESET_FACTORY_HPP
|
|
|
|
#define __MILKDROP_PRESET_FACTORY_HPP
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include "../PresetFactory.hpp"
|
|
|
|
class DLLEXPORT PresetOutputs;
|
|
|
|
class DLLEXPORT PresetInputs;
|
|
|
|
|
|
|
|
class MilkdropPresetFactory : public PresetFactory {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
MilkdropPresetFactory(int gx, int gy);
|
|
|
|
|
|
|
|
virtual ~MilkdropPresetFactory();
|
|
|
|
|
2020-05-14 12:40:38 +02:00
|
|
|
std::unique_ptr<Preset> allocate(const std::string & url, const std::string & name = std::string(),
|
2010-06-06 23:43:45 +02:00
|
|
|
const std::string & author = std::string());
|
|
|
|
|
|
|
|
std::string supportedExtensions() const { return "milk prjm"; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
static PresetOutputs* createPresetOutputs(int gx, int gy);
|
|
|
|
void reset();
|
|
|
|
PresetOutputs * _presetOutputs;
|
|
|
|
PresetOutputs * _presetOutputs2;
|
|
|
|
bool _usePresetOutputs;
|
|
|
|
//PresetInputs _presetInputs;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|