Interim Update
[pierogi] / pirselectkeysetform.h
1 #ifndef PIRSELECTKEYSETFORM_H
2 #define PIRSELECTKEYSETFORM_H
3
4 #include <QWidget>
5 #include <QString>
6
7 #include "pirmakenames.h"
8
9 class QListWidget;
10 class PIRKeysetWidgetItem;
11
12 namespace Ui {
13 class PIRSelectKeysetForm;
14 }
15
16 class PIRSelectKeysetForm : public QWidget
17 {
18   Q_OBJECT
19   
20 public:
21   explicit PIRSelectKeysetForm(QWidget *parent = 0);
22   ~PIRSelectKeysetForm();
23
24 /*
25   void addNameToList(
26     QString name,
27     unsigned int index,
28     PIRMakeName make);
29 */
30
31   void addWidgetItem(
32     PIRKeysetWidgetItem *kwi);
33
34   // This is a bit of a hack, but not sure how to create a connection otherwise.
35   QListWidget *getKeysetListWidget();
36
37 private slots:
38   void filterListByMake(
39     int make);
40
41 /*
42   void filterListByDeviceType(
43     int deviceType);
44 */
45   
46 private:
47   void refilterList();
48
49   Ui::PIRSelectKeysetForm *ui;
50
51   PIRMakeName currentMake;
52 };
53
54 #endif // PIRSELECTKEYSETFORM_H