LMMS
Loading...
Searching...
No Matches
LadspaBrowser.h
Go to the documentation of this file.
1/*
2 * LadspaBrowser.h - dialog to display information about installed LADSPA
3 * plugins
4 *
5 * Copyright (c) 2006-2008 Danny McRae <khjklujn/at/users.sourceforge.net>
6 * Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
7 *
8 * This file is part of LMMS - https://lmms.io
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public
21 * License along with this program (see COPYING); if not, write to the
22 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301 USA.
24 *
25 */
26
27#ifndef _LADSPA_BROWSER_H
28#define _LADSPA_BROWSER_H
29
30#include "LadspaManager.h"
31#include "ToolPlugin.h"
32#include "ToolPluginView.h"
33
34namespace lmms
35{
36
37
38namespace gui
39{
40
41
42class TabBar;
43
45{
46 Q_OBJECT
47public:
49 ~LadspaBrowserView() override = default;
50
51
52public slots:
53 void showPorts( const ::lmms::ladspa_key_t & _key );
54
55
56private:
58
59 QWidget * createTab( QWidget * _parent, const QString & _txt,
60 LadspaPluginType _type );
61
62};
63
64
65} // namespace gui
66
67
69{
70public:
72 ~LadspaBrowser() override = default;
73
74 gui::PluginView* instantiateView( QWidget * ) override
75 {
76 return new gui::LadspaBrowserView( this );
77 }
78
79 QString nodeName() const override;
80
81 void saveSettings( QDomDocument& doc, QDomElement& element ) override
82 {
83 Q_UNUSED(doc)
84 Q_UNUSED(element)
85 }
86
87 void loadSettings( const QDomElement& element ) override
88 {
89 Q_UNUSED(element)
90 }
91
92
93} ;
94
95
96} // namespace lmms
97
98#endif
gui::PluginView * instantiateView(QWidget *) override
Create a view for the model.
Definition LadspaBrowser.h:74
void loadSettings(const QDomElement &element) override
Definition LadspaBrowser.h:87
LadspaBrowser()
Definition LadspaBrowser.cpp:76
void saveSettings(QDomDocument &doc, QDomElement &element) override
Definition LadspaBrowser.h:81
~LadspaBrowser() override=default
QString nodeName() const override
Definition LadspaBrowser.cpp:84
Definition ToolPlugin.h:38
ToolPlugin(const Descriptor *_descriptor, Model *_parent)
Definition ToolPlugin.cpp:33
Definition LadspaBrowser.h:45
~LadspaBrowserView() override=default
void showPorts(const ::lmms::ladspa_key_t &_key)
Definition LadspaBrowser.cpp:185
LadspaBrowserView(ToolPlugin *_tool)
Definition LadspaBrowser.cpp:95
QWidget * createTab(QWidget *_parent, const QString &_txt, LadspaPluginType _type)
Definition LadspaBrowser.cpp:156
TabBar * m_tabBar
Definition LadspaBrowser.h:57
Definition PluginView.h:36
Definition TabBar.h:43
ToolPluginView(ToolPlugin *_toolPlugin)
Definition ToolPluginView.cpp:39
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35
LadspaPluginType
Definition LadspaManager.h:66