lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
DummyPlugin.h
Go to the documentation of this file.
1
/*
2
* DummyPlugin.h - empty plugin which is used as fallback if a plugin couldn't
3
* be found
4
*
5
* Copyright (c) 2005-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
6
*
7
* This file is part of LMMS - https://lmms.io
8
*
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public
11
* License as published by the Free Software Foundation; either
12
* version 2 of the License, or (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public
20
* License along with this program (see COPYING); if not, write to the
21
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22
* Boston, MA 02110-1301 USA.
23
*
24
*/
25
26
#ifndef LMMS_DUMMY_PLUGIN_H
27
#define LMMS_DUMMY_PLUGIN_H
28
29
#include "
Plugin.h
"
30
#include "
PluginView.h
"
31
32
33
namespace
lmms
34
{
35
36
class
DummyPlugin
:
public
Plugin
37
{
38
public
:
39
DummyPlugin
() :
40
Plugin
( nullptr, nullptr )
41
{
42
}
43
44
~DummyPlugin
()
override
=
default
;
45
46
void
saveSettings
( QDomDocument &, QDomElement & )
override
47
{
48
}
49
50
void
loadSettings
(
const
QDomElement & )
override
51
{
52
}
53
54
QString
nodeName
()
const override
55
{
56
return
"DummyPlugin"
;
57
}
58
59
60
protected
:
61
gui::PluginView
*
instantiateView
( QWidget * _parent )
override
62
{
63
return
new
gui::PluginView
(
this
, _parent );
64
}
65
66
} ;
67
68
69
}
// namespace lmms
70
71
#endif
// LMMS_DUMMY_PLUGIN_H
Plugin.h
PluginView.h
lmms::DummyPlugin::~DummyPlugin
~DummyPlugin() override=default
lmms::DummyPlugin::saveSettings
void saveSettings(QDomDocument &, QDomElement &) override
Definition
DummyPlugin.h:46
lmms::DummyPlugin::loadSettings
void loadSettings(const QDomElement &) override
Definition
DummyPlugin.h:50
lmms::DummyPlugin::instantiateView
gui::PluginView * instantiateView(QWidget *_parent) override
Create a view for the model.
Definition
DummyPlugin.h:61
lmms::DummyPlugin::DummyPlugin
DummyPlugin()
Definition
DummyPlugin.h:39
lmms::DummyPlugin::nodeName
QString nodeName() const override
Definition
DummyPlugin.h:54
lmms::Plugin::Plugin
Plugin(const Descriptor *descriptor, Model *parent, const Descriptor::SubPluginFeatures::Key *key=nullptr)
Constructor of a plugin.
Definition
Plugin.cpp:60
lmms::gui::PluginView
Definition
PluginView.h:36
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0