Improved Keyset Selection Window
[pierogi] / pirmakenames.h
1 #ifndef PIRMAKENAMES_H
2 #define PIRMAKENAMES_H
3
4 #include <QComboBox>
5 #include <map>
6
7 // The list of brands currently known by Pierogi:
8 enum PIRMakeName{
9   Any_Make,
10   Apple_Make,
11   Ei_Make,
12   GoldStar_Make,
13   Hauppauge_Make,
14   JVC_Make,
15   LG_Make,
16   Mitsubishi_Make,
17   Nokia_Make,
18   Panasonic_Make,
19   Philips_Make,
20   RCA_Make,
21   Samsung_Make,
22   Sanyo_Make,
23   Sharp_Make,
24   Sony_Make,
25   Toshiba_Make,
26   Westinghouse_Make,
27   Zenith_Make
28 };
29
30
31 // An object of convenience:
32
33 typedef std::map<PIRMakeName, const char *> MakeCollection;
34
35 class PIRMakeMgr
36 {
37 public:
38   PIRMakeMgr();
39
40   const char *getMakeString(
41     PIRMakeName n);
42
43   void populateComboBox(
44     QComboBox *cb);
45
46 private:
47   MakeCollection makes;
48 };
49
50 #endif // PIRMAKENAMES_H