TextTr.c

Go to the documentation of this file.
00001 /* $XConsortium: TextTr.c,v 1.20 95/06/14 15:07:27 kaleb Exp $ */
00002 
00003 /*
00004 
00005 Copyright (c) 1991, 1994  X Consortium
00006 
00007 Permission is hereby granted, free of charge, to any person obtaining a copy
00008 of this software and associated documentation files (the "Software"), to deal
00009 in the Software without restriction, including without limitation the rights
00010 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00011 copies of the Software, and to permit persons to whom the Software is
00012 furnished to do so, subject to the following conditions:
00013 
00014 The above copyright notice and this permission notice shall be included in
00015 all copies or substantial portions of the Software.
00016 
00017 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00018 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00020 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00021 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00022 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00023 
00024 Except as contained in this notice, the name of the X Consortium shall not be
00025 used in advertising or otherwise to promote the sale, use or other dealings
00026 in this Software without prior written authorization from the X Consortium.
00027 
00028 */
00029 
00030 /* INTERNATIONALIZATION:
00031 
00032 The OMRON R5 contrib added the following action to the old TextTr:
00033 
00034         Ctrl<Key>backslash:     reconnect-im()
00035 
00036 This is needed when the im is killed or otherwise becomes unreachable.
00037 This keystroke is evil (inconvenient, hard-to-remember, not obvious)
00038 so I am adding one more translation:
00039 
00040         <Key>Kanji:             reconnect-im()
00041 
00042 The Japanese user typically hits their Kanji key when they want to do
00043 input.  This merely makes sure the input is connected. 
00044 */
00045 
00046 char *_XawDefaultTextTranslations1 =
00047 "\
00048 Ctrl<Key>A:     beginning-of-line() \n\
00049 Ctrl<Key>B:     backward-character() \n\
00050 Ctrl<Key>C:     insert-selection(CUT_BUFFER0) \n\
00051 Ctrl<Key>D:     delete-next-character() \n\
00052 Ctrl<Key>E:     end-of-line() \n\
00053 Ctrl<Key>F:     forward-character() \n\
00054 Ctrl<Key>G:     multiply(Reset) \n\
00055 Ctrl<Key>H:     delete-previous-character() \n\
00056 Ctrl<Key>J:     newline-and-indent() \n\
00057 Ctrl<Key>K:     kill-to-end-of-line() \n\
00058 Ctrl<Key>L:     redraw-display() \n\
00059 Ctrl<Key>M:     newline() \n\
00060 Ctrl<Key>N:     next-line() \n\
00061 Ctrl<Key>O:     newline-and-backup() \n\
00062 Ctrl<Key>P:     previous-line() \n\
00063 Ctrl<Key>R:     search(backward) \n\
00064 Ctrl<Key>S:     search(forward) \n\
00065 Ctrl<Key>T:     transpose-characters() \n\
00066 Ctrl<Key>U:     multiply(4) \n\
00067 Ctrl<Key>V:     next-page() \n\
00068 Ctrl<Key>W:     kill-selection() \n\
00069 Ctrl<Key>Y:     insert-selection(SECONDARY) \n\
00070 Ctrl<Key>Z:     scroll-one-line-up() \n\
00071 ", *_XawDefaultTextTranslations2 = "\
00072 Meta<Key>B:     backward-word() \n\
00073 Meta<Key>F:     forward-word() \n\
00074 Meta<Key>I:     insert-file() \n\
00075 Meta<Key>K:     kill-to-end-of-paragraph() \n\
00076 Meta<Key>Q:     form-paragraph() \n\
00077 Meta<Key>V:     previous-page() \n\
00078 Meta<Key>Y:     insert-selection(PRIMARY, CUT_BUFFER0) \n\
00079 Meta<Key>Z:     scroll-one-line-down() \n\
00080 :Meta<Key>d:    delete-next-word() \n\
00081 :Meta<Key>D:    kill-word() \n\
00082 :Meta<Key>h:    delete-previous-word() \n\
00083 :Meta<Key>H:    backward-kill-word() \n\
00084 :Meta<Key>\\<:  beginning-of-file() \n\
00085 :Meta<Key>\\>:  end-of-file() \n\
00086 :Meta<Key>]:    forward-paragraph() \n\
00087 :Meta<Key>[:    backward-paragraph() \n\
00088 ~Shift Meta<Key>Delete:         delete-previous-word() \n\
00089  Shift Meta<Key>Delete:         backward-kill-word() \n\
00090 ~Shift Meta<Key>BackSpace:      delete-previous-word() \n\
00091  Shift Meta<Key>BackSpace:      backward-kill-word() \n\
00092 ", *_XawDefaultTextTranslations3 = "\
00093 <Key>Home:      beginning-of-file() \n\
00094 :<Key>KP_Home:  beginning-of-file() \n\
00095 <Key>End:       end-of-file() \n\
00096 :<Key>KP_End:   end-of-file() \n\
00097 <Key>Next:      next-page() \n\
00098 :<Key>KP_Next:  next-page() \n\
00099 <Key>Prior:     previous-page() \n\
00100 :<Key>KP_Prior: previous-page() \n\
00101 <Key>Right:     forward-character() \n\
00102 :<Key>KP_Right: forward-character() \n\
00103 <Key>Left:      backward-character() \n\
00104 :<Key>KP_Left:  backward-character() \n\
00105 <Key>Down:      next-line() \n\
00106 :<Key>KP_Down:  next-line() \n\
00107 <Key>Up:        previous-line() \n\
00108 :<Key>KP_Up:    previous-line() \n\
00109 <Key>Delete:    delete-previous-character() \n\
00110 :<Key>KP_Delete: delete-previous-character() \n\
00111 <Key>BackSpace: delete-previous-character() \n\
00112 <Key>Linefeed:  newline-and-indent() \n\
00113 <Key>Return:    newline() \n\
00114 :<Key>KP_Enter: newline() \n\
00115 Ctrl<Key>backslash:     reconnect-im() \n\
00116 <Key>Kanji:     reconnect-im()\n\
00117 <Key>:          insert-char() \n\
00118 ", *_XawDefaultTextTranslations4 = "\
00119 <EnterWindow>:  enter-window() \n\
00120 <LeaveWindow>:  leave-window() \n\
00121 <FocusIn>:      focus-in() \n\
00122 <FocusOut>:     focus-out() \n\
00123 <Btn1Down>:     select-start() \n\
00124 <Btn1Motion>:   extend-adjust() \n\
00125 <Btn1Up>:       extend-end(PRIMARY, CUT_BUFFER0) \n\
00126 <Btn2Down>:     insert-selection(PRIMARY, CUT_BUFFER0) \n\
00127 <Btn3Down>:     extend-start() \n\
00128 <Btn3Motion>:   extend-adjust() \n\
00129 <Btn3Up>:       extend-end(PRIMARY, CUT_BUFFER0) \
00130 ";

Generated on Sun Mar 4 15:03:55 2007 for Scilab [trunk] by  doxygen 1.5.1