]> git.sesse.net Git - vlc/blob - modules/gui/qt4/components/extended_panels.hpp
A bit of headers cleanup
[vlc] / modules / gui / qt4 / components / extended_panels.hpp
1 /*****************************************************************************
2  * preferences_tree.hpp : Tree of modules for preferences
3  ****************************************************************************
4  * Copyright (C) 2006 the VideoLAN team
5  * $Id: preferences.hpp 16643 2006-09-13 12:45:46Z zorglub $
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef _EQUALIZER_H_
25 #define _EQUALIZER_H_
26
27 #include <vlc/vlc.h>
28 #include <vlc_aout.h>
29 #include "ui/equalizer.h"
30
31 #define BANDS 10
32
33 class Equalizer: public QWidget
34 {
35     Q_OBJECT
36 public:
37     Equalizer( intf_thread_t *, QWidget * );
38     virtual ~Equalizer();
39
40 private:
41     Ui::EqualizerWidget ui;
42     QSlider *bands[BANDS];
43     QLabel *band_texts[BANDS];
44
45     void delCallbacks( aout_instance_t * );
46     void addCallbacks( aout_instance_t * );
47     void setValues( char *, float );
48
49     intf_thread_t *p_intf;
50 private slots:
51     void enable(bool);
52     void enable();
53     void set2Pass();
54     void setPreamp();
55     void setBand();
56     void setPreset(int);
57 };
58
59 class ExtendedControls: public QWidget
60 {
61     Q_OBJECT
62 public:
63     ExtendedControls( intf_thread_t *, QWidget * ) {};
64     virtual ~ExtendedControls() {};
65
66 private:
67     intf_thread_t *p_intf;
68 private slots:
69     void slower() {};
70     void faster() {};
71     void normal() {};
72     void snapshot() {};
73 };
74
75 #endif