home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / dos / tools / aurora21 / memenu.aml < prev    next >
Text File  |  1995-08-10  |  18KB  |  433 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..                   <f3>"  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                     <f2>"  save
  67.     item " Sa&ve As..           <ctrl f2>"  asksaveas
  68.     item "-"
  69.     item " &File Manager..           <f4>"  open "*.*"
  70.     item " Ne&xt"                           nextfile
  71.     item " &Prev"                           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     <scroll lock>"   sizekey
  86.     item " P&an"                           pankey
  87.     item " M&inimize         <alt down>"   minimize
  88.     item " Ma&ximize           <alt up>"   maximize
  89.     item " &Next                   <f6>"   nextwindow
  90.     item " &Prev             <shift f6>"   prevwindow
  91.     item " &List..            <ctrl f6>"   winlist
  92.     item "─"
  93.     item " &Copy            <ctrl q><c>"   copywin
  94.     item " Split Hor&z      <ctrl q><h>"   splitwin 'h'
  95.     item " Split Ver&t          <alt v>"   splitwin 'v'
  96.     item "─"
  97.     item " Ca&scade"                       cascade
  98.     item " Tile &Horz        <shift f4>"   tile 'h'
  99.     item " Tile &Vert        <shift f3>"   tile 'v'
  100.     item "─"
  101.     item " Tool &Bar"                      toolbar
  102.     item " Pr&ompt Style.."                runcfg "prom"
  103.   end
  104.  
  105.   menu  "editMark"
  106.     item " Mark &Line            <f7>"   markline
  107.     item " Mark &Column    <shift f7>"   markcolumn
  108.     item " Mark &Stream     <ctrl f7>"   markstream
  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                   <f8>"    copyblock2
  119.     item " Copy &Over"                      copyblockover
  120.     item " &Move             <shift f8>"    moveblock2
  121.     item " Mo&ve Over          <ctrl m>"    moveblockover
  122.     item " &Delete            <ctrl f8>"    deleteblock2
  123.     item " &Indent             <alt f2>"    shiftblock  1
  124.     item " Uninden&t           <alt f3>"    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..           <shift f2>"    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>"   askfind
  141.     item " Re&place..              <shift f5>"   askrepl
  142.     item " &Repeat Last Find/Repl   <ctrl f5>"   findlast
  143.     item " &Scan Files..             <ctrl f>"   askscan
  144.     item " &Incremental Search    <ctrl q><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..             <alt f5>"   askrow
  153.     item " Go to Bloc&k Start"                   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       <ctrl [>"   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          <ctrl q><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                 <alt baksp>"   undo
  186.     item " &Redo                 <alt enter>"   redo
  187.     item "─"
  188.     item " &Insert Line         <ctrl enter>"   insline2
  189.     item " &Delete Line    <alt shift baksp>"   delline
  190.     item " &Split Line"                         splitline2
  191.     item " &Join Line                <alt j>"   joinline
  192.     item "─"
  193.     item " &Erase to End     <ctrl shift del>"  delchar (getlinelen)
  194.     item " Delete Right &Word     <ctrl del>"   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.."                    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      <alt shift ins>"  copy 'w'
  213.     item "─"
  214.     item " &Paste                    <greyenter>"  paste
  215.     item " Paste &Over              <ctrl grey*>"  paste 'o'
  216.     item " Paste &from Windows  <ctrl shift ins>"  paste 'w'
  217.     item "─"
  218.     item " C&lear                   <ctrl grey/>"  clear
  219.     item " Current Clip&board..|*"                 askclip
  220.   end
  221.  
  222.  
  223.   menu  "editPrint"
  224.     item " &Print             <ctrl p>"       print
  225.     item " Print &Block"                      print 'b'
  226.     item " Print &Formfeed"                   printstr (char 12)
  227.     item "-"
  228.     item " &Header/Footer..|*"                askprthdr
  229.     item " Printer &Settings..|*"             runcfg "print"
  230.   end
  231.  
  232.   // Note: do not change the first 12 lines of this menu
  233.   // (except for key definitions)
  234.   menu  "editSet"
  235.     item " &AutoIndent"                           setting 'A' TOGGLE
  236.     item " &Backup"                               setting 'B' TOGGLE
  237.     item " Line &Draw                 <ctrl d>"   setting 'D' TOGGLE
  238.     item " Line St&yle..                     "   submenu "LineStyle"
  239.     item " &Match Character"                      setting 'M' TOGGLE
  240.     item " &Smart Tabs"                           setting 'S' TOGGLE
  241.     item " Synta&x Highlighting"                  setting 'X' TOGGLE
  242.     item " &Translate                 <alt f4>"   setting 'T' TOGGLE
  243.     item " &Undo"                                 setting 'U' TOGGLE
  244.     item " &Variable Tabs"                        setting 'V' TOGGLE
  245.     item " &Word Wrap"                            setting 'W' TOGGLE
  246.     item " &Live Word Wrap            <ctrl w>"   setting 'L' TOGGLE
  247.     item "─"
  248.     item " Mar&gins and Tabs..|*"                 runcfg "marg"
  249.     item " &Line Delimiter Options..|*"           runcfg "ldlm"
  250.     item "─"
  251.     item " &Configuration and Setup..|*"          runcfg "main"
  252.     item " Save Co&nfiguration"                   savecfg
  253.     item "─"
  254.     item " &Recompile the Editor"                 recompile
  255.   end
  256.  
  257.   // Note: do not change this menu (except for key definitions)
  258.   menu  "LineStyle"
  259.     item " &Single"               setdraw 0
  260.     item " Double &Horizontal"    setdraw 1
  261.     item " Double &Vertical"      setdraw 2
  262.     item " &Double"               setdraw 3
  263.     item " &Eraser"               setdraw 4
  264.   end
  265.  
  266.   menu  "editMacro"
  267.     item " &Record Toggle        <ctrl r>"    record
  268.     item " &Play              <ctrl q><e>"    play
  269.     item " &Erase"                            erasekey
  270.     item " Era&se All"                        erasekey 'a'
  271.     item " Ope&n.."                           askopenkey
  272.     item " Sa&ve.."                           asksavekey
  273.     item " &Assign to Key.."                  assignkey
  274.     item "─"
  275.     item " &Macro List..       <ctrl f12>"    runmac "maclist"
  276.     item " &Key Assignments.."                opencfg "kbd"
  277.     item " Sho&w Available Keys.."            runmac "keydef"
  278.     item "─"
  279.     item " Macro E&xpression..   <ctrl v>"    askeval
  280.     item " R&un Macro.."                      askrmacro
  281.     item " Compi&le Macro.."                  askcmacro
  282.     item "─"
  283.     item " &OS Command..         <alt f9>|*"  askrun
  284.     item " OS Cap&ture..         <alt f8>"    askruncap
  285.     item " OS S&hell                 <f9>|*"  shell
  286.   end
  287.  
  288.   menu  "editHelp"
  289.     item " &User's Guide Topics"                     runmac "helpuser"
  290.     item " User's &Guide"                            quickref 'u'
  291.     item " User &Tips"                               quickref 't'
  292.     item "-"
  293.     item " &Language Reference Topics"               runmac "helplang"
  294.     item " Language &Reference"                      quickref 'l'
  295.     item "-"
  296.     item " &Function Reference        <ctrl q><f2>"  quickref 'f'
  297.     item " Function &Quick Reference    <shift f1>"  quickref 'q'
  298.     item "-"
  299.     item " &Ordering Information"                    quickref 'o'
  300.   end
  301.  
  302. // -------------------------------------------------------------------
  303. //  File Manager window menu bar
  304. // -------------------------------------------------------------------
  305.  
  306.   function  FmgrMen
  307.     menubar "" 1
  308.       item "&File"    "fmgrFile"
  309.       item "&Window"  "fmgrWindow"
  310.       item "&Mark"    "fmgrMark"
  311.       item "&Command" "fmgrCommand"
  312.       item "&Sort"    "fmgrSort"
  313.       item "&Print"   "fmgrPrint"
  314.       item "Se&t"     "fmgrSet"
  315.       item "M&acro"   "editMacro"
  316.       item "&Help"    "editHelp"
  317.     end
  318.   end
  319.  
  320.  
  321. // -------------------------------------------------------------------
  322. //  File Manager window pulldown menus
  323. // -------------------------------------------------------------------
  324.  
  325.   menu  "fmgrFile"
  326.     item " &New                 <ctrl n>"  opennew
  327.     item " &Open..                  <f3>"  askopen
  328.     item " Open &Binary.."                 askopenb
  329.     item " Open Las&t            <alt z>"  openlast
  330.     item " &Parent          <ctrl baksp>"  fup
  331.     item " R&efresh"                       reopen
  332.     item "─"
  333.     item " &Close                <alt q>"  close
  334.     item " Close &All            <alt x>"  closeall
  335.     item "─"
  336.     item " Abo&ut.."                       about
  337.   end
  338.  
  339.   menu  "fmgrWindow"
  340.     item " &Restore"                      restore
  341.     item " &Move/Size     <scroll lock>"  sizekey
  342.     item " P&an"                          pankey
  343.     item " M&inimize         <alt down>"  minimize
  344.     item " Ma&ximize           <alt up>"  maximize
  345.     item " &Next                   <f6>"  nextwindow
  346.     item " &Prev             <shift f6>"  prevwindow
  347.     item " &List..            <ctrl f6>"  winlist
  348.     item "─"
  349.     item " Ca&scade"                      cascade
  350.     item " Tile &Horz       <shift f4>"   tile 'h'
  351.     item " Tile &Vert       <shift f3>"   tile 'v'
  352.     item "─"
  353.     item " Pr&ompt Style.."               runcfg "prom"
  354.   end
  355.  
  356.   menu  "fmgrMark"
  357.     item " Mark &Toggle     <space>"     fmark
  358.     item "─"
  359.     item " &Mark All        <alt m>"     fmark "ma"
  360.     item " &Unmark All      <alt u>"     fmark "ua"
  361.   end
  362.  
  363.   menu  "fmgrCommand"
  364.     item " &Open                  <enter>"    fopen
  365.     item " Open &Binary         <shift b>"    fopen 'b'
  366.     item " Open &Key Macro      <shift k>"    openkey2 (getffile)
  367.     item "─"
  368.     item " &Move..              <shift m>"    fmove
  369.     item " &Copy..              <shift c>"    fcopy
  370.     item " &Delete     <del> or <shift d>"    fdelete
  371.     item " Re&name..            <shift n>"    frename
  372.     item "─"
  373.     item " &Run                 <shift r>"    frun 'c'
  374.     item " &Print               <shift p>"    fprint
  375.     item "─"
  376.     item " &Attributes..        <shift a>"    fattr
  377.     item " &Touch               <shift t>"    ftouch
  378.     item "─"
  379.     item " Cr&eate Directory.."               fmkdir
  380.     item " &Scan Files..         <ctrl f>"    askscan
  381.   end
  382.  
  383.   menu  "fmgrSort"
  384.     item " &Name           <alt n>"    fsort 'n'
  385.     item " &Extension"                 fsort 'e'
  386.     item " &Size           <alt s>"    fsort 's'
  387.     item " &Date-Time      <alt d>"    fsort 'd'
  388.     item " &OS Default     <alt o>"    fsort 'o'
  389.   end
  390.  
  391.   menu  "fmgrSet"
  392.     item " Confir&mations..|*"                     runcfg "conf"
  393.     item " &File Manager Options..|*"              runcfg "fmgr"
  394.     item " &Line Delimiter Options..|*"            runcfg "ldlm"
  395.     item "-"
  396.     item " &Configuration and Setup..|*"           runcfg "main"
  397.     item " Save Co&nfiguration"                    savecfg
  398.     item "-"
  399.     item " &Recompile the Editor"                  recompile
  400.   end
  401.  
  402.   menu  "fmgrPrint"
  403.     item " &Print             <ctrl p>"   print
  404.     item " Print &Formfeed"               printstr (char 12)
  405.     item " Print &Settings..|*"           runcfg "print"
  406.   end
  407.  
  408.  
  409. // -------------------------------------------------------------------
  410. //  Miscellaneous menus
  411. // -------------------------------------------------------------------
  412.  
  413.   // yes/no/cancel popup menu
  414.   menu  "ync"
  415.     item " &Yes"
  416.     item " &No"
  417.     item " &Cancel"
  418.   end
  419.  
  420.   // ok/cancel popup menu
  421.   menu  "ok"
  422.     item " O&k"
  423.     item " &Cancel"
  424.   end
  425.  
  426.   // replace/append/cancel popup menu
  427.   menu  "rac"
  428.     item " &Replace"
  429.     item " &Append"
  430.     item " &Cancel"
  431.   end
  432.  
  433.