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 vout_thread_t *p_vout;
57 void initComboBoxItems( QObject* );
58 void setWidgetValue( QObject* );
59 void ChangeVFiltersString( char *psz_name, bool b_add );
62 void updateFilterOptions();
66 class ExtV4l2 : public QWidget
70 ExtV4l2( intf_thread_t *, QWidget * );
73 virtual void showEvent( QShowEvent *event );
76 intf_thread_t *p_intf;
82 void ValueChange( int value );
83 void ValueChange( bool value );
86 class Equalizer: public QWidget
90 Equalizer( intf_thread_t *, QWidget * );
92 QComboBox *presetsComboBox;
95 Ui::EqualizerWidget ui;
96 QSlider *bands[BANDS];
97 QLabel *band_texts[BANDS];
99 void delCallbacks( aout_instance_t * );
100 void addCallbacks( aout_instance_t * );
101 void setValues( char *, float );
103 intf_thread_t *p_intf;
113 class Spatializer: public QWidget
117 Spatializer( intf_thread_t *, QWidget * );
118 virtual ~Spatializer();
121 QSlider *spatCtrl[NUM_SP_CTRL];
122 QLabel *ctrl_texts[NUM_SP_CTRL];
123 QLabel *ctrl_readout[NUM_SP_CTRL];
124 float controlVars[5];
125 float oldControlVars[5];
127 QCheckBox *enableCheck;
129 void delCallbacks( aout_instance_t * );
130 void addCallbacks( aout_instance_t * );
131 intf_thread_t *p_intf;
135 void setValues(float *);
136 void setInitValues();
139 class ExtendedControls: public QWidget
143 ExtendedControls( intf_thread_t *, QWidget * ) {};
144 virtual ~ExtendedControls() {};
147 intf_thread_t *p_intf;
155 class SyncControls : public QWidget
159 SyncControls( intf_thread_t *, QWidget * );
160 virtual ~SyncControls() {};
162 intf_thread_t *p_intf;
163 QDoubleSpinBox *AVSpin;
164 QDoubleSpinBox *subsSpin;
165 QDoubleSpinBox *subSpeedSpin;
169 void advanceAudio( double );
170 void advanceSubs( double );
171 void adjustSubsSpeed( double );