Lines Matching refs:field

217 fieldText(unsigned field)
221 switch (field)
302 ReportMismatch(unsigned action, unsigned field, const char *type)
304 ERROR("Value of %s field must be of type %s\n", fieldText(field), type);
311 ReportIllegal(unsigned action, unsigned field)
314 fieldText(field), XkbActionTypeText(action, XkbMessage));
320 ReportActionNotArray(unsigned action, unsigned field)
322 ERROR("The %s field in the %s action is not an array\n",
323 fieldText(field), XkbActionTypeText(action, XkbMessage));
329 ReportNotFound(unsigned action, unsigned field, const char *what, char *bad)
332 ACTION("Ignoring the %s field of an %s action\n", fieldText(field),
338 HandleNoAction(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
341 return ReportIllegal(action->type, field);
345 CheckLatchLockFlags(unsigned action, unsigned field,
351 if (field == F_ClearLocks)
353 else if (field == F_LatchToLock)
358 return ReportMismatch(action, field, "boolean");
393 HandleSetLatchMods(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
401 switch (field)
406 return ReportActionNotArray(action->type, field);
409 switch (field)
415 if (CheckLatchLockFlags(action->type, field, value, &rtrn))
436 return ReportIllegal(action->type, field);
448 HandleLockMods(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
454 if ((array_ndx != NULL) && (field == F_Modifiers || field == F_Affect))
455 return ReportActionNotArray(action->type, field);
456 switch (field)
462 return ReportMismatch(action->type, field, "lock or unlock");
481 return ReportIllegal(action->type, field);
534 HandleSetLatchGroup(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
542 switch (field)
547 return ReportActionNotArray(action->type, field);
550 switch (field)
556 if (CheckLatchLockFlags(action->type, field, value, &rtrn))
576 return ReportIllegal(action->type, field);
580 HandleLockGroup(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
586 if ((array_ndx != NULL) && (field == F_Group))
587 return ReportActionNotArray(action->type, field);
588 if (field == F_Group)
600 return ReportIllegal(action->type, field);
604 HandleMovePtr(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
611 if ((array_ndx != NULL) && ((field == F_X) || (field == F_Y)))
612 return ReportActionNotArray(action->type, field);
614 if ((field == F_X) || (field == F_Y))
623 return ReportMismatch(action->type, field, "integer");
624 if (field == F_X)
638 else if (field == F_Accel)
641 return ReportMismatch(action->type, field, "boolean");
648 return ReportIllegal(action->type, field);
662 HandlePtrBtn(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
669 if (field == F_Button)
672 return ReportActionNotArray(action->type, field);
675 return ReportMismatch(action->type, field,
686 else if ((action->type == XkbSA_LockPtrBtn) && (field == F_Affect))
689 return ReportActionNotArray(action->type, field);
691 return ReportMismatch(action->type, field, "lock or unlock");
696 else if (field == F_Count)
699 return ReportActionNotArray(action->type, field);
702 return ReportMismatch(action->type, field, "integer");
705 ERROR("The count field must have a value in the range 0..255\n");
712 return ReportIllegal(action->type, field);
723 HandleSetPtrDflt(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
730 if (field == F_Affect)
733 return ReportActionNotArray(action->type, field);
735 return ReportMismatch(action->type, field, "pointer component");
739 else if ((field == F_Button) || (field == F_Value))
743 return ReportActionNotArray(action->type, field);
757 return ReportMismatch(action->type, field,
777 return ReportIllegal(action->type, field);
799 HandleISOLock(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
807 switch (field)
813 return ReportActionNotArray(action->type, field);
829 return ReportActionNotArray(action->type, field);
841 return ReportActionNotArray(action->type, field);
843 return ReportMismatch(action->type, field, "keyboard component");
849 return ReportIllegal(action->type, field);
853 HandleSwitchScreen(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
860 if (field == F_Screen)
864 return ReportActionNotArray(action->type, field);
877 return ReportMismatch(action->type, field, "integer (0..255)");
890 else if (field == F_Same)
893 return ReportActionNotArray(action->type, field);
895 return ReportMismatch(action->type, field, "boolean");
902 return ReportIllegal(action->type, field);
944 HandleSetLockControls(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
951 if (field == F_Controls)
954 return ReportActionNotArray(action->type, field);
957 return ReportMismatch(action->type, field, "controls mask");
961 else if (field == F_Affect && action->type == XkbSA_LockControls) {
963 return ReportActionNotArray(action->type, field);
965 return ReportMismatch(action->type, field, "lock or unlock");
970 return ReportIllegal(action->type, field);
984 HandleActionMessage(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
991 switch (field)
995 return ReportActionNotArray(action->type, field);
997 return ReportMismatch(action->type, field, "key event mask");
1004 return ReportActionNotArray(action->type, field);
1006 return ReportMismatch(action->type, field, "boolean");
1016 return ReportMismatch(action->type, field, "string");
1046 return ReportMismatch(action->type, field, "integer");
1057 return ReportIllegal(action->type, field);
1061 HandleRedirectKey(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
1068 return ReportActionNotArray(action->type, field);
1071 switch (field)
1079 return ReportMismatch(action->type, field, "key name");
1083 return ReportNotFound(action->type, field, "Key",
1100 if (field == F_Modifiers)
1109 if (field == F_Modifiers)
1120 return ReportIllegal(action->type, field);
1124 HandleDeviceBtn(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
1131 if (field == F_Button)
1134 return ReportActionNotArray(action->type, field);
1136 return ReportMismatch(action->type, field,
1147 else if ((action->type == XkbSA_LockDeviceBtn) && (field == F_Affect))
1150 return ReportActionNotArray(action->type, field);
1152 return ReportMismatch(action->type, field, "lock or unlock");
1157 else if (field == F_Count)
1160 return ReportActionNotArray(action->type, field);
1163 return ReportMismatch(action->type, field, "integer");
1166 ERROR("The count field must have a value in the range 0..255\n");
1173 else if (field == F_Device)
1176 return ReportActionNotArray(action->type, field);
1178 return ReportMismatch(action->type, field,
1189 return ReportIllegal(action->type, field);
1193 HandleDeviceValuator(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
1207 HandlePrivate(XkbDescPtr xkb, XkbAnyAction *action, unsigned field,
1212 switch (field)
1216 return ReportMismatch(PrivateAction, field, "integer");
1229 return ReportMismatch(action->type, field, "string");
1260 return ReportMismatch(action->type, field, "integer");
1271 return ReportIllegal(PrivateAction, field);
1276 unsigned /* field */ ,
1363 info->field,
1376 ExprDef *field, *value, *arrayRtrn;
1382 field = arg->value.binary.left;
1389 field = arg->value.child;
1394 field = arg;
1398 if (!ExprResolveLhs(field, &elemRtrn, &fieldRtrn, &arrayRtrn))
1410 ERROR("Unknown field name %s\n", uStringText(fieldRtrn.str));
1425 SetActionField(XkbDescPtr xkb, const char *elem, const char *field,
1447 ERROR("\"%s\" is not a valid field in a NoAction action\n",
1448 field);
1452 if (!stringToField(field, &new->field))
1454 ERROR("\"%s\" is not a legal field name\n", field);