#ifndef _SIMPLEPREFS_H_
#define _SIMPLEPREFS_H_
-#include <QListWidget>
#include <vlc/vlc.h>
#include <vlc_interface.h>
+#include <QWidget>
enum {
- SPrefsVideo = 0,
+ SPrefsInterface = 0,
SPrefsAudio,
- SPrefsInputAndCodecs,
- SPrefsInterface,
+ SPrefsVideo,
SPrefsSubtitles,
+ SPrefsInputAndCodecs,
SPrefsHotkeys,
SPrefsMax
};
#define SPrefsDefaultCat SPrefsInterface
class ConfigControl;
+class QComboBox;
+class QLineEdit;
+class QRadioButton;
+class QCheckBox;
+class QString;
-class SPrefsCatList : public QListWidget
+class SPrefsCatList : public QWidget
{
Q_OBJECT;
public:
virtual ~SPrefsCatList() {};
private:
intf_thread_t *p_intf;
+signals:
+ void currentItemChanged( int );
+public slots:
+ void switchPanel( int );
};
class SPrefsPanel : public QWidget
private:
intf_thread_t *p_intf;
QList<ConfigControl *> controls;
+
+ int number;
+
+ /* this is ugly and bad until I found a new solution */
+ QWidget *alsa_options;
+ QWidget *oss_options;
+ QWidget *directx_options;
+ QWidget *file_options;
+ QComboBox *audioOutput;
+ QLineEdit *inputDevice;
+ QRadioButton *skinInterfaceButton;
+ QRadioButton *qtInterfaceButton;
+ QString qs_filter;
+ QCheckBox *normalizerBox;
+ QCheckBox *recordBox, *dumpBox, *bandwidthBox, *timeshiftBox;
+
+/* Display only the options for the selected audio output */
+private slots:
+ void lastfm_Changed( int );
+ void updateAudioOptions( int );
};
#endif