Mercurial > projects > dstep
comparison dstep/coreservices/ae/AERegistry.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | 07194b026fa4 |
children |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | 5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) |
6 */ | 6 */ |
7 module dstep.coreservices.ae.AERegistry; | 7 module dstep.coreservices.ae.AERegistry; |
8 | 8 |
9 //import dstep.AvailabilityMacros; | 9 //import dstep.AvailabilityMacros; |
10 import dstep.coreservices.ae.AEDataModel; | |
10 import dstep.coreservices.ae.AppleEvents; | 11 import dstep.coreservices.ae.AppleEvents; |
11 import dstep.coreservices.carboncore.CarbonCore; | 12 import dstep.coreservices.carboncore.CarbonCore; |
12 import dstep.objc.bridge.TypeEncoding; | 13 import dstep.objc.bridge.TypeEncoding; |
13 | 14 |
14 alias TextRange* TextRangePtr; | 15 alias TextRange* TextRangePtr; |
803 const __typeOffsetArray = getOSType!("ofay"); | 804 const __typeOffsetArray = getOSType!("ofay"); |
804 const __typeTextRangeArray = getOSType!("tray"); | 805 const __typeTextRangeArray = getOSType!("tray"); |
805 const __typeLowLevelEventRecord = getOSType!("evtr"); | 806 const __typeLowLevelEventRecord = getOSType!("evtr"); |
806 const __typeGlyphInfoArray = getOSType!("glia"); | 807 const __typeGlyphInfoArray = getOSType!("glia"); |
807 const __typeEventRef = getOSType!("evrf"); | 808 const __typeEventRef = getOSType!("evrf"); |
808 const __typeText = getOSType!("ypeCha"); | |
809 | |
810 } | 809 } |
811 } | 810 } |
812 | 811 |
813 // This is needed otherwise the enums will fail compiling with gdc | 812 // This is needed otherwise the enums will fail compiling with gdc |
814 version (GNU) | 813 version (GNU) |
892 version (GNU) | 891 version (GNU) |
893 { | 892 { |
894 private | 893 private |
895 { | 894 { |
896 const __kAEInternetSuite = getOSType!("gurl"); | 895 const __kAEInternetSuite = getOSType!("gurl"); |
897 const __kAEISWebStarSuite = getOSType!("x575757B"); | |
898 | |
899 } | 896 } |
900 } | 897 } |
901 | 898 |
902 // This is needed otherwise the enums will fail compiling with gdc | 899 // This is needed otherwise the enums will fail compiling with gdc |
903 version (GNU) | 900 version (GNU) |
1111 const __eCommandDown = getOSType!("Kcmd"); | 1108 const __eCommandDown = getOSType!("Kcmd"); |
1112 const __eControlDown = getOSType!("Kctl"); | 1109 const __eControlDown = getOSType!("Kctl"); |
1113 const __eShiftDown = getOSType!("Ksft"); | 1110 const __eShiftDown = getOSType!("Ksft"); |
1114 const __eCapsLockDown = getOSType!("Kclk"); | 1111 const __eCapsLockDown = getOSType!("Kclk"); |
1115 const __eKeyKind = getOSType!("ekst"); | 1112 const __eKeyKind = getOSType!("ekst"); |
1116 const __eEscapeKey = getOSType!("x6B73350"); | |
1117 const __eDeleteKey = getOSType!("x6B73330"); | |
1118 const __eTabKey = getOSType!("x6B73300"); | |
1119 const __eReturnKey = getOSType!("x6B73240"); | |
1120 const __eClearKey = getOSType!("x6B73470"); | |
1121 const __eEnterKey = getOSType!("x6B734C0"); | |
1122 const __eUpArrowKey = getOSType!("x6B737E0"); | |
1123 const __eDownArrowKey = getOSType!("x6B737D0"); | |
1124 const __eLeftArrowKey = getOSType!("x6B737B0"); | |
1125 const __eRightArrowKey = getOSType!("x6B737C0"); | |
1126 const __eHelpKey = getOSType!("x6B73720"); | |
1127 const __eHomeKey = getOSType!("x6B73730"); | |
1128 const __ePageUpKey = getOSType!("x6B73740"); | |
1129 const __ePageDownKey = getOSType!("x6B73790"); | |
1130 const __eForwardDelKey = getOSType!("x6B73750"); | |
1131 const __eEndKey = getOSType!("x6B73770"); | |
1132 const __eF1Key = getOSType!("x6B737A0"); | |
1133 const __eF2Key = getOSType!("x6B73780"); | |
1134 const __eF3Key = getOSType!("x6B73630"); | |
1135 const __eF4Key = getOSType!("x6B73760"); | |
1136 const __eF5Key = getOSType!("x6B73600"); | |
1137 const __eF6Key = getOSType!("x6B73610"); | |
1138 const __eF7Key = getOSType!("x6B73620"); | |
1139 const __eF8Key = getOSType!("x6B73640"); | |
1140 const __eF9Key = getOSType!("x6B73650"); | |
1141 const __eF10Key = getOSType!("x6B736D0"); | |
1142 const __eF11Key = getOSType!("x6B73670"); | |
1143 const __eF12Key = getOSType!("x6B736F0"); | |
1144 const __eF13Key = getOSType!("x6B73690"); | |
1145 const __eF14Key = getOSType!("x6B736B0"); | |
1146 const __eF15Key = getOSType!("x6B73710"); | |
1147 | 1113 |
1148 } | 1114 } |
1149 } | 1115 } |
1150 | 1116 |
1151 // This is needed otherwise the enums will fail compiling with gdc | 1117 // This is needed otherwise the enums will fail compiling with gdc |
1817 typeOffsetArray = getOSType!("ofay"), | 1783 typeOffsetArray = getOSType!("ofay"), |
1818 typeTextRangeArray = getOSType!("tray"), | 1784 typeTextRangeArray = getOSType!("tray"), |
1819 typeLowLevelEventRecord = getOSType!("evtr"), | 1785 typeLowLevelEventRecord = getOSType!("evtr"), |
1820 typeGlyphInfoArray = getOSType!("glia"), | 1786 typeGlyphInfoArray = getOSType!("glia"), |
1821 typeEventRef = getOSType!("evrf"), | 1787 typeEventRef = getOSType!("evrf"), |
1822 typeText = getOSType!("ypeCha") | 1788 typeText = typeChar |
1823 } | 1789 } |
1824 | 1790 |
1825 enum | 1791 enum |
1826 { | 1792 { |
1827 kTSMOutsideOfBody = 1, | 1793 kTSMOutsideOfBody = 1, |
1912 } | 1878 } |
1913 | 1879 |
1914 enum | 1880 enum |
1915 { | 1881 { |
1916 kAEInternetSuite = getOSType!("gurl"), | 1882 kAEInternetSuite = getOSType!("gurl"), |
1917 kAEISWebStarSuite = getOSType!("x575757B") | 1883 kAEISWebStarSuite = 0x575757BD |
1918 } | 1884 } |
1919 | 1885 |
1920 enum | 1886 enum |
1921 { | 1887 { |
1922 kAEISGetURL = getOSType!("gurl"), | 1888 kAEISGetURL = getOSType!("gurl"), |
2096 eCommandDown = getOSType!("Kcmd"), | 2062 eCommandDown = getOSType!("Kcmd"), |
2097 eControlDown = getOSType!("Kctl"), | 2063 eControlDown = getOSType!("Kctl"), |
2098 eShiftDown = getOSType!("Ksft"), | 2064 eShiftDown = getOSType!("Ksft"), |
2099 eCapsLockDown = getOSType!("Kclk"), | 2065 eCapsLockDown = getOSType!("Kclk"), |
2100 eKeyKind = getOSType!("ekst"), | 2066 eKeyKind = getOSType!("ekst"), |
2101 eEscapeKey = getOSType!("x6B73350"), | 2067 eEscapeKey = 0x6B733500, |
2102 eDeleteKey = getOSType!("x6B73330"), | 2068 eDeleteKey = 0x6B733300, |
2103 eTabKey = getOSType!("x6B73300"), | 2069 eTabKey = 0x6B733000, |
2104 eReturnKey = getOSType!("x6B73240"), | 2070 eReturnKey = 0x6B732400, |
2105 eClearKey = getOSType!("x6B73470"), | 2071 eClearKey = 0x6B734700, |
2106 eEnterKey = getOSType!("x6B734C0"), | 2072 eEnterKey = 0x6B734C00, |
2107 eUpArrowKey = getOSType!("x6B737E0"), | 2073 eUpArrowKey = 0x6B737E00, |
2108 eDownArrowKey = getOSType!("x6B737D0"), | 2074 eDownArrowKey = 0x6B737D00, |
2109 eLeftArrowKey = getOSType!("x6B737B0"), | 2075 eLeftArrowKey = 0x6B737B00, |
2110 eRightArrowKey = getOSType!("x6B737C0"), | 2076 eRightArrowKey = 0x6B737C00, |
2111 eHelpKey = getOSType!("x6B73720"), | 2077 eHelpKey = 0x6B737200, |
2112 eHomeKey = getOSType!("x6B73730"), | 2078 eHomeKey = 0x6B737300, |
2113 ePageUpKey = getOSType!("x6B73740"), | 2079 ePageUpKey = 0x6B737400, |
2114 ePageDownKey = getOSType!("x6B73790"), | 2080 ePageDownKey = 0x6B737900, |
2115 eForwardDelKey = getOSType!("x6B73750"), | 2081 eForwardDelKey = 0x6B737500, |
2116 eEndKey = getOSType!("x6B73770"), | 2082 eEndKey = 0x6B737700, |
2117 eF1Key = getOSType!("x6B737A0"), | 2083 eF1Key = 0x6B737A00, |
2118 eF2Key = getOSType!("x6B73780"), | 2084 eF2Key = 0x6B737800, |
2119 eF3Key = getOSType!("x6B73630"), | 2085 eF3Key = 0x6B736300, |
2120 eF4Key = getOSType!("x6B73760"), | 2086 eF4Key = 0x6B737600, |
2121 eF5Key = getOSType!("x6B73600"), | 2087 eF5Key = 0x6B736000, |
2122 eF6Key = getOSType!("x6B73610"), | 2088 eF6Key = 0x6B736100, |
2123 eF7Key = getOSType!("x6B73620"), | 2089 eF7Key = 0x6B736200, |
2124 eF8Key = getOSType!("x6B73640"), | 2090 eF8Key = 0x6B736400, |
2125 eF9Key = getOSType!("x6B73650"), | 2091 eF9Key = 0x6B736500, |
2126 eF10Key = getOSType!("x6B736D0"), | 2092 eF10Key = 0x6B736D00, |
2127 eF11Key = getOSType!("x6B73670"), | 2093 eF11Key = 0x6B736700, |
2128 eF12Key = getOSType!("x6B736F0"), | 2094 eF12Key = 0x6B736F00, |
2129 eF13Key = getOSType!("x6B73690"), | 2095 eF13Key = 0x6B736900, |
2130 eF14Key = getOSType!("x6B736B0"), | 2096 eF14Key = 0x6B736B00, |
2131 eF15Key = getOSType!("x6B73710") | 2097 eF15Key = 0x6B737100 |
2132 } | 2098 } |
2133 | 2099 |
2134 enum | 2100 enum |
2135 { | 2101 { |
2136 keyAELaunchedAsLogInItem = getOSType!("lgit"), | 2102 keyAELaunchedAsLogInItem = getOSType!("lgit"), |