Advanced Settings Panel
[pierogi] / pirselectdeviceform.h
index ed30206..8c3bebb 100644 (file)
@@ -5,9 +5,11 @@
 
 #include "pirmakenames.h"
 #include "pirdevicetypenames.h"
+#include "pirdeviceinfo.h"
 
 class PIRKeysetWidgetItem;
 class QListWidget;
+class QKeyEvent;
 
 namespace Ui {
 class PIRSelectDeviceForm;
@@ -18,13 +20,17 @@ class PIRSelectDeviceForm : public QWidget
   Q_OBJECT
   
 public:
-  explicit PIRSelectDeviceForm(QWidget *parent = 0);
+  explicit PIRSelectDeviceForm(
+    QWidget *parent = 0);
+
   ~PIRSelectDeviceForm();
 
+/*
   void addNameToList(
     QString name,
     unsigned int index,
     PIRMakeName make);
+*/
 
   void addWidgetItem(
     PIRKeysetWidgetItem *kwi);
@@ -32,13 +38,23 @@ public:
   // This is a bit of a hack, but not sure how to create a connection otherwise.
   QListWidget *getDeviceListWidget();
 
+protected:
+  void keyPressEvent(
+    QKeyEvent *event);
+
 private slots:
   void filterListByMake(
     int make);
 
   void filterListByDeviceType(
     int deviceType);
+
+  void filterListByString(
+    QString string);
+
+  void on_searchStringLineEdit_textChanged(const QString &arg1);
+  void on_ssClosePushButton_clicked();
+
 private:
   void refilterList();
 
@@ -46,6 +62,7 @@ private:
 
   PIRMakeName currentMake;
   PIRDeviceTypeName currentDevice;
+  QString searchString;
 };
 
 #endif // PIRSELECTDEVICEFORM_H