#ifndef _SIMPLEPREFS_H_
#define _SIMPLEPREFS_H_
-#include <QListWidget>
#include <vlc/vlc.h>
-#include <vlc/intf.h>
+#include <vlc_interface.h>
+#include <QWidget>
enum {
- SPrefsVideo,
+ SPrefsInterface = 0,
SPrefsAudio,
- SPrefsInputAndCodecs,
- SPrefsPlaylist,
- SPrefsInterface,
+ SPrefsVideo,
SPrefsSubtitles,
- SPrefsAdvanced
+ SPrefsInputAndCodecs,
+ SPrefsHotkeys,
+ SPrefsMax
};
#define SPrefsDefaultCat SPrefsInterface
class ConfigControl;
+class QComboBox;
+class QLineEdit;
-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
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;
+
+ QWidget *alsa_options;
+ QWidget *oss_options;
+ QWidget *directx_options;
+ QWidget *file_options;
+ QComboBox *audioOutput;
+ QLineEdit *inputDevice;
+
+/* Display only the options for the selected audio output */
+private slots:
+ void lastfm_Changed( int );
+ void updateAudioOptions( int );
};
#endif