Commit 72a25f19 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - SPrefs, doing funny things with qobject_cast to improve a bit the code...

parent b8836621
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <QGroupBox> #include <QGroupBox>
#include <QTreeWidgetItem> #include <QTreeWidgetItem>
#include <QSignalMapper> #include <QSignalMapper>
QString formatTooltip(const QString & tooltip) QString formatTooltip(const QString & tooltip)
{ {
QString formatted = QString formatted =
......
...@@ -28,6 +28,13 @@ ...@@ -28,6 +28,13 @@
#include <vlc_interface.h> #include <vlc_interface.h>
#include <QWidget> #include <QWidget>
#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 { enum {
SPrefsInterface = 0, SPrefsInterface = 0,
SPrefsAudio, SPrefsAudio,
...@@ -39,6 +46,19 @@ enum { ...@@ -39,6 +46,19 @@ enum {
}; };
#define SPrefsDefaultCat SPrefsInterface #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 ConfigControl;
class QComboBox; class QComboBox;
class QLineEdit; class QLineEdit;
...@@ -74,18 +94,8 @@ private: ...@@ -74,18 +94,8 @@ private:
int number; int number;
/* this is ugly and bad until I found a new solution */ QList<QWidget *> optionWidgets;
QWidget *alsa_options;
QWidget *oss_options;
QWidget *directx_options;
QWidget *file_options;
QComboBox *audioOutput;
QLineEdit *inputDevice;
QRadioButton *skinInterfaceButton;
QRadioButton *qtInterfaceButton;
QString qs_filter; QString qs_filter;
QCheckBox *normalizerBox;
QCheckBox *recordBox, *dumpBox, *bandwidthBox, *timeshiftBox;
/* Display only the options for the selected audio output */ /* Display only the options for the selected audio output */
private slots: private slots:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment