X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fsimple_preferences.hpp;h=e3414ab7ccff25f0703837fd97d715f7e0eb7f9f;hb=b5e274fa1b9a78af525e0b10f80ab3936ab0b97d;hp=a5b39a7914ac8b991e486aa3ad30696547c50280;hpb=897144d1e6d04da5f454fee57f8947aeae1523ae;p=vlc diff --git a/modules/gui/qt4/components/simple_preferences.hpp b/modules/gui/qt4/components/simple_preferences.hpp index a5b39a7914..e3414ab7cc 100644 --- a/modules/gui/qt4/components/simple_preferences.hpp +++ b/modules/gui/qt4/components/simple_preferences.hpp @@ -2,7 +2,7 @@ * simple_preferences.hpp : Simple prefs **************************************************************************** * Copyright (C) 2006 the VideoLAN team - * $Id: preferences.hpp 16348 2006-08-25 21:10:10Z zorglub $ + * $Id$ * * Authors: Clément Stenac * @@ -24,25 +24,69 @@ #ifndef _SIMPLEPREFS_H_ #define _SIMPLEPREFS_H_ -#include -#include -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#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_interface.h" +#ifdef WIN32 +#include "util/registry.hpp" +#endif 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 { +#ifdef WIN32 + directxW, +#else + alsaW, + ossW, +#endif + fileW, + audioOutCoB, + normalizerChB, + volLW }; +enum { dumpChB, bandwidthChB, timeshiftChB, inputLE, cachingCoB }; +enum { skinRB, qtRB }; + class ConfigControl; +class QComboBox; +class QLineEdit; +class QRadioButton; +class QCheckBox; +class QString; -class SPrefsCatList : public QListWidget +#ifdef WIN32 +class QTreeWidgetItem; +#endif + +class SPrefsCatList : public QWidget { Q_OBJECT; public: @@ -50,6 +94,10 @@ public: virtual ~SPrefsCatList() {}; private: intf_thread_t *p_intf; +signals: + void currentItemChanged( int ); +public slots: + void switchPanel( int ); }; class SPrefsPanel : public QWidget @@ -57,12 +105,32 @@ class SPrefsPanel : public QWidget Q_OBJECT public: SPrefsPanel( intf_thread_t *, QWidget *, int ); - virtual ~SPrefsPanel() {}; + virtual ~SPrefsPanel(); void apply(); void clean(); private: intf_thread_t *p_intf; QList controls; + + int number; + + QList optionWidgets; + QString qs_filter; + +#ifdef WIN32 + QList 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 updateAudioVolume( int ); +#ifdef SYS_MINGW32 + void assoDialog(); + void saveAsso(); +#endif }; #endif