home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / dos / tools / aurora21 / wsmenu.aml < prev   
Text File  |  1995-08-10  |  18KB  |  438 lines

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