home *** CD-ROM | disk | FTP | other *** search
/ Global Amiga Experience / globalamigaexperience.iso / text_dtp / editor / turbotext / support / ttx_builtin.dfn next >
Text File  |  1995-07-10  |  16KB  |  389 lines

  1.  
  2. /** $VER: TTX_BuiltIn.dfn 2.0 (5.9.94)
  3.  **
  4.  ** This definition file provides equivalents of TurboText's internal defaults.
  5.  **/
  6.  
  7.  
  8. MENUS:
  9.  
  10.   /***************************************************************************
  11.    * The MENUS section describes the menus presented by TurboText along with
  12.    * the commands associated with them.
  13.    *
  14.    * The format for the lines in this section is one of the following:
  15.    *     MENU <menu name> [amigaguide help node]
  16.    *     ITEM <item name> <keyboard shortcut> <command> [command parameters]
  17.    *     BAR
  18.    *     SUB <sub-item name> <keyboard shortcut> <command> [command parameters]
  19.    *     SBAR
  20.    ***************************************************************************/
  21.  
  22.   MENU "Project" "TurboText:TurboText_Manual/The Project Menu"
  23.     ITEM "Open..."             "O" OpenFile
  24.     ITEM "Open New..."         "Y" OpenDoc FileReq
  25.     ITEM "Insert..."           ""  InsertFile
  26.     BAR
  27.     ITEM "Save"                "S" SaveFile
  28.     ITEM "Save As..."          "A" SaveFileAs
  29.     BAR
  30.     ITEM "Clear"               "K" ClearFile
  31.     ITEM "Print..."            "P" PrintFile
  32.     ITEM "Info..."             "?" OpenRequester Info
  33.     BAR
  34.     ITEM "Read-Only"    "[Ctrl]-R" SetReadOnly Toggle
  35.     BAR
  36.     ITEM "Close Window"        "Q" CloseDoc
  37.  
  38.   MENU "Windows" "TurboText:TurboText_Manual/The Windows Menu"
  39.     ITEM "New"                  "W" OpenDoc
  40.     ITEM "Activate"             ""  NOP
  41.       SUB "Next Document"       "0" ActivateNextDoc
  42.       SUB "Previous Document"   "1" ActivatePrevDoc
  43.     ITEM "Resize"                "" NOP
  44.       SUB "To Maximum"       "[F6]" SizeWindow 10000 10000
  45.       SUB "To Minimum"       "[F7]" SizeWindow -10000 -10000
  46.       SBAR
  47.       SUB "Iconify"          "[F5]" IconifyWindow Toggle
  48.     ITEM "Organize Windows"      "" NOP
  49.       SUB "Stack"            "[F8]" ExecARexxMacro LockInput LockDisplay TurboText:Rexx/OrganizeWindows.ttx Stack
  50.       SUB "Tile"             "[F9]" ExecARexxMacro LockInput LockDisplay TurboText:Rexx/OrganizeWindows.ttx Tile
  51.       SUB "Cascade"              "" ExecARexxMacro LockInput LockDisplay TurboText:Rexx/OrganizeWindows.ttx Cascade
  52.       SBAR
  53.       SUB "Iconify All"     "[F10]" ExecARexxMacro LockInput LockDisplay TurboText:Rexx/OrganizeWindows.ttx Iconify
  54.     ITEM "Views"                 "" NOP
  55.       SUB "Split"               "\" SplitView Toggle
  56.       SUB "Toggle"              "T" SwitchView
  57.       SUB "Swap"                ""  SwapViews
  58.       SUB "Expand"              ";" SizeView 1
  59.       SUB "Shrink"              ":" SizeView -1
  60.       SUB "Center"              "'" CenterView
  61.     BAR
  62.     ITEM "Open Hex View..."     "$" OpenRequester Hex
  63.     ITEM "Open Calculator..."   "#" ExecTool Async "TurboText:TTXCalc %s"
  64.     ITEM "Open TTX Shell..."    "." ExecARexxMacro Console TurboText:Rexx/CmdShell.ttx
  65.     ITEM "Open DOS Shell..."     "" ExecTool "NewShell CON:0/50//130/AmigaShell/SCREEN%s/CLOSE"
  66.     BAR
  67.     ITEM "Help..."          "[Help]" Help "Quick Reference"
  68.     ITEM "User's Manual..." ""       Help
  69.  
  70.   MENU "Edit" "TurboText:TurboText_Manual/The Edit Menu"
  71.     ITEM "Mark"                "B" MarkBlk
  72.     ITEM "Cut"                 "X" CutBlk
  73.     ITEM "Copy"                "C" CopyBlk
  74.     ITEM "Paste"               "V" PasteClip
  75.     ITEM "Erase"               "E" DeleteBlk
  76.     BAR
  77.     ITEM "Mark Vertical"       "<" MarkBlk Vertical
  78.     ITEM "Paste Vertical"      ">" PasteClip Vertical
  79.     BAR
  80.     ITEM "Open Clip..."        "!" OpenClip
  81.     ITEM "Save Clip As..."     "@" SaveClip NoBackup
  82.     ITEM "Print Clip..."       "&" PrintClip
  83.  
  84.   MENU "Search" "TurboText:TurboText_Manual/The Search Menu"
  85.     ITEM "Find..."             "F" OpenRequester Find
  86.     ITEM "Find Next"           "N" Find
  87.     ITEM "Find & Change..."    "/" OpenRequester FindChange
  88.     BAR
  89.     ITEM "Go To Line #..."     "J" Move
  90.     ITEM "Go To Char #..."     ""  MoveChar
  91.     ITEM "Go To Last Change"   "G" MoveLastChange
  92.     ITEM "Go To Auto-Bookmark" "," MoveAutomark
  93.     ITEM "Match Bracket"       "[" MoveMatchBkt
  94.     BAR
  95.     ITEM "Set Bookmark"        ""  NOP
  96.       SUB "#1"       "[Shift]-F1 " SetBookmark 1
  97.       SUB "#2"       "[Shift]-F2 " SetBookmark 2
  98.       SUB "#3"       "[Shift]-F3 " SetBookmark 3
  99.       SUB "#4"       "[Shift]-F4 " SetBookmark 4
  100.       SUB "#5"       "[Shift]-F5 " SetBookmark 5
  101.       SUB "#6"       "[Shift]-F6 " SetBookmark 6
  102.       SUB "#7"       "[Shift]-F7 " SetBookmark 7
  103.       SUB "#8"       "[Shift]-F8 " SetBookmark 8
  104.       SUB "#9"       "[Shift]-F9 " SetBookmark 9
  105.       SUB "#10"      "[Shift]-F10" SetBookmark 10
  106.     ITEM "Go To Bookmark"      ""  NOP
  107.       SUB "#1"         "[Alt]-F1 " MoveBookmark 1
  108.       SUB "#2"         "[Alt]-F2 " MoveBookmark 2
  109.       SUB "#3"         "[Alt]-F3 " MoveBookmark 3
  110.       SUB "#4"         "[Alt]-F4 " MoveBookmark 4
  111.       SUB "#5"         "[Alt]-F5 " MoveBookmark 5
  112.       SUB "#6"         "[Alt]-F6 " MoveBookmark 6
  113.       SUB "#7"         "[Alt]-F7 " MoveBookmark 7
  114.       SUB "#8"         "[Alt]-F8 " MoveBookmark 8
  115.       SUB "#9"         "[Alt]-F9 " MoveBookmark 9
  116.       SUB "#10"        "[Alt]-F10" MoveBookmark 10
  117.  
  118.   MENU "Macros" "TurboText:TurboText_Manual/The Macros Menu"
  119.     ITEM "Record Macro"        "R" RecordMacro
  120.     ITEM "Stop Recording"      "H" EndMacro
  121.     ITEM "Play Macro"          "M" PlayMacro 1
  122.     ITEM "Play Many..."        "I" PlayMacro
  123.     BAR
  124.     ITEM "Open Macro..."       "2" OpenMacro
  125.     ITEM "Save Macro As..."    ""  SaveMacro
  126.     BAR
  127.     ITEM "Execute ARexx..."    "3" ExecARexxMacro
  128.  
  129.   MENU "Folds" "TurboText:TurboText_Manual/The Folds Menu"
  130.     ITEM "Make Fold"           "(" MakeFold
  131.     BAR
  132.     ITEM "Show"                ""  NOP
  133.       SUB "Single"             "+" ShowFold
  134.       SUB "Nested"             ""  ShowFold Nested
  135.       SUB "All"                ""  ShowFold All
  136.     ITEM "Hide"                ""  NOP
  137.       SUB "Single"             "-" HideFold
  138.       SUB "Nested"             ""  HideFold Nested
  139.       SUB "All"                ""  HideFold All
  140.     ITEM "Unmake"              ""  NOP
  141.       SUB "Single"             ")" UnmakeFold
  142.       SUB "Nested"             ""  UnmakeFold Nested
  143.       SUB "All"                ""  UnmakeFold All
  144.  
  145.   MENU "Extras" "TurboText:TurboText_Manual/The Extras Menu"
  146.     ITEM "Undelete Line"       "D" UndeleteLine
  147.     ITEM "Undo Line"           "Z" UndoLine
  148.     BAR
  149.     ITEM "Center"              "^" Center
  150.     ITEM "Justify"             "=" Justify
  151.     ITEM "Format Paragraph"    "]" FormatParagraph
  152.     BAR
  153.     ITEM "Convert To Upper Case"  "U" Conv2Upper
  154.     ITEM "Convert To Lower Case"  "L" Conv2Lower
  155.     ITEM "Convert Tabs To Spaces" ""  Conv2Spaces
  156.  
  157.   MENU "Prefs" "TurboText:TurboText_Manual/The Prefs Menu"
  158.     ITEM "Change..."           "4" OpenRequester Prefs
  159.     BAR
  160.     ITEM "Open Prefs..."       ""  OpenPrefs
  161.     ITEM "Save Prefs As..."    ""  SavePrefs
  162.     ITEM "Save As Defaults"    ""  SaveDefPrefs
  163.     BAR
  164.     ITEM "Open Definitions..." ""  OpenDefinitions
  165. #
  166.  
  167.  
  168. KEYBOARD:
  169.  
  170.   /***************************************************************************
  171.    * The KEYBOARD section describes which commands are associated with which
  172.    * keyboard sequences.
  173.    *
  174.    * The format for the lines in this section is:
  175.    *     <keyboard sequence> <command> [command parameters]
  176.    *
  177.    * where: <keyboard sequence> describes a complete sequence of keys to press
  178.    *        to cause a command invocation. The keys can include any key found
  179.    *        on your keyboard. Some keys do not represent simple characters,
  180.    *        you must specify those keys using the following names:
  181.    *
  182.    *           CURSOR_UP  CURSOR_DOWN  CURSOR_RIGHT  CURSOR_LEFT
  183.    *           TAB  ESC  DEL  BACKSPACE  HELP  RETURN  SPACEBAR
  184.    *           ENTER  F1  F2  F3  F4  F5  F6  F7  F8  F9  F10  F11  F12
  185.    *           NP_DEL  NP_DOWN  NP_END  NP_HOME  NP_INS  NP_LEFT  NP_NUML
  186.    *           NP_PGDN  NP_PGUP  NP_PRTSC  NP_RIGHT  NP_SCRL  NP_UP
  187.    *           PAGE_UP  PAGE_DOWN  INSERT  PAUSE  BREAK  HOME  END
  188.    *
  189.    *        In addition, the following key qualifiers can be applied to any
  190.    *        key:
  191.    *
  192.    *           SHIFT  LEFT_SHIFT  RIGHT_SHIFT  ALT  LEFT_ALT  RIGHT_ALT
  193.    *           AMIGA  LEFT_AMIGA  RIGHT_AMIGA  CTRL  NUM_PAD  META  META2
  194.    *           MODE  MODE2  MODELESS  NOREPEAT
  195.    *
  196.    *        <command> [command parameters] can be any TurboText command
  197.    ***************************************************************************/
  198.  
  199.   RETURN             InsertLine
  200.   ENTER              InsertLine NoBreak Indent
  201.   F1                 CorrectWord
  202.   F2                 CompleteTemplate
  203.   F3                 ToggleCharCase
  204.   F4                 SwapChars
  205.   F5                 IconifyWindow Toggle
  206.   F6                 SizeWindow 10000 10000
  207.   F7                 SizeWindow -10000 -10000
  208.   F8                 ExecARexxMacro LockInput LockDisplay TurboText:Rexx/OrganizeWindows.ttx Stack
  209.   F9                 ExecARexxMacro LockInput LockDisplay TurboText:Rexx/OrganizeWindows.ttx Tile
  210.   F10                ExecARexxMacro LockInput LockDisplay TurboText:Rexx/OrganizeWindows.ttx Iconify
  211.   CURSOR_UP          MoveUp
  212.   CURSOR_DOWN        MoveDown
  213.   CURSOR_RIGHT       MoveRight
  214.   CURSOR_LEFT        MoveLeft
  215.   HELP               Help "Quick Reference"
  216.   HOME               MoveSOF
  217.   END                MoveEOF
  218.   INSERT             SetPrefs Overstrike Toggle
  219.   PAGE_UP            MoveUpScr
  220.   PAGE_DOWN          MoveDownScr
  221.  
  222.   CTRL-D             ExecARexxString "Insert Date()"
  223.   CTRL-F             SetPrefs FreeForm Toggle
  224.   CTRL-I             SetPrefs AutoIndent Toggle
  225.   CTRL-O             SetPrefs Overstrike Toggle
  226.   CTRL-Q             SetQuoteMode On
  227.   CTRL-R             SetReadOnly Toggle
  228.   CTRL-T             ExecARexxString "Insert Time()"
  229.   CTRL-W             SetPrefs WordWrap Toggle
  230.   CTRL-CURSOR_RIGHT  ShiftRight
  231.   CTRL-CURSOR_LEFT   ShiftLeft
  232.   CTRL-CURSOR_UP     ScrollView -1 Relative
  233.   CTRL-CURSOR_DOWN   ScrollView 1 Relative
  234.   CTRL-DEL           DeleteLine
  235.  
  236.   ALT-F1             MoveBookmark 1
  237.   ALT-F2             MoveBookmark 2
  238.   ALT-F3             MoveBookmark 3
  239.   ALT-F4             MoveBookmark 4
  240.   ALT-F5             MoveBookmark 5
  241.   ALT-F6             MoveBookmark 6
  242.   ALT-F7             MoveBookmark 7
  243.   ALT-F8             MoveBookmark 8
  244.   ALT-F9             MoveBookmark 9
  245.   ALT-F10            MoveBookmark 10
  246.   ALT-F11            MoveBookmark 11
  247.   ALT-F12            MoveBookmark 12
  248.   ALT-CURSOR_UP      MoveSOF
  249.   ALT-CURSOR_DOWN    MoveEOF
  250.   ALT-CURSOR_RIGHT   MoveEOL
  251.   ALT-CURSOR_LEFT    MoveSOL
  252.   ALT-BACKSPACE      DeleteSOL
  253.   ALT-DEL            DeleteEOL
  254.  
  255.   SHIFT-F1           SetBookmark 1
  256.   SHIFT-F2           SetBookmark 2
  257.   SHIFT-F3           SetBookmark 3
  258.   SHIFT-F4           SetBookmark 4
  259.   SHIFT-F5           SetBookmark 5
  260.   SHIFT-F6           SetBookmark 6
  261.   SHIFT-F7           SetBookmark 7
  262.   SHIFT-F8           SetBookmark 8
  263.   SHIFT-F9           SetBookmark 9
  264.   SHIFT-F10          SetBookmark 10
  265.   SHIFT-F11          SetBookmark 11
  266.   SHIFT-F12          SetBookmark 12
  267.   SHIFT-CURSOR_UP    MoveUpScr
  268.   SHIFT-CURSOR_DOWN  MoveDownScr
  269.   SHIFT-CURSOR_RIGHT MoveNextWord
  270.   SHIFT-CURSOR_LEFT  MovePrevWord
  271.   SHIFT-BACKSPACE    DeleteSOW
  272.   SHIFT-DEL          DeleteEOW
  273.   SHIFT-TAB          MovePrevTabStop
  274. #
  275.  
  276.  
  277. HOT_KEYS:
  278.  
  279.   /***************************************************************************
  280.    * The HOT_KEYS section describes which commands are associated with special
  281.    * "hot key" sequences. These sequences can be invoked from within any
  282.    * application, and will automatically be picked up by TurboText.
  283.    *
  284.    * The format for the lines in this section is:
  285.    *     <keyboard sequence> <command> [command parameters]
  286.    *
  287.    * where: <keyboard sequence> describes a complete sequence of keys to press
  288.    *        to cause a hot key command invocation. The keys can include any key
  289.    *        found on your keyboard. Some keys do not represent simple
  290.    *        characters, you must specify those keys using the following names:
  291.    *
  292.    *           CURSOR_UP  CURSOR_DOWN  CURSOR_RIGHT  CURSOR_LEFT
  293.    *           TAB  ESC  DEL  BACKSPACE  HELP  RETURN  SPACEBAR
  294.    *           ENTER  F1  F2  F3  F4  F5  F6  F7  F8  F9  F10  F11  F12
  295.    *           NP_DEL  NP_DOWN  NP_END  NP_HOME  NP_INS  NP_LEFT  NP_NUML
  296.    *           NP_PGDN  NP_PGUP  NP_PRTSC  NP_RIGHT  NP_SCRL  NP_UP
  297.    *           PAGE_UP  PAGE_DOWN  INSERT  PAUSE  BREAK  HOME  END
  298.    *
  299.    *        In addition, the following key qualifiers can be applied to any
  300.    *        key:
  301.    *
  302.    *           SHIFT  LEFT_SHIFT  RIGHT_SHIFT  ALT  LEFT_ALT  RIGHT_ALT
  303.    *           AMIGA  LEFT_AMIGA  RIGHT_AMIGA  CTRL  NUM_PAD
  304.    *
  305.    *        <command> [command parameters] can be any of the TurboText
  306.    *        global commands
  307.    ***************************************************************************/
  308.  
  309.   CTRL-ALT-A  ActivateLastDoc
  310.   CTRL-ALT-O  OpenDoc FileReq
  311.   CTRL-ALT-S  Screen2Front
  312.   CTRL-ALT-U  SetBackground Off
  313.   CTRL-ALT-W  OpenDoc
  314. #
  315.  
  316.  
  317. MOUSE_BUTTONS:
  318.  
  319.   /***************************************************************************
  320.    * The MOUSE_BUTTONS section describes which commands are associated with
  321.    * the six supported mouse button sequences.
  322.    *
  323.    * The format for the lines in this section is:
  324.    *     <mouse sequence> <command> [command parameters]
  325.    *
  326.    * where: <mouse sequence> is one of the six available mouse sequences:
  327.    *
  328.    *           LEFTMIDDLE   - depress left button and click middle button
  329.    *           LEFTRIGHT    - depress left button and click right button
  330.    *           MIDDLELEFT   - depress middle button and click left button
  331.    *           MIDDLERIGHT  - depress middle button and click right button
  332.    *           DOUBLELEFT   - double click the left button
  333.    *           DOUBLEMIDDLE - double click the middle button
  334.    *
  335.    *        <command> [command parameters] can be any TurboText command
  336.    *
  337.    *        Note that the standard Amiga mouse does not have a middle button,
  338.    *        which implies the LEFTMIDDLE, MIDDLELEFT, MIDDLERIGHT and
  339.    *        DOUBLEMIDDLE sequences are not available unless a special three
  340.    *        button mouse is being used. Additionally, the middle mouse button
  341.    *        is only supported by AmigaDOS 2.0 and beyond.
  342.    ***************************************************************************/
  343.  
  344.   DOUBLELEFT    MarkBlk
  345.   DOUBLEMIDDLE  MarkBlk Vertical
  346.   LEFTRIGHT     MoveAutomark
  347.   LEFTMIDDLE    MakeFold
  348.   MIDDLERIGHT   ToggleFold
  349. #
  350.  
  351.  
  352. DICTIONARY:
  353.  
  354.   /***************************************************************************
  355.    * The DICTIONARY section is a simple list of words used by TurboText's
  356.    * advanced Case Correction and Word Correction features. Simply enumerate
  357.    * all the words you wish to have TurboText know about, one per line.
  358.    ***************************************************************************/
  359.  
  360. #
  361.  
  362.  
  363. TEMPLATES:
  364.  
  365.   /***************************************************************************
  366.    * The TEMPLATES section is a simple table used by TurboText's advanced
  367.    * Template completion feature. Simply list all the templates you wish
  368.    * TurboText know about, one template per line. The special character sequence
  369.    * *n is used whenever you wish to have TurboText enter a <RETURN> character
  370.    * in the template. The special character _ indicates that the cursor should
  371.    * be positioned on the following character after the template has been
  372.    * inserted.
  373.    ***************************************************************************/
  374.  
  375. #
  376.  
  377.  
  378. LINKS:
  379.  
  380.   /***************************************************************************
  381.    * The LINKS section is a simple list of extra definition files to read
  382.    * in addition to this one. The files specified here are treated just like
  383.    * if their contents was included within this definition file directly.
  384.    * The way this operates is identical to the C programming language's
  385.    * #include directive.
  386.    ***************************************************************************/
  387.  
  388. #
  389.