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>
34 #include "ui/equalizer.h"
35 #include "ui/video_effects.h"
45 class ExtVideo: public QObject
48 friend class ExtendedDialog;
50 ExtVideo( struct intf_thread_t *, QTabWidget * );
52 /*void gotoConf( QObject* );*/
54 Ui::ExtVideoWidget ui;
55 QSignalMapper* filterMapper;
56 intf_thread_t *p_intf;
57 vout_thread_t *p_vout;
58 void initComboBoxItems( QObject* );
59 void setWidgetValue( QObject* );
60 void ChangeVFiltersString( const char *psz_name, bool b_add );
64 void updateFilterOptions();
68 class ExtV4l2 : public QWidget
72 ExtV4l2( intf_thread_t *, QWidget * );
75 virtual void showEvent( QShowEvent *event );
78 intf_thread_t *p_intf;
84 void ValueChange( int value );
85 void ValueChange( bool value );
88 class Equalizer: public QWidget
91 friend class ExtendedDialog;
93 Equalizer( intf_thread_t *, QWidget * );
95 QComboBox *presetsComboBox;
97 char * createValuesFromPreset( int i_preset );
98 void updateUIFromCore();
100 Ui::EqualizerWidget ui;
101 QSlider *bands[BANDS];
102 QLabel *band_texts[BANDS];
104 void delCallbacks( aout_instance_t * );
105 void addCallbacks( aout_instance_t * );
107 intf_thread_t *p_intf;
115 void setCorePreset(int);
118 class Spatializer: public QWidget
122 Spatializer( intf_thread_t *, QWidget * );
123 virtual ~Spatializer();
126 QSlider *spatCtrl[NUM_SP_CTRL];
127 QLabel *ctrl_texts[NUM_SP_CTRL];
128 QLabel *ctrl_readout[NUM_SP_CTRL];
129 float controlVars[5];
130 float oldControlVars[5];
132 QCheckBox *enableCheck;
134 void delCallbacks( aout_instance_t * );
135 void addCallbacks( aout_instance_t * );
136 intf_thread_t *p_intf;
140 void setValues(float *);
141 void setInitValues();
144 class SyncControls : public QWidget
147 friend class ExtendedDialog;
149 SyncControls( intf_thread_t *, QWidget * );
150 virtual ~SyncControls() {};
152 intf_thread_t *p_intf;
153 QDoubleSpinBox *AVSpin;
154 QDoubleSpinBox *subsSpin;
155 QDoubleSpinBox *subSpeedSpin;
163 void advanceAudio( double );
164 void advanceSubs( double );
165 void adjustSubsSpeed( double );