home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / feelx11a.zip / TOOLBOX.INC < prev    next >
Text File  |  1994-06-29  |  10KB  |  259 lines

  1. /*******************************************************************************
  2.  
  3. This file defines:
  4.  
  5.    Default_FeelX
  6.    Default_Shell
  7.    Default_Actionbar
  8.  
  9.    Window
  10.  
  11.  
  12. *******************************************************************************/
  13.  
  14. Default_FeelX:= menu [
  15.             entry="Standard FeelX menu"  // not necessary in a toplevel menu
  16.             item=feelx [ entry="FeelX"   // Selecting FeelX turns on/off
  17.                          focus=true      // Sliding focus
  18.                          cutpaste=true   // Cut & Paste in shells
  19. (*                       hide=true       // hiding of mouse pointer *)
  20.                        ] /* end feelx */
  21.             item=altcutpaste             // alternate Cut & Paste keys
  22. //          item=altcutpaste [entry="blah blah"] /* example other menu entry! */
  23.             item=-                       // Separator
  24.             item=Window                  // Window is a menu defined below
  25.             item=-
  26.             item=*addmenu                // add to quick switch list ( * default)
  27.             item=qswitch [hide=true]
  28.                                          // hide quick switch list if empty
  29.             item=-
  30.             item=Prompt                  // Start a shell
  31.             item=redraw                  // Redraw the contents of window
  32.             item=top                     // Always top feature
  33.             item=winhotkey               // Assign a hotkey to this window
  34.           ] /* end of menu */
  35.  
  36.  
  37. Window := menu [                              // see feelx.inf for more information
  38.             entry="window"
  39.             item=*zorder[ entry="W. -> background", pos=wbottom]
  40.             item= zorder[ entry="P.-> 1 back",      pos=pnext]
  41.             item= zorder[ entry="P.-> background",  pos=pbottom]
  42.             item= zorder[ entry="P.-> foreground",  pos=ptop]
  43.           ] /* end of menu */
  44.  
  45. Default_Shell:= menu [
  46.             entry="Standard Shell"
  47.             item=keyin [ "cd ..\n", "~cd .." ]
  48.             item=*keyin[ "dir\n", "~dir" ]
  49. //          item=keyin[ entry="~unzip (%c)", string="unzip -l %c" ]
  50.             item=menu [
  51.                         entry="~font"
  52.                         item=*font [ entry="~small font", font=1 ]
  53.                         item= font [ entry="~large font", font=5 ]
  54.                       ] /* end of menu (anonymous item) */
  55.             item=keyin [ entry="open folder", string="wpopen\n" ]
  56.             item=kill [ entry="e~xit" /*, killchild=true */ ]
  57.           ] /* end of main menu  (Standard_shell) */
  58.  
  59. Default_Desktop := menu [
  60.             item= hideactionbar
  61.             item= Config
  62.             item= -
  63.             item= CommandPrompts[]
  64.             item=*Prompt                // Start a shell (* = this is default!)
  65.             item= -
  66.             item= Tools
  67.             item= User_Documentation
  68.             item= -
  69.             item= HelpFeelX
  70.             item= shutdowndlg [ onshutdown=shutdown ]
  71.             item= QuitFeelX
  72.           ] /* end of menu */
  73.  
  74. Default_Actionbar := actionbar [
  75.             item=qswitch
  76.             item=mwinlist [ entry="~Window list", all=false, items="STARTFX.EXE" ]
  77.             item=CommandPrompts[]
  78.             item=Tools[]
  79.             item=ConfigActionbar
  80. //          item=User_Documentation[]
  81.             item=HelpFeelXActionbar
  82.           ] /* end of menu */
  83. //Startup := Default_Actionbar
  84.  
  85. Config:= menu [
  86.             entry="Config"
  87.             item=feelx [ entry="Sliding focus", focus=true ]
  88.             item=feelx [ entry="Cut & Paste", cutpaste=true ]
  89.             item=feelx [ entry="Hide mouse", hide=true ]
  90.             item=-
  91.             item=hideactionbar
  92.             item=moveactionbar
  93.             item=-
  94.             item=FxOpt
  95.             item=FeelXObject
  96.             item=SystemConfig[]
  97.            ] /* end of menu */
  98.  
  99. ConfigActionbar:= menu [
  100.             entry="Config"
  101.             item=feelx [ entry="Sliding focus", focus=true ]
  102.             item=feelx [ entry="Cut & Paste", cutpaste=true ]
  103.             item=feelx [ entry="Hide mouse", hide=true ]
  104.             item=-
  105.             item=hideactionbar
  106.             item=moveactionbar
  107.             item=-
  108.             item=FxOpt
  109.             item=FeelXObject
  110.             item=SystemConfig[]
  111.             item=-
  112.             item=shutdowndlg [ onshutdown=shutdown ]
  113.             item=QuitFeelX
  114.            ] /* end of menu */
  115.  
  116. SystemConfig:=menu [
  117.             entry="System"
  118.             item=object [ entry="Config folder", object="<WP_CONFIG>" ]
  119.             item=program [ entry="edit config.sys", name="e.exe", parameters="config.sys" ]
  120.             item=object [ entry="Color", object="<WP_CLRPAL>" ]
  121.             item=object [ entry="Font", object="<WP_FNTPAL>" ]
  122.             item=object [ entry="System", object="<WP_SYSTEM>" ]
  123.            ] /* end of menu */
  124.  
  125.  
  126. // (E) Nützliche (?) Objekte
  127.  
  128. Prog_Documentation:= menu [
  129.             entry="Documentation"
  130.             item= program [ entry="Control Pgm", name="view.exe", parameters="progref21" ]
  131.             item= program[ entry="16-Bit API", name="view.exe", parameters=prcp ]
  132.             item=*program [ entry="PM Reference", name="view.exe", parameters="pmref" ]
  133.             item= program [ entry="C++ Lib", name="view.exe", parameters="dde4clib" ]
  134.             item= program [ entry="C++ Ref", name="view.exe", parameters="dde4lrm" ]
  135.            ] /* end of menu */
  136.  
  137. Prompt:= program [
  138.             entry="Shell"
  139.             type=os2win                  // no name: shell
  140.             child=true                   // as a child: move to top
  141.          ] /* end of program */
  142.  
  143. /* Just an example */
  144. Help:= program [
  145.           entry="Help!!"
  146.           name="view.exe"
  147.           parameters="PMFUN.INF+PMGPI.INF+PMHOK.INF+PMMSG.INF+PMREL.INF+PMWIN.INF+PMWKP.INF+CPGREF1.INF+CPGREF2.INF+CPGREF3.INF &"
  148.        ] /* end of program */
  149.  
  150. User_Documentation:= menu [
  151.             entry="User Documentation"
  152.             item= program [ entry="OS/2", name="view.exe", parameters="cmdref.inf" ]
  153.            ] /* end of menu */
  154.  
  155. Tools:= menu [
  156.       entry="Tools"
  157.       item= pmkill
  158.       item= minimize
  159.       item= -
  160.       item= program [ entry="Clipboard", name="clipos2.exe" ]
  161.       item= program [ entry="Calculator", name="pmcalc.exe" ]
  162.       item= program [ entry="Pulse", name="pulse.exe" ]
  163.       item= object  [ entry="Clock", object="<WP_CLOCK>" ]
  164.       item= -
  165.       item= Wo
  166.       item= ReXX [ entry="ReXX: %c"
  167.                    window=pm
  168.             ]
  169.       item= PmShell
  170.       ] /* end of menu */
  171.  
  172. Wo:= program [
  173.        title="wo"                        // Title of pm window
  174.        name="wo.exe"                     // The program name
  175.        parameters="-p c-:[Which file?]"     // Ask for file as a parameter
  176.        window=pm                         // -> send output to a PM-Window
  177.        entry="Where is ...?"             // menu entry
  178.        ]
  179.  
  180. FxOpt:= program [
  181.       entry="change opt."                // the menu entry
  182.       name="fxopt.exe"                   // the program name
  183.       path="g:\source\feelx\feelx"
  184.       parameters="&"                     // Use clipboard as parameter!
  185.       ] /* end of program */
  186.  
  187. cprogram:=program [ child=true ]
  188.  
  189. CommandPrompts:= menu [
  190.       entry="Command Prompts"
  191.       item=cprogram [ entry="OS/2 Shell (win)", type=os2win ]
  192.       item=cprogram [ entry="OS/2 Shell (fs)", type=os2fs ]
  193.       item=-
  194.       item=cprogram [ entry="DOS Shell (win)", type=doswin ]
  195.       item=cprogram [ entry="DOS Shell (fs)", type=dosfs ]
  196.       item=-
  197.       item=cprogram [ entry="Windows (fs)", name="progman.exe", type=windoze31 ]
  198.       item=cprogram [ entry="Windows (seamless)", name="progman.exe", type=windoze31seamless ]
  199.       ] /* end of menu */
  200.  
  201. HelpFeelX:= menu [
  202.       entry="Help"
  203.       item=*program [ entry="FeelX Doc", name="view.exe", parameters="feelx" ]
  204.       item=program [ feelxpath=true, entry="FeelX Help about %c", name="view.exe", parameters="feelx &" ]
  205.       item=program [ entry="OS/2 Help about %c", name="view.exe", parameters="cmdref &" ]
  206.       ]
  207.  
  208. HelpFeelXActionbar:= menu [
  209.       entry="Help"
  210.       item=program [ entry="FeelX Doc", name="view.exe", parameters="feelx" ]
  211.       item=program [ entry="Help about %c", name="view.exe", parameters="feelx &" ]
  212.       item=program [ entry="OS/2 Help about %c", name="view.exe", parameters="cmdref &" ]
  213.       ]
  214. OS2Help:=program [entry="OS/2 Cmd~Help", name="view.exe", parameters="cmdref &"]
  215.  
  216. ReXX := program [
  217.                   feelxpath=true
  218.                   name="callrx.exe"
  219.                   entry="ReXX"
  220.                   rexxfile="interp.cmd"
  221.                   rexxparameter="&"
  222.                   parameters="<rexxfile> <rexxparameter>"
  223.                 ]
  224.  
  225. Default_Hotkeys:=hotkey [
  226. // Please note: only the first two entry are on per default,
  227. // all others are commented out.
  228. // Ctrl-Shift-PgDn: Move window into the Background
  229.                 pgdn=zorder [ pos=pbottom ]
  230. // Ctrl-Shift-PgUp: Move window into the Front
  231.                 pgup=zorder [ pos=ptop ]
  232. // Example: Ctrl-Shift-s: start a command shell
  233. //              s=Prompt
  234. // Example: Ctrl-Shift-m: start the macro recorder
  235. //              m=recordmacro
  236. // Example: Ctrl-Shift-a: display/hide the actionbar
  237. //              a=hideactionbar
  238. // Example: Ctrl-Shift-h: Scan all programming guides. Look for clipboard entry
  239. //              h=Help
  240. // Example: Ctrl-Shift-ESC: display special menu-windowlist
  241. //              esc=mwinlist []
  242. // Example: Ctrl-Shift-v: switch to a program called viewdoc.exe (=view)
  243. //              v=switchto [ name="viewdoc.exe" ]
  244. // Example: Ctrl-Shift-f: toggle sliding focus (useful if incompatible)
  245. //              f=feelx [ focus=true ]
  246. // Example: Ctrl-Shift-k: graphical kill
  247. //              k=pmkill
  248. // Example: Ctrl-Shift-z: currently active window -> always top on/off
  249. //              z=top
  250. // Example: Ctrl-Shift-x: FeelX settings
  251. //              x=object [ object="<WP_FEELX>", open="SETTINGS" ]
  252. // Example: Ctrl-Shift-t: open template folder
  253. //              t=object [ object="<WP_TEMPS>", open="DEFAULT" ]
  254. // Example: Ctrl-Shift-e: Switch to e (if there) and/or epm (if there)
  255. //              e=chain [ item=switchto [ name="e.exe" ]
  256. //                        item=switchto [ name="epm.exe" ]
  257. //                      ]
  258.          ]
  259.