1 /*****************************************************************************
2 * extended_panels.hpp : Exentended Panels
3 ****************************************************************************
4 * Copyright (C) 2006 the VideoLAN team
5 * $Id: preferences.hpp 16643 2006-09-13 12:45:46Z zorglub $
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"
44 class ExtVideo: public QWidget
48 ExtVideo( intf_thread_t *, QWidget * );
50 /*void gotoConf( QObject* );*/
52 Ui::ExtVideoWidget ui;
53 QSignalMapper* filterMapper;
54 intf_thread_t *p_intf;
55 void initComboBoxItems( QObject* );
56 void setWidgetValue( QObject* );
57 void ChangeVFiltersString( char *psz_name, vlc_bool_t b_add );
60 void updateFilterOptions();
63 class ExtV4l2 : public QWidget
67 ExtV4l2( intf_thread_t *, QWidget * );
70 virtual void showEvent( QShowEvent *event );
73 intf_thread_t *p_intf;
79 void ValueChange( int value );
80 void ValueChange( bool value );
83 class Equalizer: public QWidget
87 Equalizer( intf_thread_t *, QWidget * );
89 QComboBox *presetsComboBox;
92 Ui::EqualizerWidget ui;
93 QSlider *bands[BANDS];
94 QLabel *band_texts[BANDS];
96 void delCallbacks( aout_instance_t * );
97 void addCallbacks( aout_instance_t * );
98 void setValues( char *, float );
100 intf_thread_t *p_intf;
110 class Spatializer: public QWidget
114 Spatializer( intf_thread_t *, QWidget * );
115 virtual ~Spatializer();
118 QSlider *spatCtrl[NUM_SP_CTRL];
119 QLabel *ctrl_texts[NUM_SP_CTRL];
120 QLabel *ctrl_readout[NUM_SP_CTRL];
121 float controlVars[5];
122 float oldControlVars[5];
124 QCheckBox *enableCheck;
126 void delCallbacks( aout_instance_t * );
127 void addCallbacks( aout_instance_t * );
128 intf_thread_t *p_intf;
132 void setValues(float *);
133 void setInitValues();
136 class ExtendedControls: public QWidget
140 ExtendedControls( intf_thread_t *, QWidget * ) {};
141 virtual ~ExtendedControls() {};
144 intf_thread_t *p_intf;