]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/simple_preferences.hpp
Qt4 - Using already defined configuration type. This is needed for finer control...
[vlc] / modules / gui / qt4 / components / simple_preferences.hpp
index 0c43f13b4c31b998c1b50ae7d90119e729ea7a97..004737e83f9eacfca48af5441e04297eb5080a75 100644 (file)
 #ifndef _SIMPLEPREFS_H_
 #define _SIMPLEPREFS_H_
 
-#include <QListWidget>
 #include <vlc/vlc.h>
-#include <vlc/intf.h>
+#include <vlc_interface.h>
+#include <QWidget>
+
+#include "ui/sprefs_input.h"
+#include "ui/sprefs_audio.h"
+#include "ui/sprefs_video.h"
+#include "ui/sprefs_subtitles.h"
+#include "ui/sprefs_interface.h"
 
 enum {
-    SPrefsVideo,
+    SPrefsInterface = 0,
     SPrefsAudio,
-    SPrefsInputAndCodecs,
-    SPrefsPlaylist,
-    SPrefsInterface,
+    SPrefsVideo,
     SPrefsSubtitles,
-    SPrefsAdvanced
+    SPrefsInputAndCodecs,
+    SPrefsHotkeys,
+    SPrefsMax
 };
 #define SPrefsDefaultCat SPrefsInterface
 
+enum {
+    CachingCustom = 0,
+    CachingLowest = 100,
+    CachingLow = 200,
+    CachingNormal = 300,
+    CachingHigh = 400,
+    CachingHigher = 500
+};
+
+enum { alsaW = 0, ossW, directxW, fileW, audioOutCoB, normalizerChB };
+enum { recordChB, dumpChB, bandwidthChB, timeshiftChB, inputLE, cachingCoB };
+enum { skinRB, qtRB };
+
 class ConfigControl;
+class QComboBox;
+class QLineEdit;
+class QRadioButton;
+class QCheckBox;
+class QString;
 
-class SPrefsCatList : public QListWidget
+class SPrefsCatList : public QWidget
 {
     Q_OBJECT;
 public:
     SPrefsCatList( intf_thread_t *, QWidget *);
     virtual ~SPrefsCatList() {};
-
-    void applyAll();
-    void cleanAll();
-
 private:
-    void doAll( bool );
     intf_thread_t *p_intf;
+signals:
+    void currentItemChanged( int );
+public slots:
+    void switchPanel( int );
 };
 
 class SPrefsPanel : public QWidget
@@ -62,11 +85,21 @@ class SPrefsPanel : public QWidget
 public:
     SPrefsPanel( intf_thread_t *, QWidget *, int );
     virtual ~SPrefsPanel() {};
-    void Apply();
-    void Clean();
+    void apply();
+    void clean();
 private:
     intf_thread_t *p_intf;
     QList<ConfigControl *> controls;
+
+    int number;
+
+    QList<QWidget *> optionWidgets;
+    QString qs_filter;
+
+/* Display only the options for the selected audio output */
+private slots:
+    void lastfm_Changed( int );
+    void updateAudioOptions( int );
 };
 
 #endif