home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / oneLine.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-08  |  2.1 KB  |  54 lines

  1. /* oneLine.h
  2.    global declarations to provide translations to the text widget
  3.    to provide a one line text field widget. */
  4.  
  5.      /*---------------------------------------------------------------*/
  6.      /* Xgopher        version 1.3     08 April 1993                  */
  7.      /*                version 1.2     20 November 1992               */
  8.      /*                version 1.1     20 April 1992                  */
  9.      /*                version 1.0     04 March 1992                  */
  10.      /* X window system client for the University of Minnesota        */
  11.      /*                                Internet Gopher System.        */
  12.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  13.      /*                Computing and Communications Services Office   */
  14.      /* Copyright 1992, 1993 by                                       */
  15.      /*           the Board of Trustees of the University of Illinois */
  16.      /* Permission is granted to freely copy and redistribute this    */
  17.      /* software with the copyright notice intact.                    */
  18.      /*---------------------------------------------------------------*/
  19.  
  20. #ifndef    ONELINE_H
  21. #define    ONELINE_H
  22.  
  23. /* Translations  for the asciiText widget to simulate a single-line
  24.    text entry widget.  Disable any default translations that allow
  25.    movement up/down by line/paragraphs/pages.  This also means making
  26.    the Return key a no-op.
  27.  
  28.    However, the following line should NOT be added here.
  29.        <Key>Return: no-op()\n\
  30.    These translations cannot be overridden in the resource file, and
  31.    we need <Key>Return to be an accept action for several widgets.
  32.    Therefore, make sure to include the above translation in the resource
  33.    file for any single-line text widget that does not otherwise
  34.    set an action for Return. */
  35.  
  36. char *OneLineTextTr =  "#override\
  37. <Key>Down: no-op()\n\
  38. <Key>Up: no-op()\n\
  39. <Key>Linefeed: no-op()\n\
  40. Ctrl<Key>J: no-op()\n\
  41. Ctrl<Key>M: no-op()\n\
  42. Ctrl<Key>N: no-op()\n\
  43. Ctrl<Key>O: no-op()\n\
  44. Ctrl<Key>P: no-op()\n\
  45. Ctrl<Key>R: no-op()\n\
  46. Ctrl<Key>S: no-op()\n\
  47. Ctrl<Key>V: no-op()\n\
  48. Ctrl<Key>Z: no-op()\n\
  49. Meta<Key>V: no-op()\n\
  50. Meta<Key>Z: no-op()\
  51. ";
  52.  
  53. #endif    /* ONELINE_H */
  54.