#ifndef _PREFERENCESWIDGETS_H_
#define _PREFERENCESWIDGETS_H_
-#include <vlc/vlc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include "qt4.hpp"
#include <assert.h>
#include <QVector>
#include <QDialog>
-
-class QFile;
class QTreeWidget;
class QTreeWidgetItem;
class QGroupBox;
class IntegerListConfigControl : public VIntConfigControl
{
+Q_OBJECT
public:
IntegerListConfigControl( vlc_object_t *, module_config_t *, QWidget *,
bool, QGridLayout*, int& );
virtual void hide() { combo->hide(); if( label ) label->hide(); }
virtual void show() { combo->show(); if( label ) label->show(); }
private:
- void finish( bool );
+ void finish(module_config_t *, bool );
QLabel *label;
QComboBox *combo;
+private slots:
+ void actionRequested( int );
+
};
class BoolConfigControl : public VIntConfigControl
Q_OBJECT;
public:
FileConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- QGridLayout *, int&, bool pwd );
+ QGridLayout *, int& );
FileConfigControl( vlc_object_t *, module_config_t *, QLabel *,
- QLineEdit *, QPushButton *, bool pwd );
+ QLineEdit *, QPushButton * );
virtual ~FileConfigControl() {};
virtual QString getValue() { return text->text(); };
virtual void show() { text->show(); if( label ) label->show(); browse->show(); }
Q_OBJECT;
public:
DirectoryConfigControl( vlc_object_t *, module_config_t *, QWidget *,
- QGridLayout *, int&, bool pwd );
+ QGridLayout *, int& );
DirectoryConfigControl( vlc_object_t *, module_config_t *, QLabel *,
- QLineEdit *, QPushButton *, bool pwd );
+ QLineEdit *, QPushButton * );
virtual ~DirectoryConfigControl() {};
public slots:
virtual void updateField();
};
+#if 0
class FontConfigControl : public FileConfigControl
{
Q_OBJECT;
public slots:
virtual void updateField();
};
+#endif
class ModuleConfigControl : public VStringConfigControl
{
class ModuleListConfigControl : public VStringConfigControl
{
Q_OBJECT;
+ friend class ConfigControl;
public:
ModuleListConfigControl( vlc_object_t *, module_config_t *, QWidget *,
bool, QGridLayout*, int& );
virtual void hide();
virtual void show();
public slots:
- void onUpdate( int value );
+ void onUpdate();
private:
void finish( bool );
QVector<checkBoxListItem*> modules;
virtual QString getValue();
virtual void hide() { combo->hide(); if( label ) label->hide(); }
virtual void show() { combo->show(); if( label ) label->show(); }
- QComboBox *combo;
+ QComboBox *combo;
private:
- void finish( bool );
+ void finish(module_config_t *, bool );
QLabel *label;
private slots:
void actionRequested( int );
};
void setfillVLCConfigCombo(const char *configname, intf_thread_t *p_intf,
- QComboBox *combo, QWidget *parent = 0 );
+ QComboBox *combo );
#if 0
struct ModuleCheckBox {
Q_OBJECT
public:
void setValue( int _value ){ value = _value; }
- int getValue(){ return value; }
+ int getValue() const { return value; }
+public slots:
+ virtual void clear(void) { value = 0; QLineEdit::clear(); }
private:
int value;
virtual void mousePressEvent( QMouseEvent *event );
private slots:
void setTheKey();
void selectKey( QTreeWidgetItem * = NULL );
- void select1Key( QTreeWidgetItem *);
+ void select1Key();
};
class KeyInputDialog : public QDialog