]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/extended_panels.hpp
Add v4l2 section in extended pannel. The code isn't v4l2 specific at all so it could...
[vlc] / modules / gui / qt4 / components / extended_panels.hpp
index 35084d1ddb96658c34b7cc26436ca5dd424296cc..596bd2adfda8877ab2438ad96c3bf2ed9b2fe735 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/v4l2.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:
@@ -51,12 +55,32 @@ private slots:
     void updateFilterOptions();
 };
 
+class ExtV4l2 : public QWidget
+{
+    Q_OBJECT
+public:
+    ExtV4l2( intf_thread_t *, QWidget * );
+    virtual ~ExtV4l2();
+
+private:
+    intf_thread_t *p_intf;
+    Ui::ExtV4l2Widget ui;
+    QVBoxLayout *layout;
+    QLabel *help;
+
+private slots:
+    void Refresh( void );
+    void ValueChange( int value );
+    void ValueChange( bool value );
+};
+
 class Equalizer: public QWidget
 {
     Q_OBJECT
 public:
     Equalizer( intf_thread_t *, QWidget * );
     virtual ~Equalizer();
+    QComboBox *presetsComboBox;
 
 private:
     Ui::EqualizerWidget ui;
@@ -77,6 +101,32 @@ private slots:
     void setPreset(int);
 };
 
+class Spatializer: public QWidget
+{
+    Q_OBJECT
+public:
+    Spatializer( intf_thread_t *, QWidget * );
+    virtual ~Spatializer();
+
+private:
+    QSlider *spatCtrl[NUM_SP_CTRL];
+    QLabel *ctrl_texts[NUM_SP_CTRL];
+    QLabel *ctrl_readout[NUM_SP_CTRL];
+    float controlVars[5];
+    float oldControlVars[5];
+
+    QCheckBox *enableCheck;
+
+    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