2
* ladspa_control_dialog.h - dialog for displaying and editing control port
3
* values for LADSPA plugins
5
* Copyright (c) 2006-2007 Danny McRae <khjklujn/at/users.sourceforge.net>
7
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
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.
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.
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.
26
#ifndef _LADSPA_CONTROL_DIALOG_H
27
#define _LADSPA_CONTROL_DIALOG_H
29
#include "qt3support.h"
33
#include <QtGui/QGroupBox>
34
#include <QtGui/QLayout>
38
#include <qgroupbox.h>
43
#include "effect_control_dialog.h"
44
#include "ladspa_control.h"
45
#include "led_checkbox.h"
48
typedef vvector<ladspaControl *> control_list_t;
53
class ladspaControlDialog : public effectControlDialog
57
ladspaControlDialog( QWidget * _parent, ladspaEffect * _eff,
59
virtual ~ladspaControlDialog();
61
inline ch_cnt_t getControlCount( void )
63
return( m_controlCount );
66
virtual void FASTCALL saveSettings( QDomDocument & _doc,
67
QDomElement & _parent );
68
virtual void FASTCALL loadSettings( const QDomElement & _this );
69
inline virtual QString nodeName( void ) const
71
return( "ladspacontrols" );
76
void link( bool _state );
77
void linkPort( Uint16 _port, bool _state );
81
ladspaEffect * m_effect;
82
ch_cnt_t m_processors;
83
ch_cnt_t m_controlCount;
87
ledCheckBox * m_stereoLink;
88
vvector<QWidget *> m_blanks;
89
vvector<control_list_t> m_controls;
91
QVBoxLayout * m_mainLay;
92
QHBoxLayout * m_effectLay;