// 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,
RearVolumeDown_Key,
CenterVolumeUp_Key,
CenterVolumeDown_Key,
+ WooferUp_Key,
+ WooferDown_Key,
// Channel control:
ChannelUp_Key,
Play_Key,
Pause_Key,
Stop_Key,
- Record_Key,
- RecordPause_Key,
- RecordStop_Key,
- RecordMute_Key,
FastForward_Key,
Rewind_Key,
+ PlayX2_Key,
Next_Key,
Previous_Key,
StepForward_Key,
SlowMinus_Key,
Timer_Key,
Clock_Key,
- NextDisc_Key,
- PrevDisc_Key,
-
- // Menu control:
- Menu_Key,
- Up_Key,
- Down_Key,
- Left_Key,
- Right_Key,
- Select_Key,
- Exit_Key,
- PageUp_Key,
- PageDown_Key,
- Guide_Key,
+ Record_Key,
+ RecordPause_Key,
+ RecordStop_Key,
+ RecordMute_Key,
+ RecordTimed_Key,
+ RecordPDC_Key,
// Color buttons:
Red_Key,
PIPScan_Key,
// DVD / Blue-ray / etc. keys:
+ NextDisc_Key,
+ PrevDisc_Key,
DiscTitle_Key,
DiscMenu_Key,
+ DiscOne_Key,
+ DiscTwo_Key,
+ DiscThree_Key,
Angle_Key,
// VHS / Beta / etc. keys:
TrackingPlus_Key,
TrackingMinus_Key,
AutoTracking_Key,
+ IndexSearch_Key, // also known as VISS
+ IndexMark_Key,
+ IndexErase_Key,
+ OneTouchPlayBack_Key,
// Audio/Video Adjustment Controls:
PictureMode_Key,
ContrastDown_Key,
BalanceRight_Key,
BalanceLeft_Key,
+ Keystone_Key,
+ PictureMute_Key,
+ Focus_Key,
// Input Controls:
Input_Key,
PCInput_Key,
CompositeInput_Key,
Composite2Input_Key,
+ SVideoInput_Key,
+ SVideo2Input_Key,
ComponentInput_Key,
Component2Input_Key,
HDMIInput_Key,
CableInput_Key,
SatInput_Key,
DVRInput_Key,
+ OpticalInput_Key,
+ DigitalCoaxInput_Key,
+ USBInput_Key,
// "Program" Controls:
Program_Key,
NextPreset_Key,
PrevPreset_Key,
+ // Audio controls:
+// TunerBand_Key,
+ FMMode_Key,
+ FM_Key,
+ AM_Key, // also "MW"
+ LW_Key,
+
+ // Air Conditioner controls:
+ TempUp_Key,
+ TempDown_Key,
+ Fan_Key,
+ Cool_Key,
+ Heat_Key,
+ Oscillate_Key,
+ FanFaster_Key,
+ FanSlower_Key,
+ EnergySave_Key,
+
+ // iRobot controls:
+ RobotForward_Key,
+ RobotCW_Key,
+ RobotCCW_Key,
+ RobotSpot_Key,
+ RobotMax_Key,
+ RobotClean_Key,
+
+ // Camera controls:
+ OpenShutter_Key,
+ DelayedOpenShutter_Key,
+
// Other keys:
Captions_Key,
Info_Key,
Scan_Key,
Zoom_Key,
LiveTV_Key,
- TunerBand_Key,
- FMMode_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