#include <QDoubleSpinBox>
#include <QComboBox>
#include <QCheckBox>
+#include <QVector>
#include "ui/input_stats.h"
#include "qt4.hpp"
#include <assert.h>
module_config_t*,QWidget* );
static ConfigControl * createControl( vlc_object_t*,
module_config_t*,QWidget*,
- QGridLayout *, int);
+ QGridLayout *, int& );
void doApply( intf_thread_t *);
protected:
vlc_object_t *p_this;
{
public:
IntegerConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- QGridLayout *, int );
+ QGridLayout *, int& );
IntegerConfigControl( vlc_object_t *, module_config_t *,
QLabel*, QSpinBox* );
virtual ~IntegerConfigControl() {};
{
public:
IntegerRangeConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- QGridLayout *, int );
+ QGridLayout *, int& );
IntegerRangeConfigControl( vlc_object_t *, module_config_t *,
QLabel*, QSpinBox* );
private:
{
public:
IntegerListConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- bool, QGridLayout*, int );
+ bool, QGridLayout*, int& );
IntegerListConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QComboBox*, bool );
virtual ~IntegerListConfigControl() {};
{
public:
BoolConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- QGridLayout *, int );
+ QGridLayout *, int& );
BoolConfigControl( vlc_object_t *, module_config_t *,
QLabel *, QCheckBox*, bool );
virtual ~BoolConfigControl() {};
{
public:
FloatConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- QGridLayout *, int );
+ QGridLayout *, int& );
FloatConfigControl( vlc_object_t *, module_config_t *,
QLabel*, QDoubleSpinBox* );
virtual ~FloatConfigControl() {};
{
public:
FloatRangeConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- QGridLayout *, int );
+ QGridLayout *, int& );
FloatRangeConfigControl( vlc_object_t *, module_config_t *,
QLabel*, QDoubleSpinBox* );
private:
{
public:
StringConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- QGridLayout *, int, bool pwd );
+ QGridLayout *, int&, bool pwd );
StringConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QLineEdit*, bool pwd );
virtual ~StringConfigControl() {};
{
public:
ModuleConfigControl( vlc_object_t *, module_config_t *, QWidget *, bool,
- QGridLayout*, int );
+ QGridLayout*, int& );
ModuleConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QComboBox*, bool );
virtual ~ModuleConfigControl() {};
QComboBox *combo;
};
+class ModuleListConfigControl : public VStringConfigControl
+{
+ Q_OBJECT;
+public:
+ ModuleListConfigControl( vlc_object_t *, module_config_t *, QWidget *,
+ bool, QGridLayout*, int& );
+// ModuleListConfigControl( vlc_object_t *, module_config_t *, QLabel *,
+// QComboBox*, bool );
+ virtual ~ModuleListConfigControl();
+ virtual QString getValue();
+ virtual void hide();
+ virtual void show();
+public slots:
+ void wakeUp_TheUserJustClickedOnSomething( int value );
+private:
+ void finish( bool );
+ QVector<QCheckBox*> modules;
+ QLabel *label;
+ QLineEdit *text;
+};
+
class StringListConfigControl : public VStringConfigControl
{
public:
StringListConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- bool, QGridLayout*, int );
+ bool, QGridLayout*, int& );
StringListConfigControl( vlc_object_t *, module_config_t *, QLabel *,
QComboBox*, bool );
virtual ~StringListConfigControl() {};