home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 5
/
ctrom5b.zip
/
ctrom5b
/
DOS
/
TEKST
/
AURORA2
/
WPMENU.AML
< prev
next >
Wrap
Text File
|
1995-04-28
|
18KB
|
458 lines
// ───────────────────────────────────────────────────────────────────
// The Aurora Editor v2.0
// Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
//
// WordPerfect 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 "kr" // 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
// ───────────────────────────────────────────────────────────────────
forward inout
menu "editFile"
item " &New <ctrl n>" opennew
item " &Open.. <shift f10>" askopen
item " Open &Binary.." askopenb
item " Open Las&t <alt z>" openlast
item " &Rename.. <alt n>" askname
item " &Save <f10>" save
item " &Text In/Out <ctrl f5>" inout
item "-"
item " &File Manager.. <f4>" open "*.*"
item " Ne&xt" nextfile
item " &Prev" prevfile
item " &List.. <alt ->" filelist
item "─"
item " &Close <alt q>" close
item " Close &All <f7>" closeall
item " Sav&e and Close <ctrl x>" close 's'
item " Save an&d Close All" closeall 's'
item "─"
item " Abo&ut.." about
end
menu "editWindow"
item " &Restore" restore
item " &Move/Size" sizekey
item " P&an" pankey
item " M&inimize" minimize
item " Ma&ximize <ctrl z>" maximize
item " &Next <shift f3>" nextwindow
item " &Prev" prevwindow
item " &List.. <f5>" winlist
item "─"
item " &Copy <ctrl c>" copywin
item " Split Hor&z <alt h>" splitwin 'h'
item " Split Ver&t <alt v>" splitwin 'v'
item "─"
item " Ca&scade" cascade
item " Tile &Horz" tile 'h'
item " Tile &Vert" tile 'v'
item "─"
item " Tool &Bar" toolbar
item " St&yle Toggle" togglestyle
item " Pr&ompt Style.." askprompt
end
forward markblock
menu "editMark"
item " Mark &Block <alt f4>" markblock
item " Mark &Line <alt l>" markline
item " Mark &Column <alt b>" markcolumn
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 <alt o>" copyblockover
item " &Move <alt m>" moveblock2
item " Mo&ve Over <ctrl m>" moveblockover
item " &Delete <alt d>" deleteblock2
item " &Indent" shiftblock 1
item " Uninden&t" shiftblock -1
item "─"
item " &Fill <ctrl k><f>" fillblock2
item " &Reformat <alt r>" formatblock2 "kr"
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.. <shift f2> or <f2>" askfind
item " Re&place.. <alt f2>" askrepl
item " &Repeat Last Find/Repl <ctrl l>" findlast
item " &Scan Files.. <ctrl 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" gotomatch2
item " Go to Compiler &Error" gotoerror
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 <alt f>" 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
forward flushr
menu "editEdit"
item " &Undo <f1>" undo
item " &Redo <ctrl y>" redo
item "─"
item " &Insert Line <ctrl enter>" insline2
item " &Delete Line" delline
item " &Split Line <alt s>" splitline2
item " &Join Line <alt j>" joinline
item "─"
item " &Erase to End" 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 <shift f6>" centerline
item "─"
item " Enter &Literal.. <ctrl [>" literal
item " &Flus&h Right.. <alt f6>" flushr
item " ASCII C&hart.." asciilist
item " Date/&Time Stamp <shift f5>" timestamp
item " E&xpand Tabs <ctrl k><x>" tabfile
item " Hi&ghlight Word <ctrl \\>" hiliteword
end
menu "editClip"
item " Cu&t" cut
item " Cut &Append <ctrl grey->" cut 'a'
item " &Copy" copy
item " Cop&y Append <ctrl grey+>" copy 'a'
item "─"
item " &Paste <grey*>" paste
item " Paste &Over <ctrl grey*>" paste 'o'
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..|*" askprint
end
menu "Fonts"
item " 80 cols x 1&4 rows|*" videomode 80 14
item " 80 cols x 2&1 rows|*" videomode 80 21
item " 80 cols x 2&5 rows|*" videomode 80 25
item " 80 cols x 2&8 rows|*" videomode 80 28
item " 80 cols x 4&3 rows|*" videomode 80 43
item " 80 cols x 5&0 rows|*" videomode 80 50
item "─"
item " 40 cols x &25 rows|*" videomode 40 25
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 " Word &Processing.. " submenu "WordP"
item " Bi&nary Line Length..|*" askbinary
item " Line D&elimiter..|*" askdelim
item "─"
item " V&ideo Mode.. " submenu "Fonts"
item " Save &Current Settings" saveconfig
item " &Recompile the Editor" recompile
end
menu "WordP"
item " &Tab Width..|*" asktabw
item " &Variable Tab Stops..|*" asktabv
item "─"
item " &Left Margin..|*" asklmarg
item " &Right Margin..|*" askrmarg
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 <ctrl f10>" record
item " &Play <alt f10>" 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 " &Configuration.. <shift f1>" opencfg "config"
item " &Keys.." opencfg "kbd"
item " &Macro List.."
runmacro (getbootpath + "MACRO\\" + "maclist.x")
item "─"
item " Macro E&xpression.. <ctrl v>" askeval
item " R&un Macro.." askrmacro
item " &Include Macro.." askimacro
item " Compi&le Macro.." askcmacro
item "─"
item " &OS Command..|*" askrun
item " OS Cap&ture.." askruncap
item " OS S&hell <ctrl f1>|*" shell
end
menu "editHelp"
item " &User's Guide Topics"
runmacro (getbootpath + "MACRO\\" + "helpuser.x")
item " User's &Guide" quickref 'u'
item " User &Tips" quickref 't'
item "-"
item " &Language Reference Topics"
runmacro (getbootpath + "MACRO\\" + "helplang.x")
item " Language &Reference" quickref 'l'
item "-"
item " &Function Reference" quickref 'f'
item " Function &Quick Reference" 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.. <shift f10>" askopen
item " Open &Binary.." askopenb
item " Open Las&t <alt z>" openlast
item " &Parent <ctrl baksp>" fup
item " R&efresh" reopen
item "─"
item " &Close <alt q>" close
item " Close &All <f7>" closeall
item "─"
item " Abo&ut.." about
end
menu "fmgrWindow"
item " &Restore" restore
item " &Move/Size" sizekey
item " P&an" pankey
item " M&inimize" minimize
item " Ma&ximize <ctrl z>" maximize
item " &Next <shift f3>" nextwindow
item " &Prev" prevwindow
item " &List.. <f5>" winlist
item "─"
item " Ca&scade" cascade
item " Tile &Horz" tile 'h'
item " Tile &Vert" tile 'v'
item "─"
item " Pr&ompt Style.." askprompt
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 " Bi&nary Line Length..|*" askbinary
item " L&ine Delimiter..|*" askdelim
item "─"
item " &Video Mode.. " submenu "Fonts"
item " Video To&ggle|*" togglemode
item "-"
item " Save &Current Settings" saveconfig
item " &Recompile the Editor" recompile
end
menu "fmgrPrint"
item " &Print <ctrl p>" print
item " Print &Formfeed" printstr (char 12)
item " Print &Settings..|*" askprint
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