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 *****************************************************************************/
32 #include <vlc_common.h>
35 #include "ui/equalizer.h"
36 #include "ui/video_effects.h"
46 class ExtVideo: public QObject
49 friend class ExtendedDialog;
51 ExtVideo( struct intf_thread_t *, QTabWidget * );
53 /*void gotoConf( QObject* );*/
55 Ui::ExtVideoWidget ui;
56 QSignalMapper* filterMapper;
57 intf_thread_t *p_intf;
58 vout_thread_t *p_vout;
59 void initComboBoxItems( QObject* );
60 void setWidgetValue( QObject* );
61 void ChangeVFiltersString( const char *psz_name, bool b_add );
65 void updateFilterOptions();
69 class ExtV4l2 : public QWidget
73 ExtV4l2( intf_thread_t *, QWidget * );
76 virtual void showEvent( QShowEvent *event );
79 intf_thread_t *p_intf;
85 void ValueChange( int value );
86 void ValueChange( bool value );
89 class Equalizer: public QWidget
92 friend class ExtendedDialog;
94 Equalizer( intf_thread_t *, QWidget * );
96 QComboBox *presetsComboBox;
98 char * createValuesFromPreset( int i_preset );
99 void updateUIFromCore();
101 Ui::EqualizerWidget ui;
102 QSlider *bands[BANDS];
103 QLabel *band_texts[BANDS];
105 void delCallbacks( aout_instance_t * );
106 void addCallbacks( aout_instance_t * );
108 intf_thread_t *p_intf;
116 void setCorePreset(int);
117 void updateUISliderValues( int );
120 class Spatializer: public QWidget
124 Spatializer( intf_thread_t *, QWidget * );
125 virtual ~Spatializer();
128 QSlider *spatCtrl[NUM_SP_CTRL];
129 QLabel *ctrl_texts[NUM_SP_CTRL];
130 QLabel *ctrl_readout[NUM_SP_CTRL];
131 float controlVars[5];
132 float oldControlVars[5];
134 QCheckBox *enableCheck;
136 void delCallbacks( aout_instance_t * );
137 void addCallbacks( aout_instance_t * );
138 intf_thread_t *p_intf;
142 void setValues(float *);
143 void setInitValues();
146 class SyncControls : public QWidget
149 friend class ExtendedDialog;
151 SyncControls( intf_thread_t *, QWidget * );
152 virtual ~SyncControls() {};
154 intf_thread_t *p_intf;
155 QDoubleSpinBox *AVSpin;
156 QDoubleSpinBox *subsSpin;
157 QDoubleSpinBox *subSpeedSpin;
165 void advanceAudio( double );
166 void advanceSubs( double );
167 void adjustSubsSpeed( double );