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 *****************************************************************************/
31 #include "ui/equalizer.h"
32 #include "ui/video_effects.h"
40 class ExtVideo: public QWidget
44 ExtVideo( intf_thread_t *, QWidget * );
46 /*void gotoConf( QObject* );*/
48 Ui::ExtVideoWidget ui;
49 QSignalMapper* filterMapper;
50 intf_thread_t *p_intf;
51 void initComboBoxItems( QObject* );
52 void setWidgetValue( QObject* );
53 void ChangeVFiltersString( char *psz_name, vlc_bool_t b_add );
56 void updateFilterOptions();
59 class ExtV4l2 : public QWidget
63 ExtV4l2( intf_thread_t *, QWidget * );
66 virtual void showEvent( QShowEvent *event );
69 intf_thread_t *p_intf;
75 void ValueChange( int value );
76 void ValueChange( bool value );
79 class Equalizer: public QWidget
83 Equalizer( intf_thread_t *, QWidget * );
85 QComboBox *presetsComboBox;
88 Ui::EqualizerWidget ui;
89 QSlider *bands[BANDS];
90 QLabel *band_texts[BANDS];
92 void delCallbacks( aout_instance_t * );
93 void addCallbacks( aout_instance_t * );
94 void setValues( char *, float );
96 intf_thread_t *p_intf;
106 class Spatializer: public QWidget
110 Spatializer( intf_thread_t *, QWidget * );
111 virtual ~Spatializer();
114 QSlider *spatCtrl[NUM_SP_CTRL];
115 QLabel *ctrl_texts[NUM_SP_CTRL];
116 QLabel *ctrl_readout[NUM_SP_CTRL];
117 float controlVars[5];
118 float oldControlVars[5];
120 QCheckBox *enableCheck;
122 void delCallbacks( aout_instance_t * );
123 void addCallbacks( aout_instance_t * );
124 intf_thread_t *p_intf;
128 void setValues(float *);
129 void setInitValues();
132 class ExtendedControls: public QWidget
136 ExtendedControls( intf_thread_t *, QWidget * ) {};
137 virtual ~ExtendedControls() {};
140 intf_thread_t *p_intf;