From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- vendor/x11iraf/xaw3d/TextTr.c | 130 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 vendor/x11iraf/xaw3d/TextTr.c (limited to 'vendor/x11iraf/xaw3d/TextTr.c') diff --git a/vendor/x11iraf/xaw3d/TextTr.c b/vendor/x11iraf/xaw3d/TextTr.c new file mode 100644 index 00000000..d8714a7c --- /dev/null +++ b/vendor/x11iraf/xaw3d/TextTr.c @@ -0,0 +1,130 @@ +/* $XConsortium: TextTr.c,v 1.20 95/06/14 15:07:27 kaleb Exp $ */ + +/* + +Copyright (c) 1991, 1994 X Consortium + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of the X Consortium shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from the X Consortium. + +*/ + +/* INTERNATIONALIZATION: + +The OMRON R5 contrib added the following action to the old TextTr: + + Ctrlbackslash: reconnect-im() + +This is needed when the im is killed or otherwise becomes unreachable. +This keystroke is evil (inconvenient, hard-to-remember, not obvious) +so I am adding one more translation: + + Kanji: reconnect-im() + +The Japanese user typically hits their Kanji key when they want to do +input. This merely makes sure the input is connected. +*/ + +char *_XawDefaultTextTranslations1 = +"\ +CtrlA: beginning-of-line() \n\ +CtrlB: backward-character() \n\ +CtrlC: insert-selection(CUT_BUFFER0) \n\ +CtrlD: delete-next-character() \n\ +CtrlE: end-of-line() \n\ +CtrlF: forward-character() \n\ +CtrlG: multiply(Reset) \n\ +CtrlH: delete-previous-character() \n\ +CtrlJ: newline-and-indent() \n\ +CtrlK: kill-to-end-of-line() \n\ +CtrlL: redraw-display() \n\ +CtrlM: newline() \n\ +CtrlN: next-line() \n\ +CtrlO: newline-and-backup() \n\ +CtrlP: previous-line() \n\ +CtrlR: search(backward) \n\ +CtrlS: search(forward) \n\ +CtrlT: transpose-characters() \n\ +CtrlU: multiply(4) \n\ +CtrlV: next-page() \n\ +CtrlW: kill-selection() \n\ +CtrlY: insert-selection(SECONDARY) \n\ +CtrlZ: scroll-one-line-up() \n\ +", *_XawDefaultTextTranslations2 = "\ +MetaB: backward-word() \n\ +MetaF: forward-word() \n\ +MetaI: insert-file() \n\ +MetaK: kill-to-end-of-paragraph() \n\ +MetaQ: form-paragraph() \n\ +MetaV: previous-page() \n\ +MetaY: insert-selection(PRIMARY, CUT_BUFFER0) \n\ +MetaZ: scroll-one-line-down() \n\ +:Metad: delete-next-word() \n\ +:MetaD: kill-word() \n\ +:Metah: delete-previous-word() \n\ +:MetaH: backward-kill-word() \n\ +:Meta\\<: beginning-of-file() \n\ +:Meta\\>: end-of-file() \n\ +:Meta]: forward-paragraph() \n\ +:Meta[: backward-paragraph() \n\ +~Shift MetaDelete: delete-previous-word() \n\ + Shift MetaDelete: backward-kill-word() \n\ +~Shift MetaBackSpace: delete-previous-word() \n\ + Shift MetaBackSpace: backward-kill-word() \n\ +", *_XawDefaultTextTranslations3 = "\ +Home: beginning-of-file() \n\ +:KP_Home: beginning-of-file() \n\ +End: end-of-file() \n\ +:KP_End: end-of-file() \n\ +Next: next-page() \n\ +:KP_Next: next-page() \n\ +Prior: previous-page() \n\ +:KP_Prior: previous-page() \n\ +Right: forward-character() \n\ +:KP_Right: forward-character() \n\ +Left: backward-character() \n\ +:KP_Left: backward-character() \n\ +Down: next-line() \n\ +:KP_Down: next-line() \n\ +Up: previous-line() \n\ +:KP_Up: previous-line() \n\ +Delete: delete-previous-character() \n\ +:KP_Delete: delete-previous-character() \n\ +BackSpace: delete-previous-character() \n\ +Linefeed: newline-and-indent() \n\ +Return: newline() \n\ +:KP_Enter: newline() \n\ +Ctrlbackslash: reconnect-im() \n\ +Kanji: reconnect-im()\n\ +: insert-char() \n\ +", *_XawDefaultTextTranslations4 = "\ +: enter-window() \n\ +: leave-window() \n\ +: focus-in() \n\ +: focus-out() \n\ +: select-start() \n\ +: extend-adjust() \n\ +: extend-end(PRIMARY, CUT_BUFFER0) \n\ +: insert-selection(PRIMARY, CUT_BUFFER0) \n\ +: extend-start() \n\ +: extend-adjust() \n\ +: extend-end(PRIMARY, CUT_BUFFER0) \ +"; -- cgit