home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / dos / tools / aurora21 / aumenu.aml < prev    next >
Text File  |  1995-08-10  |  17KB  |  432 lines

  1.  
  2. // -------------------------------------------------------------------
  3. // The Aurora Editor v2.1
  4. // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
  5. //
  6. // Aurora Menu definitions (included by MAIN.AML)
  7. //
  8. // If you have made any changes, save this file and select 'Recompile
  9. // the Editor' from the Set menu. Exit and re-enter the editor for
  10. // your changes to take effect.
  11. // -------------------------------------------------------------------
  12.  
  13. // -------------------------------------------------------------------
  14. //  Edit Window menu bar and tool bar
  15. // -------------------------------------------------------------------
  16.  
  17.   function  EditMen
  18.  
  19.     // menu bar
  20.     menubar "" 1
  21.       item "&File"     "editFile"
  22.       item "&Window"   "editWindow"
  23.       item "&Block"    "editBlock"
  24.       item "&Search"   "editSearch"
  25.       item "F&old"     "editFold"
  26.       item "&Edit"     "editEdit"
  27.       item "&Clip"     "editClip"
  28.       item "&Print"    "editPrint"
  29.       item "Se&t"      "editSet"
  30.       item "M&acro"    "editMacro"
  31.       item "&Help"     "editHelp"
  32.     end
  33.  
  34.     // tool bar
  35.     menubar "" 2
  36.       item "<&&≡>"     toolbar                 // close tool bar
  37.       item "<&&?>"     quickref 'u' 'f'        // users guide
  38.       item "<&&*>"     open "*.*"              // display file manager
  39.       item "<&&/>"     copywin                 // copy window
  40.       item "<&&─>"     splitwin 'h'            // split window horz
  41.       item "<&&|>"     splitwin 'v'            // split window vert
  42.       item "<&&o>"     askopen                 // open prompt
  43.       item "<&&s>"     save                    // save file
  44.       item "<&&F>"     askfind                 // find prompt
  45.       item "<&&f>"     findlast                // do last find/replace
  46.       item "<&&r>"     formatblock2            // reformat block
  47.       item "<&&«>"     undo                    // undo last change
  48.       item "<&&»>"     redo                    // redo last change
  49.       item "<&&>>"     foldblock2              // fold block
  50.       item "<&&<>"     destroyfold2            // unfold line
  51.     end
  52.   end
  53.  
  54.  
  55. // -------------------------------------------------------------------
  56. //  Edit Window pulldown menus
  57. // -------------------------------------------------------------------
  58.  
  59.   menu  "editFile"
  60.     item " &New                  <ctrl n>"  opennew
  61.     item " &Open..                <alt e>"  askopen
  62.     item " Open and &Insert..     <alt i>"  askinsert
  63.     item " Open &Binary.."                  askopenb
  64.     item " Open Las&t             <alt z>"  openlast
  65.     item " &Rename..              <alt n>"  askname
  66.     item " &Save                     <f3>"  save
  67.     item " Sa&ve As.."                      asksaveas
  68.     item "-"
  69.     item " &File Manager..           <f4>"  open "*.*"
  70.     item " Ne&xt               <ctrl del>"  nextfile
  71.     item " &Prev               <ctrl ins>"  prevfile
  72.     item " &List..                <alt ->"  filelist
  73.     item "─"
  74.     item " &Close                 <alt q>"  close
  75.     item " Close &All             <alt x>"  closeall
  76.     item " Sav&e and Close       <ctrl x>"  close 's'
  77.     item " Save an&d Close All"             closeall 's'
  78.     item "─"
  79.     item " Abo&ut.."                        about
  80.   end
  81.  
  82.  
  83.   menu  "editWindow"
  84.     item " &Restore"                       restore
  85.     item " &Move/Size         <ctrl f5>"   sizekey
  86.     item " P&an               <ctrl f6>"   pankey
  87.     item " M&inimize"                      minimize
  88.     item " Ma&ximize           <ctrl z>"   maximize
  89.     item " &Next               <ctrl a>"   nextwindow
  90.     item " &Prev"                          prevwindow
  91.     item " &List..              <alt w>"   winlist
  92.     item "─"
  93.     item " &Copy               <ctrl c>"   copywin
  94.     item " Split Hor&z          <alt h>"   splitwin 'h'
  95.     item " Split Ver&t          <alt v>"   splitwin 'v'
  96.     item "─"
  97.     item " Ca&scade          <shift f5>"   cascade
  98.     item " Tile &Horz        <shift f4>"   tile 'h'
  99.     item " Tile &Vert        <shift f3>"   tile 'v'
  100.     item "─"
  101.     item " Tool &Bar          <ctrl f8>"   toolbar
  102.     item " Pr&ompt Style.."                runcfg "prom"
  103.   end
  104.  
  105.   menu  "editMark"
  106.     item " Mark &Line         <alt l>"   markline
  107.     item " Mark &Column       <alt b>"   markcolumn
  108.     item " Mark C&haracter    <alt a>"   markchar
  109.     item " Mark &Word         <alt 1>"   markword
  110.     item " Mark to &EOL       <alt 2>"   markeol
  111.     item " Mark &Paragraph    <alt 3>"   markpara "tb"
  112.     item "─"
  113.     item " &Unmark            <alt u>"   destroymark
  114.   end
  115.  
  116.   menu  "editBlock"
  117.     item " Mar&k..                    "    submenu "editMark"
  118.     item " &Copy                <alt c>"    copyblock2
  119.     item " Copy &Over           <alt o>"    copyblockover
  120.     item " &Move                <alt m>"    moveblock2
  121.     item " Mo&ve Over          <ctrl m>"    moveblockover
  122.     item " &Delete              <alt d>"    deleteblock2
  123.     item " &Indent           <shift f8>"    shiftblock  1
  124.     item " Uninden&t         <shift f7>"    shiftblock -1
  125.     item "─"
  126.     item " &Fill            <ctrl k><f>"    fillblock2
  127.     item " &Reformat            <alt r>"    formatblock2
  128.     item " R&eformat Right      <alt y>"    formatblock2 "rj"
  129.     item " S&ave..          <ctrl k><s>"    saveblock2
  130.     item " &Sort            <ctrl k><o>"    sortblock2
  131.     item " Lo&wercase"                      caseblock 'l'
  132.     item " U&ppercase       <ctrl k><u>"    caseblock
  133.     item "─"
  134.     item " &Left Justify"                   justblock2 'l'
  135.     item " Ri&ght Justify"                  justblock2 'r'
  136.     item " Ce&nter          <ctrl k><c>"    justblock2 'c'
  137.   end
  138.  
  139.   menu  "editSearch"
  140.     item " &Find..         <f5> or <ctrl f>"   askfind
  141.     item " Re&place..              <ctrl g>"   askrepl
  142.     item " &Repeat Last Find/Repl  <ctrl l>"   findlast
  143.     item " &Scan Files..           <ctrl s>"   askscan
  144.     item " &Incremental Search     <ctrl i>"   isearch
  145.     item " Find &Occurrences..     <ctrl h>"   askfindo
  146.     item "─"
  147.     item " &Quick Bookmark         <ctrl 2>"   quickbook
  148.     item " Pre&v Bookmark          <ctrl 6>"   cyclebook
  149.     item " Place &Bookmark.."                  placebook
  150.     item " &Go to Bookmark.."                  askbook
  151.     item "─"
  152.     item " Go to &Line..           <ctrl j>"   askrow
  153.     item " Go to Bloc&k Start      <ctrl b>"   gotomark 't'
  154.     item " Go to Block En&d"                   gotomark 'b'
  155.     item " Go to Ne&xt Fold         <alt 7>"   search2 "f/f"
  156.     item "─"
  157.     item " Find &Matching Char     <alt f3>"   gotomatch2
  158.     item " Go to Compiler &Error   <alt f7>"   gotoerror
  159.   end
  160.  
  161.   menu  "editFold"
  162.     item " &Fold Next Line          <alt 8>"    foldline
  163.     item " &Unfold Next Line        <alt 9>"    foldline 'u'
  164.     item "─"
  165.     item " C&reate Fold"                        createfold
  166.     item " &Destroy Fold            <alt g>"    destroyfold2
  167.     item " &Open Fold               <alt \\>"   openfold
  168.     item " &Close Fold              <alt \\>"   closefold
  169.     item "─"
  170.     item " Fold Bloc&k              <alt f>"    foldblock2
  171.     item " Fold Block Fl&at"                    foldflat
  172.     item " Des&troy Block Folds"                foldblock 'ds'
  173.     item " O&pen Block Folds"                   foldblock 'os'
  174.     item " C&lose Block Folds"                  foldblock 'cs'
  175.     item "─"
  176.     item " Destro&y All Folds       <alt 0>"    foldall 'ds'
  177.     item " Ope&n All Folds          <alt [>"    foldall 'os'
  178.     item " Clo&se All Folds         <alt ]>"    foldall 'cs'
  179.     item "─"
  180.     item " &Export without Folds.."             asksaveas 'x'
  181.     item " E&xport Block without Folds.."       saveblock2 'x'
  182.   end
  183.  
  184.   menu  "editEdit"
  185.     item " &Undo                  <ctrl u>"   undo
  186.     item " &Redo                  <ctrl y>"   redo
  187.     item "─"
  188.     item " &Insert Line       <ctrl enter>"   insline2
  189.     item " &Delete Line       <ctrl baksp>"   delline
  190.     item " &Split Line             <alt s>"   splitline2
  191.     item " &Join Line              <alt j>"   joinline
  192.     item "─"
  193.     item " &Erase to End              <f6>"   delchar (getlinelen)
  194.     item " Delete Right &Word     <ctrl t>"   delword
  195.     item " Du&plicate Line         <alt 4>"   insline (gettext)
  196.     item " Sw&ap Lines             <alt 5>"   swapline
  197.     item " Ce&nter Line            <alt 6>"   centerline
  198.     item "─"
  199.     item " &Comment Line          <alt f1>"   commentline
  200.     item " Enter &Literal..       <ctrl [>"   literal
  201.     item " ASCII C&hart..          <alt =>"   asciilist
  202.     item " Date/&Time Stamp    <ctrl k><t>"   timestamp
  203.     item " E&xpand Tabs        <ctrl k><x>"   tabfile
  204.     item " Hi&ghlight Word        <ctrl \\>"  hiliteword
  205.   end
  206.  
  207.   menu  "editClip"
  208.     item " Cu&t                     <grey->"  cut
  209.     item " Cut &Append         <ctrl grey->"  cut 'a'
  210.     item " &Copy                    <grey+>"  copy
  211.     item " Cop&y Append        <ctrl grey+>"  copy 'a'
  212.     item " Copy to &Windows"                  copy 'w'
  213.     item "─"
  214.     item " &Paste                   <grey*>"  paste
  215.     item " Paste &Over         <ctrl grey*>"  paste 'o'
  216.     item " Paste &from Windows"               paste 'w'
  217.     item "─"
  218.     item " C&lear              <ctrl grey/>"  clear
  219.     item " Current Clip&board..|*"            askclip
  220.   end
  221.  
  222.   menu  "editPrint"
  223.     item " &Print             <ctrl p>"       print
  224.     item " Print &Block        <alt p>"       print 'b'
  225.     item " Print &Formfeed"                   printstr (char 12)
  226.     item "-"
  227.     item " &Header/Footer..|*"                askprthdr
  228.     item " Printer &Settings..|*"             runcfg "print"
  229.   end
  230.  
  231.   // Note: do not change the first 12 lines of this menu
  232.   // (except for key definitions)
  233.   menu  "editSet"
  234.     item " &AutoIndent"                        setting 'A' TOGGLE
  235.     item " &Backup"                            setting 'B' TOGGLE
  236.     item " Line &Draw              <ctrl d>"   setting 'D' TOGGLE
  237.     item " Line St&yle..                  "   submenu "LineStyle"
  238.     item " &Match Character"                   setting 'M' TOGGLE
  239.     item " &Smart Tabs"                        setting 'S' TOGGLE
  240.     item " Synta&x Highlighting"               setting 'X' TOGGLE
  241.     item " &Translate              <alt f4>"   setting 'T' TOGGLE
  242.     item " &Undo"                              setting 'U' TOGGLE
  243.     item " &Variable Tabs"                     setting 'V' TOGGLE
  244.     item " &Word Wrap"                         setting 'W' TOGGLE
  245.     item " &Live Word Wrap         <ctrl w>"   setting 'L' TOGGLE
  246.     item "─"
  247.     item " Mar&gins and Tabs..|*"              runcfg "marg"
  248.     item " &Line Delimiter Options..|*"        runcfg "ldlm"
  249.     item "─"
  250.     item " &Configuration and Setup..|*"       runcfg "main"
  251.     item " Save Co&nfiguration"                savecfg
  252.     item "─"
  253.     item " &Recompile the Editor   <alt f2>"   recompile
  254.   end
  255.  
  256.   // Note: do not change this menu (except for key definitions)
  257.   menu  "LineStyle"
  258.     item " &Single               ┌──┐"    setdraw 0
  259.     item " Double &Horizontal    ╒══╕"    setdraw 1
  260.     item " Double &Vertical      ╓──╖"    setdraw 2
  261.     item " &Double               ╔══╗"    setdraw 3
  262.     item " &Eraser                   "    setdraw 4
  263.   end
  264.  
  265.   menu  "editMacro"
  266.     item " &Record Toggle        <ctrl r>"    record
  267.     item " &Play                 <ctrl e>"    play
  268.     item " &Erase"                            erasekey
  269.     item " Era&se All"                        erasekey 'a'
  270.     item " Ope&n.."                           askopenkey
  271.     item " Sa&ve.."                           asksavekey
  272.     item " &Assign to Key.."                  assignkey
  273.     item "─"
  274.     item " &Macro List..       <ctrl f12>"    runmac "maclist"
  275.     item " &Key Assignments.."                opencfg "kbd"
  276.     item " Sho&w Available Keys.."            runmac "keydef"
  277.     item "─"
  278.     item " Macro E&xpression..   <ctrl v>"    askeval
  279.     item " R&un Macro.."                      askrmacro
  280.     item " Compi&le Macro.."                  askcmacro
  281.     item "─"
  282.     item " &OS Command..         <alt f9>|*"  askrun
  283.     item " OS Cap&ture..         <alt f8>"    askruncap
  284.     item " OS S&hell                 <f9>|*"  shell
  285.   end
  286.  
  287.   menu  "editHelp"
  288.     item " &User's Guide Topics"                     runmac "helpuser"
  289.     item " User's &Guide"                            quickref 'u'
  290.     item " User &Tips"                               quickref 't'
  291.     item "-"
  292.     item " &Language Reference Topics"               runmac "helplang"
  293.     item " Language &Reference"                      quickref 'l'
  294.     item "-"
  295.     item " &Function Reference          <shift f2>"  quickref 'f'
  296.     item " Function &Quick Reference    <shift f1>"  quickref 'q'
  297.     item "-"
  298.     item " &Ordering Information"                    quickref 'o'
  299.   end
  300.  
  301. // -------------------------------------------------------------------
  302. //  File Manager window menu bar
  303. // -------------------------------------------------------------------
  304.  
  305.   function  FmgrMen
  306.     menubar "" 1
  307.       item "&File"    "fmgrFile"
  308.       item "&Window"  "fmgrWindow"
  309.       item "&Mark"    "fmgrMark"
  310.       item "&Command" "fmgrCommand"
  311.       item "&Sort"    "fmgrSort"
  312.       item "&Print"   "fmgrPrint"
  313.       item "Se&t"     "fmgrSet"
  314.       item "M&acro"   "editMacro"
  315.       item "&Help"    "editHelp"
  316.     end
  317.   end
  318.  
  319.  
  320. // -------------------------------------------------------------------
  321. //  File Manager window pulldown menus
  322. // -------------------------------------------------------------------
  323.  
  324.   menu  "fmgrFile"
  325.     item " &New                 <ctrl n>"  opennew
  326.     item " &Open..               <alt e>"  askopen
  327.     item " Open &Binary.."                 askopenb
  328.     item " Open Las&t            <alt z>"  openlast
  329.     item " &Parent          <ctrl baksp>"  fup
  330.     item " R&efresh"                       reopen
  331.     item "─"
  332.     item " &Close                <alt q>"  close
  333.     item " Close &All            <alt x>"  closeall
  334.     item "─"
  335.     item " Abo&ut.."                       about
  336.   end
  337.  
  338.   menu  "fmgrWindow"
  339.     item " &Restore"                      restore
  340.     item " &Move/Size        <ctrl f5>"   sizekey
  341.     item " P&an              <ctrl f6>"   pankey
  342.     item " M&inimize"                     minimize
  343.     item " Ma&ximize          <ctrl z>"   maximize
  344.     item " &Next              <ctrl a>"   nextwindow
  345.     item " &Prev"                         prevwindow
  346.     item " &List..             <alt w>"   winlist
  347.     item "─"
  348.     item " Ca&scade         <shift f5>"   cascade
  349.     item " Tile &Horz       <shift f4>"   tile 'h'
  350.     item " Tile &Vert       <shift f3>"   tile 'v'
  351.     item "─"
  352.     item " Pr&ompt Style.."               runcfg "prom"
  353.   end
  354.  
  355.   menu  "fmgrMark"
  356.     item " Mark &Toggle     <space>"     fmark
  357.     item "─"
  358.     item " &Mark All        <alt m>"     fmark "ma"
  359.     item " &Unmark All      <alt u>"     fmark "ua"
  360.   end
  361.  
  362.   menu  "fmgrCommand"
  363.     item " &Open                  <enter>"    fopen
  364.     item " Open &Binary         <shift b>"    fopen 'b'
  365.     item " Open &Key Macro      <shift k>"    openkey2 (getffile)
  366.     item "─"
  367.     item " &Move..              <shift m>"    fmove
  368.     item " &Copy..              <shift c>"    fcopy
  369.     item " &Delete     <del> or <shift d>"    fdelete
  370.     item " Re&name..            <shift n>"    frename
  371.     item "─"
  372.     item " &Run                 <shift r>"    frun 'c'
  373.     item " &Print               <shift p>"    fprint
  374.     item "─"
  375.     item " &Attributes..        <shift a>"    fattr
  376.     item " &Touch               <shift t>"    ftouch
  377.     item "─"
  378.     item " Cr&eate Directory.."               fmkdir
  379.     item " &Scan Files..         <ctrl s>"    askscan
  380.   end
  381.  
  382.   menu  "fmgrSort"
  383.     item " &Name           <alt n>"    fsort 'n'
  384.     item " &Extension"                 fsort 'e'
  385.     item " &Size           <alt s>"    fsort 's'
  386.     item " &Date-Time      <alt d>"    fsort 'd'
  387.     item " &OS Default     <alt o>"    fsort 'o'
  388.   end
  389.  
  390.   menu  "fmgrSet"
  391.     item " Confir&mations..|*"                     runcfg "conf"
  392.     item " &File Manager Options..|*"              runcfg "fmgr"
  393.     item " &Line Delimiter Options..|*"            runcfg "ldlm"
  394.     item "-"
  395.     item " &Configuration and Setup..|*"           runcfg "main"
  396.     item " Save Co&nfiguration"                    savecfg
  397.     item "-"
  398.     item " &Recompile the Editor   <alt f2>"       recompile
  399.   end
  400.  
  401.   menu  "fmgrPrint"
  402.     item " &Print             <ctrl p>"   print
  403.     item " Print &Formfeed"               printstr (char 12)
  404.     item " Print &Settings..|*"           runcfg "print"
  405.   end
  406.  
  407.  
  408. // -------------------------------------------------------------------
  409. //  Miscellaneous menus
  410. // -------------------------------------------------------------------
  411.  
  412.   // yes/no/cancel popup menu
  413.   menu  "ync"
  414.     item " &Yes"
  415.     item " &No"
  416.     item " &Cancel"
  417.   end
  418.  
  419.   // ok/cancel popup menu
  420.   menu  "ok"
  421.     item " O&k"
  422.     item " &Cancel"
  423.   end
  424.  
  425.   // replace/append/cancel popup menu
  426.   menu  "rac"
  427.     item " &Replace"
  428.     item " &Append"
  429.     item " &Cancel"
  430.   end
  431.  
  432.