]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/preferences_widgets.hpp
Hotkey selector widget. Save not implemented yet
[vlc] / modules / gui / qt4 / components / preferences_widgets.hpp
index e5c7f4f082edaa113f739df23f7767a8cdd1c73f..11e3877c8f5a31218d77b8b732433d7a57302601 100644 (file)
@@ -33,6 +33,8 @@
 #include <QComboBox>
 #include <QCheckBox>
 #include <QVector>
+#include <QDialog>
+
 #include "ui/input_stats.h"
 #include "qt4.hpp"
 #include <assert.h>
@@ -310,6 +312,20 @@ private slot:
 /**********************************************************************
  * Key selector widget
  **********************************************************************/
+class KeyInputDialog : public QDialog
+{
+public:
+    KeyInputDialog( QList<module_config_t *> &, char * );
+    int keyValue;
+    bool conflicts;
+private:
+    void keyPressEvent( QKeyEvent *);
+    QLabel *selected;
+    QLabel *warning;
+    char * keyToChange;
+    QList<module_config_t*> values;
+};
+
 class KeySelectorControl : public ConfigControl
 {
     Q_OBJECT;
@@ -325,6 +341,9 @@ private:
     void finish();
     QLabel *label;
     QTreeWidget *table;
+    QList<module_config_t *> values;
+private slots:
+    void selectKey( QTreeWidgetItem *);
 };
 
 #endif