]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/extended_panels.hpp
Qt4 - Extended Panels: add callback on audio-presets to fix the issue when the audio...
[vlc] / modules / gui / qt4 / components / extended_panels.hpp
index 35084d1ddb96658c34b7cc26436ca5dd424296cc..a7e097849f8208b044a66d093fadc7189b82b121 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * preferences_tree.hpp : Tree of modules for preferences
+ * extended_panels.hpp : Exentended Panels
  ****************************************************************************
  * Copyright (C) 2006 the VideoLAN team
  * $Id: preferences.hpp 16643 2006-09-13 12:45:46Z zorglub $
 
 #include <vlc/vlc.h>
 #include <vlc_aout.h>
+
 #include "ui/equalizer.h"
 #include "ui/video_effects.h"
+#include "ui/spatializer.h"
 
 #define BANDS 10
+#define NUM_SP_CTRL 5
 
 class QSignalMapper;
 
@@ -44,6 +47,7 @@ private:
     Ui::ExtVideoWidget ui;
     QSignalMapper* filterMapper;
     intf_thread_t *p_intf;
+    void initComboBoxItems( QObject* );
     void setWidgetValue( QObject* );
     void ChangeVFiltersString( char *psz_name, vlc_bool_t b_add );
 private slots:
@@ -57,6 +61,7 @@ class Equalizer: public QWidget
 public:
     Equalizer( intf_thread_t *, QWidget * );
     virtual ~Equalizer();
+    QComboBox *presetsComboBox;
 
 private:
     Ui::EqualizerWidget ui;
@@ -77,6 +82,31 @@ private slots:
     void setPreset(int);
 };
 
+class Spatializer: public QWidget
+{
+    Q_OBJECT
+public:
+    Spatializer( intf_thread_t *, QWidget * );
+    virtual ~Spatializer();
+
+private:
+    Ui::SpatializerWidget ui;
+    QSlider *spatCtrl[NUM_SP_CTRL];
+    QLabel *ctrl_texts[NUM_SP_CTRL];
+    QLabel *ctrl_readout[NUM_SP_CTRL];
+    float controlVars[5];
+    float oldControlVars[5];
+
+    void delCallbacks( aout_instance_t * );
+    void addCallbacks( aout_instance_t * );
+    intf_thread_t *p_intf;
+private slots:
+    void enable(bool);
+    void enable();
+    void setValues(float *);
+    void setInitValues();
+};
+
 class ExtendedControls: public QWidget
 {
     Q_OBJECT