#include "pirmakenames.h"
#include "pirdevicetypenames.h"
+#include "pirdeviceinfo.h"
class PIRKeysetWidgetItem;
class QListWidget;
+class QKeyEvent;
namespace Ui {
class PIRSelectDeviceForm;
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);
// 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();
PIRMakeName currentMake;
PIRDeviceTypeName currentDevice;
+ QString searchString;
};
#endif // PIRSELECTDEVICEFORM_H