/*****************************************************************************
* preferences_widgets.hpp : Widgets for preferences panels
****************************************************************************
- * Copyright (C) 2006-2007 the VideoLAN team
+ * Copyright (C) 2006-2011 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Variable controls
*******************************************************/
-class ConfigControl : public QObject
+class ConfigControl : public QObject
{
Q_OBJECT
public:
QLabel *, QSlider * );
virtual int getValue() const;
protected:
- QSlider *slider;
+ QSlider *slider;
private:
- QLabel *label;
- void finish();
+ QLabel *label;
+ void finish();
};
class IntegerListConfigControl : public VIntConfigControl
void finish();
};
+class ColorConfigControl : public VIntConfigControl
+{
+Q_OBJECT
+public:
+ ColorConfigControl( vlc_object_t *, module_config_t *, QWidget *,
+ QGridLayout *, int );
+ ColorConfigControl( vlc_object_t *, module_config_t *,
+ QLabel *, QAbstractButton* );
+ virtual ~ColorConfigControl() { delete color_px; }
+ virtual int getValue() const;
+private:
+ QLabel *label;
+ QAbstractButton *color_but;
+ QPixmap *color_px;
+ int i_color;
+ void finish();
+private slots:
+ void selectColor();
+};
+
/*******************************************************
* Float-based controls
*******************************************************/