~ubuntu-branches/ubuntu/hardy/lmms/hardy

« back to all changes in this revision

Viewing changes to plugins/ladspa_effect/ladspa_control_dialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Tobias Doerffel
  • Date: 2007-09-17 15:00:24 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070917150024-mo0zk4ks81jawqii
Tags: 0.3.0-1ubuntu1
* Resynchronized with Debian (LP: #139759, LP: #90806, LP: #102639,
  LP: #113447, LP: #121172, LP: #124890)
* reverted changes from 0.2.1-1.1ubuntu1 as upstream merged/included them

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ladspa_control_dialog.h - dialog for displaying and editing control port
 
3
 *                           values for LADSPA plugins
 
4
 *
 
5
 * Copyright (c) 2006-2007 Danny McRae <khjklujn/at/users.sourceforge.net>
 
6
 * 
 
7
 * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
 
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 _LADSPA_CONTROL_DIALOG_H
 
27
#define _LADSPA_CONTROL_DIALOG_H
 
28
 
 
29
#include "qt3support.h"
 
30
 
 
31
#ifdef QT4
 
32
 
 
33
#include <QtGui/QGroupBox>
 
34
#include <QtGui/QLayout>
 
35
 
 
36
#else
 
37
 
 
38
#include <qgroupbox.h>
 
39
#include <qlayout.h>
 
40
 
 
41
#endif
 
42
 
 
43
#include "effect_control_dialog.h"
 
44
#include "ladspa_control.h"
 
45
#include "led_checkbox.h"
 
46
 
 
47
 
 
48
typedef vvector<ladspaControl *> control_list_t;
 
49
 
 
50
class ladspaEffect;
 
51
 
 
52
 
 
53
class ladspaControlDialog : public effectControlDialog
 
54
{
 
55
        Q_OBJECT
 
56
public:
 
57
        ladspaControlDialog( QWidget * _parent, ladspaEffect * _eff, 
 
58
                                                        track * _track );
 
59
        virtual ~ladspaControlDialog();
 
60
 
 
61
        inline ch_cnt_t getControlCount( void )
 
62
        {
 
63
                return( m_controlCount );
 
64
        }
 
65
        
 
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
 
70
        {
 
71
                return( "ladspacontrols" );
 
72
        }
 
73
 
 
74
 
 
75
protected slots:
 
76
        void link( bool _state );
 
77
        void linkPort( Uint16 _port, bool _state );
 
78
 
 
79
 
 
80
private:
 
81
        ladspaEffect * m_effect;
 
82
        ch_cnt_t m_processors;
 
83
        ch_cnt_t m_controlCount;
 
84
        track * m_track;
 
85
        bool m_noLink;
 
86
        audioPort * m_port;
 
87
        ledCheckBox * m_stereoLink;
 
88
        vvector<QWidget *> m_blanks;
 
89
        vvector<control_list_t> m_controls;
 
90
        
 
91
        QVBoxLayout * m_mainLay;
 
92
        QHBoxLayout * m_effectLay;
 
93
 
 
94
} ;
 
95
 
 
96
#endif