1 /*****************************************************************************
2 * extended_panels.hpp : Exentended Panels
3 ****************************************************************************
4 * Copyright (C) 2006 the VideoLAN team
7 * Authors: Clément Stenac <zorglub@videolan.org>
8 * Antoine Cellerier <dionoea at videolan dot org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
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
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
35 #include "ui/equalizer.h"
36 #include "ui/video_effects.h"
45 class ExtVideo: public QObject
49 ExtVideo( intf_thread_t *, QTabWidget * );
51 /*void gotoConf( QObject* );*/
53 Ui::ExtVideoWidget ui;
54 QSignalMapper* filterMapper;
55 intf_thread_t *p_intf;
56 void initComboBoxItems( QObject* );
57 void setWidgetValue( QObject* );
58 void ChangeVFiltersString( char *psz_name, vlc_bool_t b_add );
61 void updateFilterOptions();
64 class ExtV4l2 : public QWidget
68 ExtV4l2( intf_thread_t *, QWidget * );
71 virtual void showEvent( QShowEvent *event );
74 intf_thread_t *p_intf;
80 void ValueChange( int value );
81 void ValueChange( bool value );
84 class Equalizer: public QWidget
88 Equalizer( intf_thread_t *, QWidget * );
90 QComboBox *presetsComboBox;
93 Ui::EqualizerWidget ui;
94 QSlider *bands[BANDS];
95 QLabel *band_texts[BANDS];
97 void delCallbacks( aout_instance_t * );
98 void addCallbacks( aout_instance_t * );
99 void setValues( char *, float );
101 intf_thread_t *p_intf;
111 class Spatializer: public QWidget
115 Spatializer( intf_thread_t *, QWidget * );
116 virtual ~Spatializer();
119 QSlider *spatCtrl[NUM_SP_CTRL];
120 QLabel *ctrl_texts[NUM_SP_CTRL];
121 QLabel *ctrl_readout[NUM_SP_CTRL];
122 float controlVars[5];
123 float oldControlVars[5];
125 QCheckBox *enableCheck;
127 void delCallbacks( aout_instance_t * );
128 void addCallbacks( aout_instance_t * );
129 intf_thread_t *p_intf;
133 void setValues(float *);
134 void setInitValues();
137 class ExtendedControls: public QWidget
141 ExtendedControls( intf_thread_t *, QWidget * ) {};
142 virtual ~ExtendedControls() {};
145 intf_thread_t *p_intf;
153 class SyncControls : public QWidget
157 SyncControls( intf_thread_t *, QWidget * );
158 virtual ~SyncControls() {};
160 intf_thread_t *p_intf;
161 QDoubleSpinBox *AVSpin;
162 QDoubleSpinBox *subsSpin;