00001 // $Id: wxOil/wxkeymap.h, 1, 01-Jan-2006, Anonymous $ 00002 #ifndef WXOIL_WXKEYMAP 00003 #define WXOIL_WXKEYMAP 00004 00005 #include <map> 00006 #include "fixstr32.h" 00007 00008 /******************************************************************************************** 00009 00010 class: wxKeyMap 00011 Author: Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> M'Sadoques 00012 Created: 28/05/2007 00013 Purpose: Maps the string representation of a wx key (i.e. "WXK_F1"), into it's enum value. 00014 00015 ********************************************************************************************/ 00016 class wxKeyMap 00017 { 00018 static std::map<String_32, UINT32> keymap; 00019 static void GenerateMap(); 00020 public: 00021 static UINT32 GetKeyVal(String_32); 00022 }; 00023 00024 #endif