]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/simple_preferences.hpp
Qt4 - SPrefs, save the access-filter.
[vlc] / modules / gui / qt4 / components / simple_preferences.hpp
index b9ff67286ff7f35fc1b25602a1e806c4ecf6d96c..a45385abe45ebfacc0de98583d5ae4ccdb6d1d36 100644 (file)
 #ifndef _SIMPLEPREFS_H_
 #define _SIMPLEPREFS_H_
 
-#include <QListWidget>
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
+#include <QWidget>
 
 enum {
-    SPrefsVideo = 0,
+    SPrefsInterface = 0,
     SPrefsAudio,
-    SPrefsInputAndCodecs,
-    SPrefsInterface,
+    SPrefsVideo,
     SPrefsSubtitles,
+    SPrefsInputAndCodecs,
     SPrefsHotkeys,
     SPrefsMax
 };
 #define SPrefsDefaultCat SPrefsInterface
 
 class ConfigControl;
+class QComboBox;
+class QLineEdit;
+class QRadioButton;
+class QCheckBox;
+class QString;
 
-class SPrefsCatList : public QListWidget
+class SPrefsCatList : public QWidget
 {
     Q_OBJECT;
 public:
@@ -49,6 +54,10 @@ public:
     virtual ~SPrefsCatList() {};
 private:
     intf_thread_t *p_intf;
+signals:
+    void currentItemChanged( int );
+public slots:
+    void switchPanel( int );
 };
 
 class SPrefsPanel : public QWidget
@@ -62,6 +71,26 @@ public:
 private:
     intf_thread_t *p_intf;
     QList<ConfigControl *> controls;
+
+    int number;
+
+    /* this is ugly and bad until I found a new solution */
+    QWidget *alsa_options;
+    QWidget *oss_options;
+    QWidget *directx_options;
+    QWidget *file_options;
+    QComboBox *audioOutput;
+    QLineEdit *inputDevice;
+    QRadioButton *skinInterfaceButton;
+    QRadioButton *qtInterfaceButton;
+    QString qs_filter;
+    QCheckBox *normalizerBox;
+    QCheckBox *recordBox, *dumpBox, *bandwidthBox, *timeshiftBox;
+
+/* Display only the options for the selected audio output */
+private slots:
+    void lastfm_Changed( int );
+    void updateAudioOptions( int );
 };
 
 #endif