Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/accessibility/Accessible.d @ 86:12b890a6392a
Work on databinding
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 18 Apr 2009 13:58:35 +0200 |
parents | b98647bc0aef |
children |
comparison
equal
deleted
inserted
replaced
85:6be48cf9f95c | 86:12b890a6392a |
---|---|
1139 if (endIndex > (variants.length - 1)) endIndex = variants.length - 1; | 1139 if (endIndex > (variants.length - 1)) endIndex = variants.length - 1; |
1140 if (enumIndex <= endIndex) { | 1140 if (enumIndex <= endIndex) { |
1141 nextItems = new Object[endIndex - enumIndex + 1]; | 1141 nextItems = new Object[endIndex - enumIndex + 1]; |
1142 for (int i = 0; i < nextItems.length; i++) { | 1142 for (int i = 0; i < nextItems.length; i++) { |
1143 Object child = variants[enumIndex]; | 1143 Object child = variants[enumIndex]; |
1144 if (auto val = cast(ValueWrapperInt)child ) { | 1144 if (auto val = cast(Integer)child ) { |
1145 nextItems[i] = new ValueWrapperInt(childIDToOs(val.value)); | 1145 nextItems[i] = new Integer(childIDToOs(val.intValue())); |
1146 } else { | 1146 } else { |
1147 nextItems[i] = child; | 1147 nextItems[i] = child; |
1148 } | 1148 } |
1149 enumIndex++; | 1149 enumIndex++; |
1150 } | 1150 } |
1151 } | 1151 } |
1152 } | 1152 } |
1153 if (nextItems !is null) { | 1153 if (nextItems !is null) { |
1154 for (int i = 0; i < nextItems.length; i++) { | 1154 for (int i = 0; i < nextItems.length; i++) { |
1155 Object nextItem = nextItems[i]; | 1155 Object nextItem = nextItems[i]; |
1156 if (auto val = cast(ValueWrapperInt)nextItem ) { | 1156 if (auto val = cast(Integer)nextItem ) { |
1157 int item = val.value; | 1157 int item = val.intValue(); |
1158 rgvar[i].vt = COM.VT_I4; | 1158 rgvar[i].vt = COM.VT_I4; |
1159 rgvar[i].byRef = cast(void*)item; | 1159 rgvar[i].byRef = cast(void*)item; |
1160 COM.MoveMemory(rgvar + i * VARIANT.sizeof + 8, &item, 4); | 1160 COM.MoveMemory(rgvar + i * VARIANT.sizeof + 8, &item, 4); |
1161 } else { | 1161 } else { |
1162 Accessible accessible = cast(Accessible) nextItem; | 1162 Accessible accessible = cast(Accessible) nextItem; |