home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
prog_demos
/
turbotext
/
support
/
ttx_qedit.dfn
< prev
next >
Wrap
Text File
|
1991-01-24
|
9KB
|
292 lines
/** $VER: TTX_QEdit.dfn Demo 1.0 (9.1.91)
**
** This definition file contains menu and keyboard definitions to roughly
** emulate the MS-DOS QEdit editor. The emulation is not exact because there
** are various things that QEdit and TurboText do differently, the most
** obvious of which are block commands, window operations, and macros.
**
** Written by Chris Bailey
**/
MENUS:
MENU " File "
ITEM "Load" "" OpenFile
ITEM "File" "" ExecARexxString "SaveFile; CloseDoc"
ITEM "Save" "" SaveFile
ITEM "Quit File" "" CloseDoc
ITEM "Next" "" ActivateNextDoc
ITEM "Prev" "" ActivatePrevDoc
ITEM "Read" "" OpenFile
ITEM "Change Name" "" SaveFileAs
ITEM "Write Block" "" SaveClip NoBackup
ITEM "OS Shell" "" ExecTool NewCLI
ITEM "*Global File" "" NOP
MENU " Window "
ITEM "Close" "" CloseDoc
ITEM "Grow" "" SizeWindow 40 40
ITEM "Split" "" SplitView Toggle
ITEM "Next" "" ActivateNextDoc
ITEM "One" "" ActivateLastDoc
ITEM "Prev" "" ActivatePrevDoc
ITEM "Shrink" "" SizeWindow -40 -40
ITEM "*Zoom" "" NOP
MENU " Block "
ITEM "Mark Block Begin" "" MarkBlk
ITEM "Mark Block End" "" CopyBlk
ITEM "Copy Block" "" PasteClip
ITEM "Move Block" "" PasteClip
ITEM "Delete Block" "" DeleteBlk
ITEM "Unmark" "" MarkBlk
ITEM "Mark Line" "" ExecARexxString "OPTIONS RESULTS;GetPrefs FreeForm;f=RESULT;SetPrefs FreeForm OFF;MoveSOL;MarkBlk;MoveEOL;MoveRight;SetPrefs FreeForm f"
MENU " Search "
ITEM "Find" "" OpenRequester Find
ITEM "Replace" "" OpenRequester FindChange
ITEM "Again" "" Find
MENU " Print "
ITEM "Print All" "" PrintFile
ITEM "Print Block" "" PrintClip
ITEM "*Send Formfeed" "" NOP
ITEM "*Set Left Margin" "" NOP
ITEM "*Set Pagesize" "" NOP
MENU " Macro "
ITEM "Macro Record" "" RecordMacro
ITEM "Read Macro" "" OpenMacro
ITEM "Write Macro" "" SaveMacro
BAR
ITEM "Stop Recording" "" EndMacro
MENU " Editing "
ITEM "Add Line" "" ExecARexxString "MoveEOL; InsertLine"
ITEM "Delete Line" "" DeleteLine
ITEM "Delete to End Of Line" "" DeleteEOL
ITEM "Insert Line" "" ExecARexxString "MoveSOL; InsertLine; MoveUp"
ITEM "Join Line" "" ExecARexxString "MoveEOL; Delete"
ITEM "Split Line" "" InsertLine
ITEM "Undelete Line" "" UndeleteLine
MENU " Other "
ITEM "Set Autoindent" "" SetPrefs AutoIndent TOGGLE
ITEM "Set Insert" "" SetPrefs Overstrike TOGGLE
ITEM "Set Wordwrap" "" SetPrefs WordWrap TOGGLE
ITEM "Set Ptabwidth" "" OpenRequester EditPrefs
ITEM "Set Ctabwidth" "" OpenRequester EditPrefs
ITEM "Set Right Margin" "" OpenRequester EditPrefs
ITEM "Set Backups" "" SetPrefs MakeBackups TOGGLE
MENU " Quit "
ITEM "Quit all files" "" CloseDoc
ITEM "Exit all file" "" CloseDoc
MENU " Prefs "
ITEM "Display..." "" OpenRequester DisplayPrefs
ITEM "Edit..." "" OpenRequester EditPrefs
ITEM "File..." "" OpenRequester FilePrefs
BAR
ITEM "Open Prefs..." "" OpenPrefs
ITEM "Save Prefs As..." "" SavePrefs
ITEM "Save As Defaults" "" SaveDefPrefs
BAR
ITEM "Open Defs..." "" OpenDefinitions
#
KEYBOARD:
/*
* Normal function keys
*/
F1 OpenDoc NAME TurboText:Support/TTX_Help.txt
F2 InsertLine
F3 SaveFile
F4 ExecARexxString "OPTIONS RESULTS; SetDisplayLock ON; MoveSOL; GetLine; 'Insert TEXT' RESULT; InsertLine; SetDisplayLock OFF"
F5 MoveUpScr
F6 DeleteEOL
F7 MarkBlk
F8 MarkBlk
F9 ExecTool NewCLI CON:0/100/640/100/AmigaShell/CLOSE/SCREENTURBOTEXT
F10 CloseDoc
/*
* Shifted function keys
*/
SHIFT-F1 ExecARexxString "MoveSOL; Insert TEXT ' '; MoveEOL"
SHIFT-F2 NOP
SHIFT-F3 NOP
SHIFT-F4 NOP
SHIFT-F5 CenterView
SHIFT-F6 NOP
SHIFT-F7 ShiftLeft
SHIFT-F8 ShiftRight
SHIFT-F9 NOP
SHIFT-F10 CloseDoc
/*
* Alted function keys
*/
ALT-F1 ExecARexxString "txt = Time(); Insert txt; DO i = 1 TO 8; MoveLeft; Delete; END"
ALT-F2 InsertLine
ALT-F3 MoveMatchBkt
ALT-F4 NOP
ALT-F5 MoveLeft 80
ALT-F6 MoveRight 80
ALT-F7 NOP
ALT-F8 NOP
ALT-F9 ExecTool NewCLI CON:0/100/640/100/AmigaShell/CLOSE/SCREENTURBOTEXT
ALT-F10 ExecARexxString "SaveFile; CloseDoc"
CURSOR_UP MoveUp
CURSOR_DOWN MoveDown
CURSOR_RIGHT MoveRight
CURSOR_LEFT MoveLeft
CTRL-CURSOR_RIGHT MoveNextWord
CTRL-CURSOR_LEFT MovePrevWord
SHIFT-CURSOR_UP MoveUpScr
SHIFT-CURSOR_DOWN MoveDownScr
SHIFT-CURSOR_RIGHT MoveNextWord
SHIFT-CURSOR_LEFT MovePrevWord
SHIFT-BACKSPACE DeleteSOW
SHIFT-DEL DeleteEOW
ALT-CURSOR_UP MoveSOF
ALT-CURSOR_DOWN MoveEOF
ALT-CURSOR_RIGHT MoveEOL
ALT-CURSOR_LEFT MoveSOL
ALT-BACKSPACE DeleteSOL
ALT-DEL DeleteEOL
CTRL-DEL DeleteLine
CTRL-BACKSPACE DeleteSOW
/* This should really be a reverse tab */
SHIFT-TAB MovePrevTabStop
/*
* The numeric keypad is used for the home and cursor keys. The layout is:
*
* +-----------------------------------------------+
* | 7 - Home | 8 - Up | 9 - Page Up |
* +------------+----------------+-----------------+
* | 4 - Left | 5 - Dead | 6 - Right |
* +------------+----------------+-----------------+
* | 1 - End | 2 - Down | 3 - Page Down |
* +------------+----------------+-----------------+
*/
NUM_PAD-0 SetPrefs Overstrike OFF
NUM_PAD-1 MoveEOL
NUM_PAD-2 MoveDown
NUM_PAD-3 MoveDownScr
NUM_PAD-4 MoveLeft
NUM_PAD-5 NOP
NUM_PAD-6 MoveRight
NUM_PAD-7 MoveSOL
NUM_PAD-8 MoveUp
NUM_PAD-9 MoveUpScr
NUM_PAD-. SetPrefs Overstrike ON
CTRL-NUM_PAD-1 SaveFile
CTRL-NUM_PAD-3 MoveEOF
CTRL-NUM_PAD-7 MoveUpScr
CTRL-NUM_PAD-9 MoveSOF
ALT-A MarkBlk
ALT-B FormatParagraph
ALT-C CopyBlk
ALT-D DeleteLine
ALT-E OpenFile
ALT-F NOP
ALT-G DeleteBlk
ALT-H OpenDoc NAME TurboText:Support/TTX_Help.txt
ALT-I ExecARexxString "MoveSOL; Insert TEXT ' '; MoveEOL"
ALT-J ExecARexxString "MoveEOL; Delete"
ALT-K NOP
ALT-L ExecARexxString "OPTIONS RESULTS;GetPrefs FreeForm;f=RESULT;SetPrefs FreeForm OFF;MoveSOL;MarkBlk;MoveEOL;MoveRight;SetPrefs FreeForm f"
ALT-M NOP /* Move block */
ALT-N ActivateNextDoc
ALT-O SaveFileAs
ALT-P PrintFile
ALT-Q CloseDoc
ALT-R OpenClip
ALT-S InsertLine
ALT-T ExecARexxString "Insert Time()"
ALT-U MarkBlk
ALT-V NOP
ALT-W SaveClip NoBackup
ALT-X CloseDoc
ALT-Y ExecARexxString "Insert Date()"
ALT-Z NOP
CTRL-A MovePrevWord
CTRL-B NOP /* Get & Store Screenbuff */
CTRL-C MoveDownScr
CTRL-D MoveRight
CTRL-E MoveUp
CTRL-F MoveNextWord
CTRL-G Delete 1
CTRL-H ExecARexxString "MoveLeft; Delete"
CTRL-I NOP
CTRL-J Move
CTRL-K SetMeta
CTRL-L Find
CTRL-M RecordMacro
CTRL-N InsertLine
CTRL-O NOP /* 3rd meta for window cmds */
CTRL-P NOP
CTRL-Q SetMeta2
CTRL-R MoveUpScr
CTRL-S MoveLeft
CTRL-T DeleteEOW
CTRL-U UndeleteLine
CTRL-V SetPrefs Overstrike TOGGLE
CTRL-W MoveUpScr
CTRL-X MoveDown
CTRL-Y DeleteLine
CTRL-Z MoveDownScr
META-B MarkBlk
META-C CopyBlk
META-D CloseDoc
META-E OpenFile
META-F SaveFileAs
META-H MarkBlk
META-K MarkBlk
META-N ActivateNextDoc
META-P ActivatePrevDoc
META-Q CloseDoc
META-R OpenClip
META-S SaveFile
META-T NOP
META-V NOP /* Move block */
META-W SaveClip
META-X SaveFile
META-Y DeleteBlk
META2-A OpenRequester FindChange
META2-B MoveSOF /* Actually go to start of block */
META2-C MoveEOF
META2-D MoveEOL
META2-E NOP
META2-F OpenRequester Find
META2-I SetPrefs AutoIndent TOGGLE
META2-K MoveEOF /* Actually go to end of block */
META2-L UndeleteLine
META2-P NOP /* Prev position ?? */
META2-R MoveSOF
META2-S NOP
META2-X NOP
META2-Y DeleteEOL
#