hydrogen 1.2.6
LadspaFXSelector.h
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 * Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5 *
6 * http://www.hydrogen-music.org
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY, without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see https://www.gnu.org/licenses
20 *
21 */
22
23#ifndef LADSPA_FX_SELECTOR_H
24#define LADSPA_FX_SELECTOR_H
25
26
27#include "ui_LadspaFXSelector_UI.h"
28
29#include <core/config.h>
30#include <core/Object.h>
31
32#include <QtGui>
33#include <QtWidgets>
34
35#include <string>
36#include <vector>
37
38namespace H2Core {
39 class LadspaFXInfo;
40 class LadspaFXGroup;
41}
42
44class LadspaFXSelector : public QDialog, public Ui_LadspaFXSelector_UI, public H2Core::Object<LadspaFXSelector>
45{
47 Q_OBJECT
48
49 public:
50 explicit LadspaFXSelector(int nLadspaFX);
52
53 QString getSelectedFX();
54
55 private slots:
56 void on_m_pGroupsListView_currentItemChanged( QTreeWidgetItem * current, QTreeWidgetItem * previous );
57 void pluginSelected();
58
59 private:
60 QTreeWidgetItem* m_pCurrentItem;
62 void buildLadspaGroups();
63
64#ifdef H2CORE_HAVE_LADSPA
65 void addGroup(QTreeWidgetItem *parent, H2Core::LadspaFXGroup *pGroup);
66 void addGroup( QTreeWidget *parent, H2Core::LadspaFXGroup *pGroup );
67 void buildGroup(QTreeWidgetItem *pNewItem, H2Core::LadspaFXGroup *pGroup);
68
69 std::vector<H2Core::LadspaFXInfo*> findPluginsInGroup( const QString& sSelectedGroup, H2Core::LadspaFXGroup *pGroup );
70#endif
71
72};
73
74
75#endif
76
#define H2_OBJECT(name)
Definition Object.h:227
void on_m_pGroupsListView_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)
QTreeWidgetItem * m_pCurrentItem
QString m_sSelectedPluginName
LadspaFXSelector(int nLadspaFX)