home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 24
/
CD_ASCQ_24_0995.iso
/
dos
/
tools
/
aurora21
/
cumenu.aml
< prev
next >
Wrap
Text File
|
1995-08-10
|
18KB
|
431 lines
// -------------------------------------------------------------------
// The Aurora Editor v2.1
// Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
//
// Aurora Menu definitions (included by MAIN.AML)
//
// This is a CUA compliant menu definition file. It closely matches
// the Borland IDE editor and the CodeWright Editor as best as possible.
// This file along with the KBD.AML should be compiled together.
//
// CUA keyboard mapping and Menu design by
// Keith Rowland (keithr@primenet.com)
// 19-May-1995
//
// If you have made any changes, save this file and select 'Recompile
// the Editor' from the Set menu. Exit and re-enter the editor for
// your changes to take effect.
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// Edit Window menu bar and tool bar
// -------------------------------------------------------------------
function EditMen
// menu bar
menubar "" 1
item "&File" "editFile"
item "&Edit" "editEdit"
item "&Block" "editBlock"
item "&Search" "editSearch"
item "&Text" "editText"
item "F&old" "editFold"
item "M&acro" "editMacro"
item "O&ptions" "editSet"
item "&Window" "editWindow"
item "&Help" "editHelp"
end
// tool bar
menubar "" 2
item "<&&≡>" toolbar // close tool bar
item "<&&?>" quickref 'u' 'f' // users guide
item "<&&*>" open "*.*" // display file manager
item "<&&/>" copywin // copy window
item "<&&/>" copywin // copy window
item "<&&─>" splitwin 'h' // split window horz
item "<&&|>" splitwin 'v' // split window vert
item "<&&o>" askopen // open prompt
item "<&&s>" save // save file
item "<&&F>" askfind // find prompt
item "<&&f>" findlast // do last find/replace
item "<&&r>" formatblock2 // reformat block
item "<&&«>" undo // undo last change
item "<&&»>" redo // redo last change
item "<&&>>" foldblock2 // fold block
item "<&&<>" destroyfold2 // unfold line
end
end
// -------------------------------------------------------------------
// Edit Window pulldown menus
// -------------------------------------------------------------------
forward print2
menu "editFile"
item " &New <ctrl n>" opennew
item " &Open.. <f3>, <ctrl o>" askopen
item " Open and &Insert.. <alt i>" askinsert
item " Open &Binary.." askopenb
item " &Rename.. <alt n>" askname
item " &Save <f2>, <ctrl s>" save
item " Save &As.." asksaveas
item "-"
item " &File Manager.. <f4>" open "*.*"
item " &Next" nextfile
item " Pre&v" prevfile
item " &List.. <alt ->" filelist
item "─"
item " &Print <ctrl p>" print2
item " Prin&ter Settings..|*" runcfg "print"
item "─"
item " &Close <alt q>, <ctrl f4>" close
item " E&xit <alt x>, <alt f4>" closeall
item " Clos&e and Save" close 's'
item " Exit an&d Save All" closeall 's'
end
menu "editEdit"
item " &Undo <ctrl z>" undo
item " &Redo <ctrl a>" redo
item "─"
item " Cu&t <ctrl x>" cut
item " Cut L&ine <ctrl y>" cut
item " Cut &Append <shift ctrl x>" cut 'a'
item " Cut Append Li&ne <shift ctrl y>" cut 'a'
item " &Copy <ctrl c>" copy
item " Cop&y Append <shift ctrl c>" copy 'a'
item " Copy to &Windows <ctrl u>" copy 'w'
item "─"
item " &Paste <ctrl v>" paste
item " Paste &Over <shift ctrl v>" paste 'o'
item " Paste &from Windows <shift ctrl u>" paste 'w'
item " &Delete <del>" paste 'w'
if getmarkbuf == getcurrbuf then
deleteblock
end
item "─"
item " C&lear <ctrl del>" clear
item " Current Clip&board..|*" askclip
end
menu "editMark"
item " Mark &Line <alt l>" markline
item " Mark &Column <alt k>" markcolumn
item " Mark C&haracter" markchar
item " Mark &Word <alt 1>" markword
item " Mark to &EOL <alt 2>" markeol
item " Mark &Paragraph <alt 3>" markpara "tb"
item "─"
item " &Unmark <alt u>" destroymark
end
menu "editBlock"
item " Mar&k.. " submenu "editMark"
item " &Copy <alt c>" copyblock2
item " Copy &Over " copyblockover
item " &Move <alt m>" moveblock2
item " Mo&ve Over <ctrl m>" moveblockover
item " &Delete <alt d>" deleteblock2
item " &Indent <shift f8>" shiftblock 1
item " Uninden&t <shift f7>" shiftblock -1
item "─"
item " &Fill <ctrl k><f>" fillblock2
item " &Reformat <alt r>" formatblock2
item " R&eformat Right <alt y>" formatblock2 "rj"
item " S&ave.. <ctrl k><s>" saveblock2
item " &Sort <ctrl k><o>" sortblock2
item " Lo&wercase" caseblock 'l'
item " U&ppercase <ctrl k><u>" caseblock
item "─"
item " &Left Justify" justblock2 'l'
item " Ri&ght Justify" justblock2 'r'
item " Ce&nter <ctrl k><c>" justblock2 'c'
end
menu "editSearch"
item " &Find.. <f5>, <ctrl f>" askfind
item " Re&place.. <ctrl g>" askrepl
item " &Repeat Last Find/Repl <ctrl l>" findlast
item " &Scan Files.. <ctrl q><s>" askscan
item " &Incremental Search <ctrl i>" isearch
item " Find &Occurrences.. <ctrl h>" askfindo
item "─"
item " &Quick Bookmark <ctrl 2>" quickbook
item " Pre&v Bookmark <ctrl 6>" cyclebook
item " Place &Bookmark.." placebook
item " &Go to Bookmark.." askbook
item "─"
item " Go to &Line.. <ctrl j>" askrow
item " Go to Bloc&k Start <ctrl b>" gotomark 't'
item " Go to Block En&d" gotomark 'b'
item " Go to Ne&xt Fold <alt 7>" search2 "f/f"
item "─"
item " Find &Matching Char <ctrl ]>" gotomatch2
item " Go to Compiler &Error <alt f7>" gotoerror
end
menu "editText"
item " &Insert Line <ctrl enter>" insline2
item " &Delete Line <ctrl baksp>" delline
item " &Split Line" splitline2
item " &Join Line <alt j>" joinline
item "─"
item " &Erase to End <alt f6>" delchar (getlinelen)
item " Delete Right &Word <ctrl t>" delword
item " Du&plicate Line <alt 4>" insline (gettext)
item " Sw&ap Lines <alt 5>" swapline
item " Ce&nter Line <alt 6>" centerline
item "─"
item " &Comment Line <alt f1>" commentline
item " Enter &Literal.. <ctrl [>" literal
item " ASCII C&hart.. <alt =>" asciilist
item " Date/&Time Stamp <ctrl k><t>" timestamp
item " E&xpand Tabs <ctrl k><x>" tabfile
item " Hi&ghlight Word <ctrl \\>" hiliteword
end
menu "editFold"
item " &Fold Next Line <alt 8>" foldline
item " &Unfold Next Line <alt 9>" foldline 'u'
item "─"
item " C&reate Fold" createfold
item " &Destroy Fold <alt g>" destroyfold2
item " &Open Fold <alt \\>" openfold
item " &Close Fold <alt \\>" closefold
item "─"
item " Fold Bloc&k" foldblock2
item " Fold Block Fl&at" foldflat
item " Des&troy Block Folds" foldblock 'ds'
item " O&pen Block Folds" foldblock 'os'
item " C&lose Block Folds" foldblock 'cs'
item "─"
item " Destro&y All Folds" foldall 'ds'
item " Ope&n All Folds <alt [>" foldall 'os'
item " Clo&se All Folds <alt ]>" foldall 'cs'
item "─"
item " &Export without Folds.." asksaveas 'x'
item " E&xport Block without Folds.." saveblock2 'x'
end
menu "editMacro"
item " &Record Toggle <ctrl r>" record
item " &Play <ctrl e>" play
item " &Erase" erasekey
item " Era&se All" erasekey 'a'
item " Ope&n.." askopenkey
item " Sa&ve.." asksavekey
item " &Assign to Key.." assignkey
item "─"
item " &Macro List.. <ctrl f12>" runmac "maclist"
item " &Key Assignments.." opencfg "kbd"
item " Sho&w Available Keys.." runmac "keydef"
item "─"
item " Macro E&xpression.. <alt f12>" askeval
item " R&un Macro.." askrmacro
item " Compi&le Macro.." askcmacro
item "─"
item " &OS Command.. <alt f9>|*" askrun
item " OS Cap&ture.. " askruncap
item " OS S&hell <f9>|*" shell
end
// Note: do not change the first 12 lines of this menu
// (except for key definitions)
menu "editSet"
item " &AutoIndent" setting 'A' TOGGLE
item " &Backup" setting 'B' TOGGLE
item " Line &Draw <ctrl d>" setting 'D' TOGGLE
item " Line St&yle.. " submenu "LineStyle"
item " &Match Character" setting 'M' TOGGLE
item " &Smart Tabs" setting 'S' TOGGLE
item " Synta&x Highlighting" setting 'X' TOGGLE
item " &Translate " setting 'T' TOGGLE
item " &Undo" setting 'U' TOGGLE
item " &Variable Tabs" setting 'V' TOGGLE
item " &Word Wrap" setting 'W' TOGGLE
item " &Live Word Wrap <ctrl w>" setting 'L' TOGGLE
item "─"
item " Mar&gins and Tabs..|*" runcfg "marg"
item " &Line Delimiter Options..|*" runcfg "ldlm"
item "─"
item " &Configuration and Setup..|*" runcfg "main"
item " Save Co&nfiguration" savecfg
item "─"
item " &Recompile the Editor <alt f2>" recompile
end
// Note: do not change this menu (except for key definitions)
menu "LineStyle"
item " &Single" setdraw 0
item " Double &Horizontal" setdraw 1
item " Double &Vertical" setdraw 2
item " &Double" setdraw 3
item " &Eraser" setdraw 4
end
menu "editWindow"
item " &Restore" restore
item " &Move/Size <ctrl f5>" sizekey
item " P&an <ctrl f6>" pankey
item " M&inimize <alt down>" minimize
item " Ma&ximize <alt up>" maximize
item " &Next <f6>" nextwindow
item " &Prev <shift f6>" prevwindow
item " &List.. <alt 0>" winlist
item "─"
item " &Copy" copywin
item " Split Hor&z" splitwin 'h'
item " Split Ver&t <alt v>" splitwin 'v'
item "─"
item " Ca&scade <shift f5>" cascade
item " Tile &Horz <shift f4>" tile 'h'
item " Tile &Vert <shift f3>" tile 'v'
item "─"
item " Tool &Bar <ctrl f8>" toolbar
item " Pr&ompt Style.." runcfg "prom"
end
menu "editHelp"
item " &User's Guide Topics" runmac "helpuser"
item " User's &Guide" quickref 'u'
item " User &Tips" quickref 't'
item "-"
item " &Language Reference Topics" runmac "helplang"
item " Language &Reference" quickref 'l'
item "-"
item " &Function Reference <shift f2>" quickref 'f'
item " Function &Quick Reference <shift f1>" quickref 'q'
item "-"
item " &Ordering Information" quickref 'o'
item "-"
item " &About.." about
end
// -------------------------------------------------------------------
// File Manager window menu bar
// -------------------------------------------------------------------
function FmgrMen
menubar "" 1
item "&File" "fmgrFile"
item "&Mark" "fmgrMark"
item "&Command" "fmgrCommand"
item "&Sort" "fmgrSort"
item "M&acro" "editMacro"
item "O&ptions" "fmgrSet"
item "&Window" "fmgrWindow"
item "&Help" "editHelp"
end
end
// -------------------------------------------------------------------
// File Manager window pulldown menus
// -------------------------------------------------------------------
menu "fmgrFile"
item " &New <ctrl n>" opennew
item " &Open.. <f3>, <ctrl o>" askopen
item " Open &Binary.." askopenb
item " Open Las&t <alt z>" openlast
item " Par&ent <ctrl backspace>" fup
item " &Refresh" reopen
item "─"
item " &Print <ctrl p>" print
item " Prin&ter Settings..|*" runcfg "print"
item "─"
item " &Close <alt q>, <ctrl f4>" close
item " E&xit <alt x>, <alt f4>" closeall
end
menu "fmgrMark"
item " Mark &Toggle <space>" fmark
item "─"
item " Mar&k All <alt k>" fmark "ma"
item " &Unmark All <alt u>" fmark "ua"
end
menu "fmgrCommand"
item " &Open <enter>" fopen
item " Open &Binary <shift b>" fopen 'b'
item " Open &Key Macro <shift k>" openkey2 (getffile)
item "─"
item " &Move.. <shift m>" fmove
item " &Copy.. <shift c>" fcopy
item " &Delete <del>, <shift d>" fdelete
item " Re&name.. <shift n>" frename
item "─"
item " &Run <shift r>" frun 'c'
item " &Print <shift p>" fprint
item "─"
item " &Attributes.. <shift a>" fattr
item " &Touch <shift t>" ftouch
item "─"
item " Cr&eate Directory.." fmkdir
item " &Scan Files.. <ctrl q><s>" askscan
end
menu "fmgrSort"
item " &Name <alt n>" fsort 'n'
item " &Extension <alt e>" fsort 'e'
item " &Size" fsort 's'
item " &Date-Time <alt d>" fsort 'd'
item " &OS Default" fsort 'o'
end
menu "fmgrSet"
item " Confir&mations..|*" runcfg "conf"
item " &File Manager Options..|*" runcfg "fmgr"
item " &Line Delimiter Options..|*" runcfg "ldlm"
item "-"
item " &Configuration and Setup..|*" runcfg "main"
item " Save Co&nfiguration" savecfg
item "-"
item " &Recompile the Editor <alt f2>" recompile
end
menu "fmgrWindow"
item " &Restore" restore
item " &Move/Size <ctrl f5>" sizekey
item " P&an <ctrl f6>" pankey
item " M&inimize <alt down>" minimize
item " Ma&ximize <alt up>" maximize
item " &Next <f6>" nextwindow
item " &Prev <shift f6>" prevwindow
item " &List.. <alt 0>" winlist
item "─"
item " Ca&scade <shift f5>" cascade
item " Tile &Horz <shift f4>" tile 'h'
item " Tile &Vert <shift f3>" tile 'v'
item "─"
item " Pr&ompt Style.." runcfg "prom"
end
// -------------------------------------------------------------------
// Miscellaneous menus
// -------------------------------------------------------------------
// yes/no/cancel popup menu
menu "ync"
item " &Yes"
item " &No"
item " &Cancel"
end
// ok/cancel popup menu
menu "ok"
item " O&k"
item " &Cancel"
end
// replace/append/cancel popup menu
menu "rac"
item " &Replace"
item " &Append"
item " &Cancel"
end