home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / prog_demos / turbotext / support / ttx_standard.dfn < prev    next >
Text File  |  1991-01-24  |  19KB  |  556 lines

  1.  
  2. /** $VER: TTX_Standard.dfn Demo 1.0 (11.1.91)
  3.  **
  4.  ** This definition file provides equivalents of TurboText's internal defaults.
  5.  **
  6.  ** Written by Martin Taillefer
  7.  **/
  8.  
  9.  
  10. MENUS:
  11.  
  12.   /***************************************************************************
  13.    * The MENUS section describes the menus presented by TurboText along with
  14.    * the commands associated with them.
  15.    *
  16.    * The format for the lines in this section is one of the following:
  17.    *     MENU <menu name>
  18.    *     ITEM <item name> <keyboard shortcut> <command> [command parameters]
  19.    *     BAR
  20.    *     SUB <sub-item name> <keyboard shortcut> <command> [command parameters]
  21.    *     SBAR
  22.    ***************************************************************************/
  23.  
  24.   MENU " Project "
  25.     ITEM "Open..."             "O" OpenFile
  26.     ITEM "Open New..."         "Y" OpenDoc FileReq
  27.     BAR
  28.     ITEM "Save"                "S" SaveFile
  29.     ITEM "Save As..."          "A" SaveFileAs
  30.     BAR
  31.     ITEM "Clear"               "K" ClearFile
  32.     ITEM "Print"               "P" PrintFile
  33.     ITEM "Info..."             "?" OpenRequester Info
  34.     BAR
  35.     ITEM "Close Window"        "Q" CloseDoc
  36.  
  37.   MENU " Windows "
  38.     ITEM "New"                 "W" OpenDoc
  39.     ITEM "Activate Next"       "0" ActivateNextDoc
  40.     ITEM "Activate Previous"   "1" ActivatePrevDoc
  41.     BAR
  42.     ITEM "Split View"          "\" SplitView Toggle
  43.     ITEM "Toggle View"         "T" SwitchView
  44.     ITEM "Expand View"         ";" SizeView 1
  45.     ITEM "Shrink View"         ":" SizeView -1
  46.     ITEM "Center View"         "'" CenterView
  47.     BAR
  48.     ITEM "Show Calculator..."  "#" ExecTool "RUN >NIL: <NIL: TurboText:TTXCalc TURBOTEXT"
  49.     ITEM "Show Hex..."         "$" OpenRequester Hex
  50.     ITEM "Show Console..."     "." ExecARexxMacro Console REXX:CmdShell
  51.  
  52.   MENU " Edit "
  53.     ITEM "Mark"                "B" MarkBlk
  54.     ITEM "Cut"                 "X" CutBlk
  55.     ITEM "Copy"                "C" CopyBlk
  56.     ITEM "Paste"               "V" PasteClip
  57.     ITEM "Erase"               "E" DeleteBlk
  58.     BAR
  59.     ITEM "Mark Vertical"       "<" MarkBlk Vertical
  60.     ITEM "Paste Vertical"      ">" PasteClip Vertical
  61.     BAR
  62.     ITEM "Open Clip..."        "!" OpenClip
  63.     ITEM "Save Clip As..."     "_" SaveClip NoBackup
  64.     ITEM "Print Clip"          "*" PrintClip
  65.  
  66.   MENU " Search "
  67.     ITEM "Find..."             "F" OpenRequester Find
  68.     ITEM "Find Next"           "N" Find
  69.     ITEM "Find & Change..."    "/" OpenRequester FindChange
  70.     BAR
  71.     ITEM "Go To Line #..."     "J" Move
  72.     ITEM "Go To Last Change"   "G" MoveLastChange
  73.     ITEM "Go To Auto-Bookmark" "," MoveAutomark
  74.     ITEM "Match Bracket"       "[" MoveMatchBkt
  75.  
  76.   MENU " Macros "
  77.     ITEM "Record Macro"        "R" RecordMacro
  78.     ITEM "Stop Recording"      "H" EndMacro
  79.     ITEM "Play Macro"          "M" PlayMacro 1
  80.     ITEM "Play Many..."        "I" PlayMacro
  81.     BAR
  82.     ITEM "Open Macro..."       "2" OpenMacro
  83.     ITEM "Save Macro As..."    ""  SaveMacro
  84.     BAR
  85.     ITEM "Exec ARexx..."       "3" ExecARexxMacro
  86.  
  87.   MENU " Folds "
  88.     ITEM "Make Fold"           "(" MakeFold
  89.     BAR
  90.     ITEM "Show Fold"           "+" ShowFold
  91.     ITEM "Hide Fold"           "-" HideFold
  92.     ITEM "Unmake Fold"         ")" UnmakeFold
  93.     BAR
  94.     ITEM "Show Nested Folds"   ""  ShowFold Nested
  95.     ITEM "Hide Nested Folds"   ""  HideFold Nested
  96.     ITEM "Unmake Nested Folds" ""  UnmakeFold Nested
  97.     BAR
  98.     ITEM "Show All Folds"      ""  ShowFold All
  99.     ITEM "Hide All Folds"      ""  HideFold All
  100.     ITEM "Unmake All Folds"    ""  UnmakeFold All
  101.  
  102.   MENU " Extras "
  103.     ITEM "Undelete Line"       "D" UndeleteLine
  104.     ITEM "Undo Line"           "Z" UndoLine
  105.     BAR
  106.     ITEM "Center"              "^" Center
  107.     ITEM "Justify"             "=" Justify
  108.     ITEM "Format Paragraph"    "]" FormatParagraph
  109.     BAR
  110.     ITEM "Conv To Upper Case"  "U" Conv2Upper
  111.     ITEM "Conv To Lower Case"  "L" Conv2Lower
  112.     ITEM "Conv Tabs To Spaces" ""  Conv2Spaces
  113.  
  114.   MENU " Prefs "
  115.     ITEM "Display..."          "4" OpenRequester DisplayPrefs
  116.     ITEM "Edit..."             "5" OpenRequester EditPrefs
  117.     ITEM "File..."             "6" OpenRequester FilePrefs
  118.     BAR
  119.     ITEM "Open Prefs..."       "7" OpenPrefs
  120.     ITEM "Save Prefs As..."    "8" SavePrefs
  121.     ITEM "Save As Defaults"    "9" SaveDefPrefs
  122.     BAR
  123.     ITEM "Open Defs..."        "%" OpenDefinitions
  124. #
  125.  
  126.  
  127. KEYBOARD:
  128.  
  129.   /***************************************************************************
  130.    * The KEYBOARD section describes which commands are associated with which
  131.    * keyboard sequences.
  132.    *
  133.    * The format for the lines in this section is:
  134.    *     <keyboard sequence> <command> [command parameters]
  135.    *
  136.    * where: <keyboard sequence> describes a complete sequence of keys to press
  137.    *        to cause a command invocation. The keys can include any key found
  138.    *        on your keyboard. Some keys do not represent simple characters,
  139.    *        you must specify those keys using the following names:
  140.    *
  141.    *           CURSOR_UP  CURSOR_DOWN  CURSOR_RIGHT  CURSOR_LEFT
  142.    *           TAB  ESC  DEL  BACKSPACE  HELP  RETURN  SPACEBAR
  143.    *           ENTER  F1  F2  F3  F4  F5  F6  F7  F8  F9  F10  F11  F12
  144.    *           NP_DEL  NP_DOWN  NP_END  NP_HOME  NP_INS  NP_LEFT  NP_NUML
  145.    *           NP_PGDN  NP_PGUP  NP_PRTSC  NP_RIGHT  NP_SCRL  NP_UP
  146.    *           PAGE_UP  PAGE_DOWN  INSERT  PAUSE  BREAK  HOME  END
  147.    *
  148.    *        In addition, the following key qualifiers can be applied to any
  149.    *        key:
  150.    *
  151.    *           SHIFT  ALT  CTRL  LEFT_AMIGA  NUM_PAD  META  META2
  152.    *           MODE  MODE2  MODELESS  NOREPEAT
  153.    *
  154.    *        <command> [command parameters] can be any of the commands
  155.    *        documented in Appendix A of the user's manual.
  156.    ***************************************************************************/
  157.  
  158.   RETURN             InsertLine
  159.   ENTER              InsertLine NoBreak Indent
  160.   F1                 CorrectWord
  161.   F2                 CompleteTemplate
  162.   F3                 ToggleCharCase
  163.   F4                 SwapChars
  164.   F5                 IconifyWindow Toggle
  165.   CURSOR_UP          MoveUp
  166.   CURSOR_DOWN        MoveDown
  167.   CURSOR_RIGHT       MoveRight
  168.   CURSOR_LEFT        MoveLeft
  169.   HELP               OpenDoc NAME TurboText:Support/TTX_Help.txt
  170.   HOME               MoveSOF
  171.   END                MoveEOF
  172.   INSERT             SetPrefs Overstrike Toggle
  173.   PAGE_UP            MoveUpScr
  174.   PAGE_DOWN          MoveDownScr
  175.  
  176.   CTRL-B             SetPrefs MakeBackups Toggle
  177.   CTRL-C             SetPrefs CorrectCase Toggle
  178.   CTRL-D             ExecARexxString "Insert Date()"
  179.   CTRL-F             SetPrefs FreeForm Toggle
  180.   CTRL-I             SetPrefs AutoIndent Toggle
  181.   CTRL-O             SetPrefs Overstrike Toggle
  182.   CTRL-Q             SetQuoteMode On
  183.   CTRL-R             SetReadOnly Toggle
  184.   CTRL-T             ExecARexxString "Insert Time()"
  185.   CTRL-W             SetPrefs WordWrap Toggle
  186.   CTRL-CURSOR_RIGHT  ShiftRight
  187.   CTRL-CURSOR_LEFT   ShiftLeft
  188.   CTRL-DEL           DeleteLine
  189.  
  190.   ALT-F1             MoveBookmark 1
  191.   ALT-F2             MoveBookmark 2
  192.   ALT-F3             MoveBookmark 3
  193.   ALT-F4             MoveBookmark 4
  194.   ALT-F5             MoveBookmark 5
  195.   ALT-F6             MoveBookmark 6
  196.   ALT-F7             MoveBookmark 7
  197.   ALT-F8             MoveBookmark 8
  198.   ALT-F9             MoveBookmark 9
  199.   ALT-F10            MoveBookmark 10
  200.   ALT-F11            MoveBookmark 11
  201.   ALT-F12            MoveBookmark 12
  202.   ALT-CURSOR_UP      MoveSOF
  203.   ALT-CURSOR_DOWN    MoveEOF
  204.   ALT-CURSOR_RIGHT   MoveEOL
  205.   ALT-CURSOR_LEFT    MoveSOL
  206.   ALT-BACKSPACE      DeleteSOL
  207.   ALT-DEL            DeleteEOL
  208.  
  209.   SHIFT-F1           SetBookmark 1
  210.   SHIFT-F2           SetBookmark 2
  211.   SHIFT-F3           SetBookmark 3
  212.   SHIFT-F4           SetBookmark 4
  213.   SHIFT-F5           SetBookmark 5
  214.   SHIFT-F6           SetBookmark 6
  215.   SHIFT-F7           SetBookmark 7
  216.   SHIFT-F8           SetBookmark 8
  217.   SHIFT-F9           SetBookmark 9
  218.   SHIFT-F10          SetBookmark 10
  219.   SHIFT-F11          SetBookmark 11
  220.   SHIFT-F12          SetBookmark 12
  221.   SHIFT-CURSOR_UP    MoveUpScr
  222.   SHIFT-CURSOR_DOWN  MoveDownScr
  223.   SHIFT-CURSOR_RIGHT MoveNextWord
  224.   SHIFT-CURSOR_LEFT  MovePrevWord
  225.   SHIFT-BACKSPACE    DeleteSOW
  226.   SHIFT-DEL          DeleteEOW
  227.   SHIFT-TAB          MovePrevTabStop
  228. #
  229.  
  230.  
  231. HOT_KEYS:
  232.  
  233.   /***************************************************************************
  234.    * The HOT_KEYS section describes which commands are associated with special
  235.    * "hot key" sequences. These sequences can be invoked from within any
  236.    * application, and will automatically be picked up by TurboText.
  237.    *
  238.    * The format for the lines in this section is:
  239.    *     <keyboard sequence> <command> [command parameters]
  240.    *
  241.    * where: <keyboard sequence> describes a complete sequence of keys to press
  242.    *        to cause a hot key command invocation. The keys can include any key
  243.    *        found on your keyboard. Some keys do not represent simple
  244.    *        characters, you must specify those keys using the following names:
  245.    *
  246.    *           CURSOR_UP  CURSOR_DOWN  CURSOR_RIGHT  CURSOR_LEFT
  247.    *           TAB  ESC  DEL  BACKSPACE  HELP  RETURN  SPACEBAR
  248.    *           ENTER  F1  F2  F3  F4  F5  F6  F7  F8  F9  F10  F11  F12
  249.    *           NP_DEL  NP_DOWN  NP_END  NP_HOME  NP_INS  NP_LEFT  NP_NUML
  250.    *           NP_PGDN  NP_PGUP  NP_PRTSC  NP_RIGHT  NP_SCRL  NP_UP
  251.    *           PAGE_UP  PAGE_DOWN  INSERT  PAUSE  BREAK  HOME  END
  252.    *
  253.    *        In addition, the following key qualifiers can be applied to any
  254.    *        key:
  255.    *
  256.    *           SHIFT  ALT  CTRL  LEFT_AMIGA  NUM_PAD
  257.    *
  258.    *        <command> [command parameters] can be one of:
  259.    *
  260.    *           SetBackground OFF
  261.    *           OpenDoc
  262.    *           OpenDoc FileReq
  263.    *           Screen2Front
  264.    *           ActivateLastDoc
  265.    ***************************************************************************/
  266.  
  267.   CTRL-ALT-A  ActivateLastDoc
  268.   CTRL-ALT-O  OpenDoc FileReq
  269.   CTRL-ALT-S  Screen2Front
  270.   CTRL-ALT-U  SetBackground OFF
  271.   CTRL-ALT-W  OpenDoc
  272. #
  273.  
  274.  
  275. MOUSE_BUTTONS:
  276.  
  277.   /***************************************************************************
  278.    * The MOUSE_BUTTONS section describes which commands are associated with
  279.    * the six supported mouse button sequences.
  280.    *
  281.    * The format for the lines in this section is:
  282.    *     <mouse sequence> <command> [command parameters]
  283.    *
  284.    * where: <mouse sequence> is one of the six available mouse sequences:
  285.    *
  286.    *           LEFTMIDDLE   - depress left button and click middle button
  287.    *           LEFTRIGHT    - depress left button and click right button
  288.    *           MIDDLELEFT   - depress middle button and click left button
  289.    *           MIDDLERIGHT  - depress middle button and click right button
  290.    *           DOUBLELEFT   - double click the left button
  291.    *           DOUBLEMIDDLE - double click the middle button
  292.    *
  293.    *        <command> [command parameters] can be any of the commands
  294.    *        documented in the Appendix A of the user's manual.
  295.    *
  296.    *        Note that the standard Amiga mouse does not have a middle button,
  297.    *        which implies the LEFTMIDDLE, MIDDLELEFT, MIDDLERIGHT and
  298.    *        DOUBLEMIDDLE sequences are not available unless a special three
  299.    *        button mouse is being used. Additionally, the middle mouse button
  300.    *        is only supported by AmigaDOS 2.0 and beyond.
  301.    ***************************************************************************/
  302.  
  303.   DOUBLELEFT    MarkBlk
  304.   DOUBLEMIDDLE  MarkBlk Vertical
  305.   LEFTRIGHT     MoveAutomark
  306.   LEFTMIDDLE    MakeFold
  307.   MIDDLERIGHT   ToggleFold
  308. #
  309.  
  310.  
  311. DICTIONARY:
  312.  
  313.   /***************************************************************************
  314.    * The DICTIONARY section is a simple list of words used by TurboText's
  315.    * advanced Case Correction and Word Correction features. Simply enumerate
  316.    * all the words you wish to have TurboText know about, one per line.
  317.    ***************************************************************************/
  318.  
  319. #
  320.  
  321.  
  322. TEMPLATES:
  323.  
  324.   /***************************************************************************
  325.    * The TEMPLATES section is a simple table used by TurboText's advanced
  326.    * Template completion feature. Simply list all the templates you wish
  327.    * TurboText know about, one template per line. The special character sequence
  328.    * *n is used whenever you wish to have TurboText enter a <RETURN> character
  329.    * in the template. The special character _ indicates that the cursor should
  330.    * be positioned on the following character after the template has been
  331.    * inserted.
  332.    ***************************************************************************/
  333.  
  334. #
  335.  
  336.  
  337. TEXT_STRINGS:
  338.  
  339.   /***************************************************************************
  340.    * The TEXT_STRINGS section is a simple text table containing all the
  341.    * text used by TurboText. Any line of this table can be changed to present
  342.    * different text. This is meant mainly for internationalizing TurboText by
  343.    * providing text tables in various languages.
  344.    *
  345.    * The special character _ is used to indicate that the next character
  346.    * should be used as a keyboard shortcut. This is only applicable when a
  347.    * text string is associated with a gadget.
  348.    *
  349.    * The lines in this table should be kept to reasonable lengths, otherwise
  350.    * the screen formatting will suffer.
  351.    ***************************************************************************/
  352.  
  353.   "_Use"                   /* used for positive responses */
  354.   "_Cancel"                /* used for negative responses */
  355.  
  356.   /* Display Prefs requester */
  357.   "Display Prefs"          /* title */
  358.   "_Display Type"
  359.   "Workbench|2 Color Screen|4 Color Screen|2 Color Lace Screen|4 Color Lace Screen|2 Color LoRes Screen|4 Color LoRes Screen"
  360.   "Screen _Width"
  361.   "Screen _Height"
  362.   "Clone Workbench Si_ze"
  363.   "Font _Name"
  364.   "Font _Size"
  365.   "_Red"
  366.   "_Green"
  367.   "_Blue"
  368.   "Select New _Font..."
  369.   "Select Font to Use"
  370.  
  371.   /* Edit Prefs requester */
  372.   "Edit Prefs"             /* title */
  373.   "_Auto-Indent"
  374.   "Corr_ect Case"
  375.   "_Free Form"
  376.   "_Overstrike"
  377.   "_Strip EOL Blanks"
  378.   "_TAB --> Spaces"
  379.   "Trans_late CRs"
  380.   "_Word Wrap"
  381.   "TAB Wi_dth"
  382.   "_Right Margin"
  383.   "ARe_xx Console"
  384.   "S_how End Of File"
  385.   "Show _End Of Lines"
  386.   "Show S_paces"
  387.   "Show Ta_bs"
  388.  
  389.   /* File Prefs requester */
  390.   "File Prefs"             /* title */
  391.   "_Load/Save Project Icons"
  392.   "_Icon Tool"
  393.   "_Auto-Save"
  394.   "Auto-Save _Delay"
  395.   "Confirm Auto-_Saves"
  396.   "_Make Backups"
  397.   "Ma_x Backup Versions"
  398.   "_Backup Template"
  399.   "_Print Device"
  400.  
  401.   /* Find and Change requester */
  402.   "Find"                   /* title for Find requester          */
  403.   "Find & Change"          /* title for Find & Change requester */
  404.   "_Find"                  /* Find text gadget                  */
  405.   "_Change"                /* Change text gadget                */
  406.   "Find _Next"
  407.   "C_hange"
  408.   "Change _All"
  409.   "_Ignore Accents"
  410.   "I_gnore Case"
  411.   "_Only Whole Words"
  412.   "_Scan Backwards"
  413.   "Replaced "
  414.  
  415.   /* File requester */
  416.   "<ASGN> "                /* used to indicate logical assignments    */
  417.   "<DRW> "                 /* used to indicate drawers (directories)  */
  418.   "<VOL> "                 /* used to indicate volumes with no device */
  419.   "P_attern"               /* Pattern text gadget                     */
  420.   "_Drawer"
  421.   "_File"
  422.   "_Volumes"
  423.   "_Parent"
  424.   "_Open"                  /* positive gadget in file requester      */
  425.   "Select File to Open as Clip"
  426.   "Select File to Open"
  427.   "Select File to Open as Macro"
  428.   "Select File to Open as Prefs"
  429.   "Select File to Open as Definitions"
  430.   "_Save"                  /* positive gadget in file requester      */
  431.   "Select FIle to Save as Clip"
  432.   "Select File to Save"
  433.   "Select File to Save as Macro"
  434.   "Select File to Save as Prefs"
  435.   "_Exec"                  /* positive gadget in file rwquester      */
  436.   "Select File to Execute as ARexx Macro"
  437.  
  438.   /* Info requester */
  439.   "TurboText Information"      /* title */
  440.   "ARexx port name"
  441.   "Visible lines"
  442.   "Folded lines"
  443.   "Total lines"
  444.   "Characters"
  445.   "Average chars/line"
  446.   "Available memory"
  447.  
  448.   /* Various simple requesters */
  449.   "Go To Line # ?"
  450.   "Play How Many?"
  451.   "Printing..."
  452.   "Hex View"
  453.  
  454.   /* Yes/No requesters */
  455.   "_Yes"
  456.   "_Cancel"
  457.   "_OK"
  458.   "_Continue"
  459.   "_Abort"
  460.   "TurboText Confirmation Request"
  461.   "     Open without saving changes?"
  462.   "    Clear without saving changes?"
  463.   "    Close without saving changes?"
  464.   "Discard file?"
  465.   "WARNING: File cannot be recovered"
  466.   "Attempt to create backup file as"
  467.   "failed. Save anyway?"
  468.   "Auto-save request for"
  469.   "Save this file?"
  470.   "Incorrect Def. File Format"
  471.   "on line #"
  472.   " in file"
  473.   "TurboText Memory Panic!"
  474.   "  No memory for requested operation!"
  475.   "TurboText Screen"
  476.   "Trying to close TurboText screen,"
  477.   "please close all non-TurboText"
  478.   "windows on this screen."
  479.  
  480.   /* ASCII parser errors */
  481.   "Invalid command specification"
  482.   "Invalid keyboard sequence"
  483.   "Invalid mouse sequence"
  484.   "Unknown MENUS directive"
  485.   "Incorrect MENU specification"
  486.   "Incorrect ITEM specification"
  487.   "Incorrect SUB specification"
  488.   "Incorrect Hot Key command"
  489.   "Templates must start with a letter"
  490.  
  491.   /* TurboText general errors */
  492.   " Not enough memory!"
  493.   " Hit document boundary!"
  494.   " Not found!"
  495.   " Not on {,[,(,},] or ) !"
  496.   " More '?' in 'Change' than in 'Find'!"
  497.   " User requested abort!"
  498.   " Not allowed in read-only mode!"
  499.   " Not currently recording!"
  500.  
  501.   " No block marked!"
  502.   " Clipboard device not found!"
  503.   " Clipboard is empty!"
  504.   " Clipboard does not contain text!"
  505.   " Clipboard I/O error!"
  506.  
  507.   " ARexx process or library not found!"
  508.  
  509.   " Bookmark not set!"
  510.   " Bookmark not found!"
  511.  
  512.   " No fold on current line!"
  513.   " Already a fold on current line!"
  514.   " No macro to play!"
  515.  
  516.   " Template or word not found!"
  517.   " Not enough characters for Comp.Temp.!"
  518.   " Too many characters!"
  519.  
  520.   " Illegal while recording!"
  521.  
  522.   " Illegal command or arguments!"
  523.   " Cmd only allowed in ARexx macros!"
  524.  
  525.   " Loading..."
  526.   " Saving..."
  527.   " Printing..."
  528.   " Searching..."
  529.   " Working..."
  530.   " Bookmark set"
  531.  
  532.   " Couldn't execute tool!"
  533.   " ARexx error"
  534.   " Load error"
  535.   " Save error"
  536.   " Print error"
  537.   " Backup error"
  538.   " - not saved!"
  539.   "DOS code "
  540.  
  541.   "bBcCfFiImMoOrRwW"   /* for status area */
  542. #
  543.  
  544.  
  545. LINKS:
  546.  
  547.   /***************************************************************************
  548.    * The LINKS section is a simple list of extra definition files to read
  549.    * in addition to this one. The files specified here are treated just like
  550.    * if their contents was included within this definition file directly.
  551.    * The way this operates is identical to the C programming language's
  552.    * INCLUDE directive.
  553.    ***************************************************************************/
  554.  
  555. #
  556.