47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
/*
|
|
* Copyright (c) 2012-2022 Meltytech, LLC
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef ABSTRACTPRODUCERWIDGET_H
|
|
#define ABSTRACTPRODUCERWIDGET_H
|
|
|
|
#include <MltProducer.h>
|
|
#include <QScopedPointer>
|
|
|
|
class QWidget;
|
|
|
|
class AbstractProducerWidget
|
|
{
|
|
public:
|
|
AbstractProducerWidget();
|
|
virtual ~AbstractProducerWidget();
|
|
virtual Mlt::Producer *newProducer(Mlt::Profile &) = 0;
|
|
virtual void setProducer(Mlt::Producer *);
|
|
virtual Mlt::Properties getPreset() const
|
|
{
|
|
Mlt::Properties p;
|
|
return p;
|
|
}
|
|
virtual void loadPreset(Mlt::Properties &) {}
|
|
Mlt::Producer *producer() const { return m_producer.data(); }
|
|
static bool isDevice(const QWidget *widget);
|
|
|
|
protected:
|
|
QScopedPointer<Mlt::Producer> m_producer;
|
|
};
|
|
|
|
#endif // ABSTRACTPRODUCERWIDGET_H
|