]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/simple_preferences.hpp
Qt4 - Windows. Put the file extensions in a tree and in categories. Various checks...
[vlc] / modules / gui / qt4 / components / simple_preferences.hpp
index 7e249836cc50dce1caba5537f9c1f5d48eaf65c0..68c0ac25557b82d91b669a7cf9aecde7614a669a 100644 (file)
 #ifndef _SIMPLEPREFS_H_
 #define _SIMPLEPREFS_H_
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
 #include <QWidget>
@@ -33,6 +37,9 @@
 #include "ui/sprefs_video.h"
 #include "ui/sprefs_subtitles.h"
 #include "ui/sprefs_interface.h"
+#ifdef WIN32
+#include "util/registry.hpp"
+#endif
 
 enum {
     SPrefsInterface = 0,
@@ -65,6 +72,10 @@ class QRadioButton;
 class QCheckBox;
 class QString;
 
+#ifdef WIN32
+class QTreeWidgetItem;
+#endif
+
 class SPrefsCatList : public QWidget
 {
     Q_OBJECT;
@@ -96,11 +107,19 @@ private:
     QList<QWidget *> optionWidgets;
     QString qs_filter;
 
+#ifdef WIN32
+    QList<QTreeWidgetItem *> listAsso;
+    bool addType( const char * psz_ext, QTreeWidgetItem*, QTreeWidgetItem*, QVLCRegistry* );
+#endif
+
 /* Display only the options for the selected audio output */
 private slots:
     void lastfm_Changed( int );
-    void updateAudioOptions( int );
+    void updateAudioOptions( int ); 
+#ifdef SYS_MINGW32
     void assoDialog();
+    void saveAsso();
+#endif
 };
 
 #endif