# include "config.h"
#endif
-#include <vlc_common.h>
-
#include "qt4.hpp"
#include <assert.h>
#include <QVector>
#include <QDialog>
-
-class QFile;
class QTreeWidget;
class QTreeWidgetItem;
class QGroupBox;
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();
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(module_config_t *, bool );
QLabel *label;
};
void setfillVLCConfigCombo(const char *configname, intf_thread_t *p_intf,
- QComboBox *combo, QWidget *parent = 0 );
+ QComboBox *combo );
#if 0
struct ModuleCheckBox {
**********************************************************************/
class KeyShortcutEdit: public QLineEdit
{
- Q_OBJECT
+ Q_OBJECT;
public:
void setValue( int _value ){ value = _value; }
int getValue() const { return value; }
+
+ void setGlobal( bool _value ) { b_global = _value; }
+ bool getGlobal() const { return b_global; }
public slots:
- virtual void clear(void) { value = 0; QLineEdit::clear(); }
+ virtual void clear(void) { value = 0; QLineEdit::clear(); b_global = false;}
private:
int value;
+ bool b_global;
virtual void mousePressEvent( QMouseEvent *event );
signals:
void pressed();
};
+class SearchLineEdit;
class KeySelectorControl : public ConfigControl
{
Q_OBJECT;
QTreeWidget *table;
KeyShortcutEdit *shortcutValue;
QList<module_config_t *> values;
+ SearchLineEdit *actionSearch;
private slots:
void setTheKey();
- void selectKey( QTreeWidgetItem * = NULL );
+ void selectKey( QTreeWidgetItem * = NULL, int column = 1 );
void select1Key();
+ void filter( const QString & );
};
class KeyInputDialog : public QDialog
{
public:
- KeyInputDialog( QTreeWidget *, QString, QWidget * );
+ KeyInputDialog( QTreeWidget *, const QString&, QWidget *, bool b_global = false);
int keyValue;
bool conflicts;
private:
void checkForConflicts( int i_vlckey );
void keyPressEvent( QKeyEvent *);
void wheelEvent( QWheelEvent *);
- QLabel *selected;
+ QLabel *selected, *warning;
QVBoxLayout *vLayout;
QDialogButtonBox *buttonBox;
+ bool b_global;
};
#endif