home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
AUROR21A.ZIP
/
BRMENU.AML
< prev
next >
Wrap
Text File
|
1995-09-01
|
18KB
|
440 lines
// -------------------------------------------------------------------
// The Aurora Editor v2.1
// Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
//
// Brief Menu definitions (included by MAIN.AML)
//
// 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 "&Window" "editWindow"
item "&Block" "editBlock"
item "&Search" "editSearch"
item "F&old" "editFold"
item "&Edit" "editEdit"
item "&Clip" "editClip"
item "&Print" "editPrint"
item "Se&t" "editSet"
item "M&acro" "editMacro"
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 "<&&─>" 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 // destroyfold
end
end
// -------------------------------------------------------------------
// Edit Window pulldown menus
// -------------------------------------------------------------------
menu "editFile"
item " &New <ctrl n>" opennew
item " &Open.. <alt e>" askopen
item " Open and &Insert.. <alt r>" askinsert
item " Open &Binary.." askopenb
item " Open Las&t" openlast
item " &Rename.. <alt o>" askname
item " &Save" save
item " Sa&ve As.." asksaveas
item "-"
item " &File Manager.." open "*.*"
item " Ne&xt <alt n>" nextfile
item " &Prev <alt ->" prevfile
item " &List.. <alt b>" filelist
item "─"
item " &Close <ctrl ->" close
item " Close &All <alt x>" closeall
item " Sav&e and Close" close 's'
item " Save an&d Close All <ctrl x>" closeall 's'
item "─"
item " Abo&ut.." about
end
menu "editWindow"
item " &Restore" restore
item " &Move/Size <f2>" sizekey
item " P&an <ctrl f2>" pankey
item " M&inimize" minimize
item " Ma&ximize <ctrl z>" maximize
item " &Next <ctrl a>" nextwindow
item " &Prev" prevwindow
item " &List.. <f1>" winlist
item "─"
item " &Copy <ctrl o><w>" copywin
item " Split Hor&z" splitwin 'h'
item " Split Ver&t" 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 "editMark"
item " Mark &Line <alt l>" markline
item " Mark &Column <alt c>" markcolumn
item " Mark C&haracter <alt a>" markchar
item " Mark &Word" markword
item " Mark to &EOL" markeol
item " Mark &Paragraph" markpara "tb"
item "─"
item " &Unmark" destroymark
end
menu "editBlock"
item " Mar&k.. " submenu "editMark"
item " &Copy" copyblock2
item " Copy &Over" copyblockover
item " &Move" moveblock2
item " Mo&ve Over" moveblockover
item " &Delete <ctrl o><d>" deleteblock2
item " &Indent <shift f8>" shiftblock 1
item " Uninden&t <shift f7>" shiftblock -1
item "─"
item " &Fill <ctrl o><f>" fillblock2
item " &Reformat <ctrl o><r>" formatblock2
item " R&eformat Right <alt y>" formatblock2 "rj"
item " S&ave.. <alt w>" saveblock2
item " &Sort <ctrl o><s>" sortblock2
item " Lo&wercase" caseblock 'l'
item " U&ppercase <ctrl o><u>" caseblock
item "─"
item " &Left Justify" justblock2 'l'
item " Ri&ght Justify" justblock2 'r'
item " Ce&nter <ctrl o><c>" justblock2 'c'
end
// brief-style find/replace
forward findbr
forward togglecase
forward toggleregx
forward gotoroutine
menu "editSearch"
item " &Search.. <alt s> or <f5>" findbr
item " Search &Backward.. <alt f5>" findbr '' 'r'
item " Search &Again <shift f5>" findlast
item " &Translate.. <alt t> or <f6>" findbr 't'
item " Translate Back&ward.. <alt f6>" findbr 't' 'r'
item " Translate Agai&n <shift f6>" search2 (gethiststr "_repl")
item " &Case Sensitive Toggle <ctrl f5>" togglecase
item " Reg E&xpression Toggle <ctrl f6>" toggleregx
item "-"
item " Scan &Files.. <ctrl s>" askscan
item " &Incremental Search <ctrl i>" isearch
item " Find &Occurrences.. <ctrl h>" askfindo
item " Goto Ro&utine <ctrl g>" gotoroutine
item "─"
item " &Place Bookmark.." placebook
item " &Go to Bookmark.." askbook
item " Go to &Line.. <alt g>" askrow
item " Go to Bloc&k Start" gotomark 't'
item " Find &Matching Char <ctrl [>" gotomatch2
item " Go to Compiler &Error" gotoerror
end
menu "editFold"
item " &Fold Next Line" foldline
item " &Unfold Next Line" foldline 'u'
item "─"
item " C&reate Fold" createfold
item " &Destroy Fold" 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 <alt 0>" 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 "editEdit"
item " &Undo <alt u>" undo
item " &Redo <ctrl u>" redo
item "─"
item " &Insert Line <ctrl enter>" insline2
item " &Delete Line <alt d>" delline
item " &Split Line" splitline2
item " &Join Line" joinline
item "─"
item " &Erase to End <alt k>" delchar (getlinelen)
item " Delete Right &Word <alt baksp>" delword
item " Du&plicate Line" insline (gettext)
item " Sw&ap Lines" swapline
item " Ce&nter Line" centerline
item "─"
item " &Comment Line" commentline
item " Enter &Literal.. <alt q>" literal
item " ASCII C&hart.. <alt =>" asciilist
item " Date/&Time Stamp <ctrl o><t>" timestamp
item " E&xpand Tabs <ctrl o><x>" tabfile
item " Hi&ghlight Word <ctrl \\>" hiliteword
end
menu "editClip"
item " Cu&t <grey->" cut
item " Cut &Append <ctrl grey->" cut 'a'
item " &Copy <grey+>" copy
item " Cop&y Append <ctrl grey+>" copy 'a'
item " Copy to &Windows" copy 'w'
item "─"
item " &Paste <ins>" paste
item " Paste &Over <ctrl grey*>" paste 'o'
item " Paste &from Windows" paste 'w'
item "─"
item " C&lear <ctrl grey/>" clear
item " Current Clip&board..|*" askclip
end
menu "editPrint"
item " &Print <ctrl p>" print
item " Print &Block <alt p>" print 'b'
item " Print &Formfeed" printstr (char 12)
item "-"
item " &Header/Footer..|*" askprthdr
item " Printer &Settings..|*" runcfg "print"
end
// Note: do not change the first 12 lines of this menu
// (except for key definitions)
menu "editSet"
item " &AutoIndent <alt f3>" setting 'A' TOGGLE
item " &Backup <ctrl w>" setting 'B' TOGGLE
item " Line &Draw" 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 <alt f4>" setting 'T' TOGGLE
item " &Undo" setting 'U' TOGGLE
item " &Variable Tabs" setting 'V' TOGGLE
item " &Word Wrap" setting 'W' TOGGLE
item " &Live Word Wrap" 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 "editMacro"
item " &Record Toggle <f7>" record
item " &Play <f8>" play
item " &Erase" erasekey
item " Era&se All" erasekey 'a'
item " Ope&n.. <alt f7>" askopenkey
item " Sa&ve.. <alt f8>" 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.. <ctrl v>" 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 <alt z>|*" shell
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'
end
// -------------------------------------------------------------------
// File Manager window menu bar
// -------------------------------------------------------------------
function FmgrMen
menubar "" 1
item "&File" "fmgrFile"
item "&Window" "fmgrWindow"
item "&Mark" "fmgrMark"
item "&Command" "fmgrCommand"
item "&Sort" "fmgrSort"
item "&Print" "fmgrPrint"
item "Se&t" "fmgrSet"
item "M&acro" "editMacro"
item "&Help" "editHelp"
end
end
// -------------------------------------------------------------------
// File Manager window pulldown menus
// -------------------------------------------------------------------
menu "fmgrFile"
item " &New <ctrl n>" opennew
item " &Open.. <alt e>" askopen
item " Open &Binary.." askopenb
item " Open Las&t" openlast
item " &Parent <ctrl baksp>" fup
item " R&efresh" reopen
item "─"
item " &Close <ctrl ->" close
item " Close &All <alt x>" closeall
item "─"
item " Abo&ut.." about
end
menu "fmgrWindow"
item " &Restore" restore
item " &Move/Size <f2>" sizekey
item " P&an <ctrl f2>" pankey
item " M&inimize" minimize
item " Ma&ximize <ctrl z>" maximize
item " &Next <ctrl a>" nextwindow
item " &Prev" prevwindow
item " &List.. <f1>" 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
menu "fmgrMark"
item " Mark &Toggle <space>" fmark
item "─"
item " &Mark All <alt m>" 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> or <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 s>" askscan
end
menu "fmgrSort"
item " &Name <alt n>" fsort 'n'
item " &Extension" fsort 'e'
item " &Size <alt s>" fsort 's'
item " &Date-Time <alt d>" fsort 'd'
item " &OS Default <alt o>" 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 "fmgrPrint"
item " &Print <ctrl p>" print
item " Print &Formfeed" printstr (char 12)
item " Print &Settings..|*" runcfg "print"
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