Modprobe scripts now working! Plus JVC keyset.
[pierogi] / selectionwindow.h
1 #ifndef SELECTIONWINDOW_H
2 #define SELECTIONWINDOW_H
3
4 #include "pirmakenames.h"
5
6 #include <QWidget>
7 #include <QListWidget>
8 #include <QLabel>
9 #include <QComboBox>
10 #include <QGridLayout>
11 #include <QString>
12
13
14 class SelectionWindow : public QWidget
15 {
16   Q_OBJECT
17   
18 public:
19   explicit SelectionWindow(
20     QWidget *parent = 0);
21
22   ~SelectionWindow();
23
24   void addNameToList(
25     QString name,
26     unsigned int index,
27     PIRMakeName make);
28
29   // Public just for now, to get a quick hack working.  (Actually, this whole
30   // class should be replaced with a UI form eventually, to match the rest of
31   // the code...)
32   QListWidget *nameListWidget;
33
34 private slots:
35   void filterListByMake(
36     int make);
37
38 private:
39   QLabel *makeLabel;
40   QComboBox *makeComboBox;
41   QGridLayout *layout;
42 };
43
44
45 #endif // SELECTIONWINDOW_H