// The "Unmapped" key is a placeholder for commands with no key mapping:
Unmapped_Key,
+ // Power control:
+ Power_Key,
+ PowerOn_Key,
+ PowerOff_Key,
+
+ // Menu control:
+ Menu_Key,
+ Up_Key,
+ Down_Key,
+ Left_Key,
+ Right_Key,
+ Select_Key,
+ Exit_Key,
+ PageUp_Key,
+ PageDown_Key,
+ Guide_Key,
+
// Number keys:
Zero_Key,
One_Key,
Dash_Key,
DoubleDigit_Key,
- // Power control:
- Power_Key,
- PowerOn_Key,
- PowerOff_Key,
-
// Volume control:
VolumeUp_Key,
VolumeDown_Key,
RecordTimed_Key,
RecordPDC_Key,
- // Menu control:
- Menu_Key,
- Up_Key,
- Down_Key,
- Left_Key,
- Right_Key,
- Select_Key,
- Exit_Key,
- PageUp_Key,
- PageDown_Key,
- Guide_Key,
-
// Color buttons:
Red_Key,
Green_Key,
ContrastDown_Key,
BalanceRight_Key,
BalanceLeft_Key,
+ Keystone_Key,
+ PictureMute_Key,
+ Focus_Key,
// Input Controls:
Input_Key,
RobotMax_Key,
RobotClean_Key,
+ // Camera controls:
+ OpenShutter_Key,
+ DelayedOpenShutter_Key,
+
// Other keys:
Captions_Key,
Info_Key,
Mode_Key
};
+
+// Need to make the key names visible to users now:
+#include <map>
+#include <QString>
+typedef std::map<PIRKeyName, QString> KeynameCollection;
+typedef std::map<QString, PIRKeyName> ReverseKeynameCollection;
+
+class QComboBox;
+
+class PIRKeynameMgr
+{
+public:
+ PIRKeynameMgr();
+
+ QString getKeynameString(
+ PIRKeyName keyname);
+
+ PIRKeyName getKeynameID(
+ QString keynameString);
+
+ void populateComboBox(
+ QComboBox *cb);
+
+private:
+ KeynameCollection keynameStrings;
+ ReverseKeynameCollection keynameIDs;
+};
+
#endif // PIRKEYNAMES_H