Change back to real tabbed window, updates keysets
[pierogi] / pirselectkeysetform.h
index fd268ea..bb0ed2b 100644 (file)
@@ -2,11 +2,14 @@
 #define PIRSELECTKEYSETFORM_H
 
 #include <QWidget>
-#include <QListWidget>
 #include <QString>
 
 #include "pirmakenames.h"
-#include "pirdevicetypenames.h"
+
+class QListWidget;
+class PIRKeysetWidgetItem;
+class QKeyEvent;
+//class PIRSearchStringDialog;
 
 namespace Ui {
 class PIRSelectKeysetForm;
@@ -20,28 +23,40 @@ public:
   explicit PIRSelectKeysetForm(QWidget *parent = 0);
   ~PIRSelectKeysetForm();
 
+/*
   void addNameToList(
     QString name,
     unsigned int index,
     PIRMakeName make);
+*/
+
+  void addWidgetItem(
+    PIRKeysetWidgetItem *kwi);
 
   // This is a bit of a hack, but not sure how to create a connection otherwise.
   QListWidget *getKeysetListWidget();
 
+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();
 
   Ui::PIRSelectKeysetForm *ui;
 
   PIRMakeName currentMake;
-  PIRDeviceTypeName currentDevice;
+  QString searchString;
 };
 
 #endif // PIRSELECTKEYSETFORM_H