Lines Matching defs:xlations
93 #define NumStateTrees(xlations) \
94 ((translateData->isSimple) ? 1 : (TMComplexXlations(xlations))->numTrees)
764 XtTranslations xlations = tmRecPtr->translations;
776 ((!match || !complexMatchState) && (i < xlations->numStateTrees));
780 (TMSimpleStateTree) xlations->stateTreeTbl[i];
865 (TMSimpleStateTree) xlations->stateTreeTbl[matchTreeIndex],
980 XtTranslations xlations = tmRecPtr->translations;
985 (TMComplexStateTree *) &xlations->stateTreeTbl[0];
988 for (i = 0; i < xlations->numStateTrees; i++, stateTreePtr++) {
1038 xlations->stateTreeTbl[matchTreeIndex],
1201 XtTranslations xlations;
1205 xlations = widget->core.tm.translations;
1206 if (xlations == NULL)
1224 xlations->eventMask = 0;
1225 for (i = 0; i < xlations->numStateTrees; i++) {
1226 TMStateTree stateTree = xlations->stateTreeTbl[i];
1230 (XtPointer) &xlations->eventMask);
1238 if (xlations->eventMask & ButtonPressMask)
1239 xlations->eventMask |= ButtonReleaseMask;
1240 if (xlations->eventMask & ButtonReleaseMask)
1241 xlations->eventMask |= ButtonPressMask;
1271 XtTranslations xlations = widget->core.tm.translations;
1273 if (xlations == NULL)
1276 for (i = 0; i < xlations->numStateTrees; i++) {
1278 (TMSimpleStateTree) xlations->stateTreeTbl[i];
1290 XtTranslations xlations = widget->core.tm.translations;
1292 _XtUnbindActions(widget, xlations, (TMBindData) widget->core.tm.proc_table);
1359 XtTranslations xlations;
1362 xlations = (XtTranslations)
1375 _XtGlobalTM.tmTbl[_XtGlobalTM.numTms++] = xlations;
1379 xlations->composers[0] = first;
1380 xlations->composers[1] = second;
1381 xlations->hasBindings = False;
1382 xlations->operation = XtTableReplace;
1385 xlations->stateTreeTbl[i] = (TMStateTree) stateTrees[i];
1388 xlations->numStateTrees = numStateTrees;
1389 xlations->eventMask = 0;
1390 return xlations;
1579 * Internal Converter for merging. Old and New must both be valid xlations
1589 XtTranslations first, second, xlations;
1618 xlations = _XtCreateXlations(stateTrees, numStateTrees, first, second);
1621 *(XtTranslations *) to->addr = xlations;
1626 staticStateTable = xlations;
1678 * xlations being removed. It currently doesn't differentiate between
1684 XtTranslations xlations,
1694 if (!xlations || (xlations == unmergeXlations))
1697 if (xlations->composers[0]) {
1698 first = UnmergeTranslations(widget, xlations->composers[0],
1706 if (xlations->composers[0]
1707 && xlations->composers[1]) {
1708 second = UnmergeTranslations(widget, xlations->composers[1],
1711 xlations->composers[0]->numStateTrees),
1721 if ((first != xlations->composers[0]) ||
1722 (second != xlations->composers[1]))
1725 result = xlations;
1738 for (i = 0; i < xlations->numStateTrees; i++) {
1739 if (xlations->stateTreeTbl[i]->simple.isAccelerator)
1745 result = xlations;
1751 XtTranslations xlations;
1765 XtTranslations newTable = NULL, xlations;
1773 * off and pass it and the real xlations in to the caching merge
1777 xlations = ((ATranslations) newXlations)->xlations;
1782 xlations = newXlations;
1788 newTable = bindPair[0].xlations = xlations;
1790 bindPair[1].xlations = NULL;
1794 bindPair[0].xlations = oldXlations;
1796 bindPair[1].xlations = xlations;
1801 bindPair[0].xlations = xlations;
1803 bindPair[1].xlations = oldXlations;
1810 MergeThem(widget, bindPair[0].xlations, bindPair[1].xlations);
1813 if (bindPair[i].xlations)
1814 for (j = 0; j < bindPair[i].xlations->numStateTrees; j++, numNew++) {
1815 if (bindPair[i].xlations->stateTreeTbl[j]->simple.isAccelerator) {
1820 newBindings[numNew].aXlations = bindPair[i].xlations;
1909 ? ((ATranslations) newXlations)->xlations : newXlations);
2034 XtTranslations xlations = tmRecPtr->translations;
2036 if (!xlations || !cBindData || !cBindData->isComplex)
2037 return xlations;
2044 *aXlationsPtr && (*aXlationsPtr)->xlations != xlations;
2051 Cardinal numBindings = xlations->numStateTrees;
2059 aXlations->xlations = xlations;
2103 _XtRemoveStateTreeByIndex(XtTranslations xlations, TMShortCard i)
2105 TMStateTree *stateTrees = xlations->stateTreeTbl;
2108 xlations->numStateTrees--;
2110 for (; i < xlations->numStateTrees; i++) {
2122 XtTranslations xlations;
2132 xlations = *(XtTranslations *) toVal->addr;
2133 for (i = 0; i < (int) xlations->numStateTrees; i++)
2134 RemoveStateTree(xlations->stateTreeTbl[i]);
2135 XtFree((char *) xlations);
2210 _XtGetTMOperation(XtTranslations xlations)
2212 return ((xlations->hasBindings)
2213 ? ((ATranslations) xlations)->xlations->operation
2214 : xlations->operation);
2283 _XtUnmergeTranslations(Widget widget, XtTranslations xlations)
2285 ComposeTranslations(widget, XtTableUnmerge, (Widget) NULL, xlations);