X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fsimple_preferences.hpp;h=389835020499086854141ec5c280ff9853d93cc4;hb=2088806206d45c336ff19bb10f439232c5db1dc2;hp=f8f67adb75add356a6741faa57bcb0c0381ab757;hpb=d3fe7f28797d4dba65ffcdd60bf932e758a48a9e;p=vlc diff --git a/modules/gui/qt4/components/simple_preferences.hpp b/modules/gui/qt4/components/simple_preferences.hpp index f8f67adb75..3898350204 100644 --- a/modules/gui/qt4/components/simple_preferences.hpp +++ b/modules/gui/qt4/components/simple_preferences.hpp @@ -24,25 +24,49 @@ #ifndef _SIMPLEPREFS_H_ #define _SIMPLEPREFS_H_ -#include #include #include +#include + +#include "ui/sprefs_input.h" +#include "ui/sprefs_audio.h" +#include "ui/sprefs_video.h" +#include "ui/sprefs_subtitles.h" +#include "ui/sprefs_hotkeys.h" +#include "ui/sprefs_interface.h" enum { - SPrefsVideo = 0, + 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: @@ -50,6 +74,10 @@ public: virtual ~SPrefsCatList() {}; private: intf_thread_t *p_intf; +signals: + void currentItemChanged( int ); +public slots: + void switchPanel( int ); }; class SPrefsPanel : public QWidget @@ -63,6 +91,16 @@ public: private: intf_thread_t *p_intf; QList controls; + + int number; + + QList optionWidgets; + QString qs_filter; + +/* Display only the options for the selected audio output */ +private slots: + void lastfm_Changed( int ); + void updateAudioOptions( int ); }; #endif