home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Programy / winamp501_full.exe / $_14327_ / standardframe.xml < prev    next >
Text File  |  2003-10-20  |  14KB  |  517 lines

  1. <!-- =======================================================================================================
  2.  
  3.   This file implements the following objects :
  4.  
  5.   - Wasabi:MainFrame:NoStatus
  6.   - Wasabi:PlaylistFrame:NoStatus
  7.   - Wasabi:MediaLibraryFrame:NoStatus
  8.   Available parameters :
  9.  
  10.     padtitleleft  : resizes the title from the left by the specified amount of pixels
  11.     padtitleright : resizes the title from the right by the specified amount of pixels
  12.     content     : tells the object which group to instantiate in its client area
  13.  
  14. ======================================================================================================== -->
  15.  
  16. <include file="standardframe-elements.xml" />
  17. <include file="window_menus.xml" />
  18.  
  19. <groupdef id="wasabi.main.layout" h="161">
  20.   <layer
  21.     id="window.top.left"
  22.     x="0" y="0"
  23.     image="wasabi.frame.top.left"
  24.     resize="topleft"
  25.     sysregion="1"
  26.   />
  27.   <layer
  28.     id="window.top"
  29.     x="10" y="0"
  30.     w="-20"
  31.     relatw="1"
  32.     image="wasabi.frame.top"
  33.     resize="top"
  34.     sysregion="1"
  35.   />
  36.   <layer
  37.     id="window.top.right"
  38.     x="-10" y="0"
  39.     relatx="1"
  40.     image="wasabi.frame.top.right"
  41.     resize="topright"
  42.     sysregion="1"
  43.   />
  44.   <layer
  45.     id="window.top.left.region"
  46.     x="0"
  47.     y="0"
  48.     image="wasabi.frame.top.left.region"
  49.     sysregion="-2"
  50.   />
  51.   <layer
  52.     id="window.top.right.region"
  53.     x="-10"
  54.     y="0"
  55.     relatx="1"
  56.     image="wasabi.frame.top.right.region"
  57.     sysregion="-2"
  58.   />
  59.  
  60.   <Wasabi:TitleBar
  61.     id="wasabi.titlebar"
  62.     x="10" y="0"
  63.     w="-29" h="18"
  64.     relatw="1"
  65.   />
  66.  
  67.   <layer
  68.     x="5" y="4"
  69.     image="wasabi.button.bg.title"
  70.   />
  71.   <button
  72.     id="MainMenu.inactive"
  73.     action="SYSMENU"
  74.     x="6" y="4"
  75.     image="wasabi.button.sysmenu.inactive"
  76.     tooltip="Main Menu"
  77.     activeAlpha="0"
  78.   />
  79.   <button
  80.     id="MainMenu"
  81.     action="SYSMENU"
  82.     x="6" y="4"
  83.     image="wasabi.button.sysmenu"
  84.     downImage="wasabi.button.sysmenu.pressed"
  85.     hoverImage="wasabi.button.sysmenu.hover"
  86.     tooltip="Main Menu"
  87.     inactiveAlpha="0"
  88.   />
  89.   <button
  90.     id="Close.inactive"
  91.     action="CLOSE"
  92.     x="-17" y="4"
  93.     relatx="1"
  94.     image="wasabi.button.exit.inactive"
  95.     tooltip="Close Window"
  96.     activeAlpha="0"
  97.   />
  98.   <button
  99.     id="Close"
  100.     action="CLOSE"
  101.     x="-17" y="4"
  102.     relatx="1"
  103.     image="wasabi.button.exit"
  104.     downImage="wasabi.button.exit.pressed"
  105.     hoverImage="wasabi.button.exit.hover"
  106.     tooltip="Close Window"
  107.     inactiveAlpha="0"
  108.   />
  109. </groupdef>
  110.  
  111.  
  112.  
  113. <groupdef id="wasabi.standard.layout">
  114.   <layer
  115.     id="window.top.left"
  116.     x="0" y="0"
  117.     image="wasabi.frame.top.left"
  118.     resize="topleft"
  119.     sysregion="1"
  120.   />
  121.   <layer
  122.     id="window.top"
  123.     x="10" y="0"
  124.     w="-20"
  125.     relatw="1"
  126.     image="wasabi.frame.top"
  127.     resize="top"
  128.     sysregion="1"
  129.   />
  130.   <layer
  131.     id="window.top.right"
  132.     x="-10" y="0"
  133.     relatx="1"
  134.     image="wasabi.frame.top.right"
  135.     resize="topright"
  136.     sysregion="1"
  137.   />
  138.   <layer
  139.     id="window.top.left.region"
  140.     x="0"
  141.     y="0"
  142.     image="wasabi.frame.top.left.region"
  143.     sysregion="-2"
  144.   />
  145.   <layer
  146.     id="window.top.right.region"
  147.     x="-10"
  148.     y="0"
  149.     relatx="1"
  150.     image="wasabi.frame.top.right.region"
  151.     sysregion="-2"
  152.   />
  153.  
  154.   <Wasabi:TitleBar
  155.     id="wasabi.titlebar"
  156.     x="10" y="0"
  157.     w="-29" h="18"
  158.     relatw="1"
  159.   />
  160.  
  161.   <layer
  162.     x="5" y="4"
  163.     image="wasabi.button.bg.title"
  164.   />
  165.   <button
  166.     id="MainMenu"
  167.     action="SYSMENU"
  168.     x="6" y="4"
  169.     image="wasabi.button.sysmenu.inactive"
  170.     tooltip="Main Menu"
  171.     activeAlpha="0"
  172.   />
  173.   <button
  174.     id="MainMenu"
  175.     action="SYSMENU"
  176.     x="6" y="4"
  177.     image="wasabi.button.sysmenu"
  178.     downImage="wasabi.button.sysmenu.pressed"
  179.     hoverImage="wasabi.button.sysmenu.hover"
  180.     tooltip="Main Menu"
  181.     inactiveAlpha="0"
  182.   />
  183.   <button
  184.     id="Close.inactive"
  185.     action="CLOSE"
  186.     x="-17" y="4"
  187.     relatx="1"
  188.     image="wasabi.button.exit.inactive"
  189.     tooltip="Close Window"
  190.     activeAlpha="0"
  191.   />
  192.   <button
  193.     id="Close"
  194.     action="CLOSE"
  195.     x="-17" y="4"
  196.     relatx="1"
  197.     image="wasabi.button.exit"
  198.     downImage="wasabi.button.exit.pressed"
  199.     hoverImage="wasabi.button.exit.hover"
  200.     tooltip="Close Window"
  201.     inactiveAlpha="0"
  202.   />
  203. </groupdef>
  204.  
  205. <!-- <Wasabi:MainFrame:NoStatus /> implementation -->
  206. <groupdef id="wasabi.mainframe.nostatusbar" sysregion="1" xuitag="Wasabi:MainFrame:NoStatus">
  207.   <group id="wasabi.main.layout" x="0" y="0" w="0" relatw="1" sysregion="1"/>
  208.   <group id="wasabi.menubar" x="0" y="18" w="0" relatw="1" sysregion="1" visible="1"/>
  209.   <script id="standardframe.script" file="scripts/standardframe.maki" param="0,18,0,0,0,0,1,1" />
  210. </groupdef>
  211.  
  212. <!-- <Wasabi:PlaylistFrame:NoStatus /> implementation -->
  213. <groupdef id="wasabi.playlistframe.nostatusbar" sysregion="1" xuitag="Wasabi:PlaylistFrame:NoStatus">
  214.   <group id="wasabi.standard.layout" x="0" y="0" w="0" relatw="1" sysregion="1"/>
  215.   <group id="wasabi.menubar.pl" x="0" y="18" w="0" relatw="1" sysregion="1" visible="1"/>
  216.   <script id="standardframe.script" file="scripts/standardframe.maki" param="0,18,0,0,0,0,1,1" />
  217. </groupdef>
  218.  
  219. <!-- <Wasabi:MediaLibraryFrame:NoStatus /> implementation -->
  220. <groupdef id="wasabi.medialibraryframe.nostatusbar" sysregion="1" xuitag="Wasabi:MediaLibraryFrame:NoStatus">
  221.   <group id="wasabi.standard.layout" x="0" y="0" w="0" relatw="1" sysregion="1"/>
  222.   <group id="wasabi.menubar.ml" x="0" y="18" w="0" relatw="1" sysregion="1" visible="1"/>
  223.   <script id="standardframe.script" file="scripts/standardframe.maki" param="0,18,0,0,0,0,1,1" />
  224. </groupdef>
  225.  
  226. <!-- <Wasabi:VISFrame:NoStatus /> implementation -->
  227. <groupdef id="wasabi.visframe.nostatusbar" sysregion="1" xuitag="Wasabi:VISFrame:NoStatus">
  228.   <group id="wasabi.standard.layout" x="0" y="0" w="0" relatw="1" sysregion="1"/>
  229.   <script id="standardframe.script" file="scripts/standardframe.maki" param="0,18,0,0,0,0,1,1" />
  230. </groupdef>
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239. <!-- =======================================================================================================
  240.  
  241.   This group serves as a template for all the Wasabi:StandardFrame objects
  242.  
  243. ======================================================================================================== -->
  244.  
  245. <groupdef id="wasabi.frame.layout">
  246.  
  247.   <layer
  248.     id="window.top.left"
  249.     x="0" y="0"
  250.     image="wasabi.frame.top.left"
  251.     resize="topleft"
  252.     sysregion="1"
  253.   />
  254.   <layer
  255.     id="window.top"
  256.     x="10" y="0"
  257.     w="-20"
  258.     relatw="1"
  259.     image="wasabi.frame.top"
  260.     resize="top"
  261.     sysregion="1"
  262.   />
  263.   <layer
  264.     id="window.top.right"
  265.     x="-10" y="0"
  266.     relatx="1"
  267.     image="wasabi.frame.top.right"
  268.     resize="topright"
  269.     sysregion="1"
  270.   />
  271.   <layer
  272.     id="window.top.left.region"
  273.     x="0"
  274.     y="0"
  275.     image="wasabi.frame.top.left.region"
  276.     sysregion="-2"
  277.   />
  278.   <layer
  279.     id="window.top.right.region"
  280.     x="-10"
  281.     y="0"
  282.     relatx="1"
  283.     image="wasabi.frame.top.right.region"
  284.     sysregion="-2"
  285.   />
  286.  
  287.   <layer
  288.     x="0" y="18"
  289.     image="wasabi.window2.topleft"
  290.     resize="topleft"
  291.   />
  292.   <layer
  293.     x="6" y="18"
  294.     w="-12"
  295.     relatw="1"
  296.     image="wasabi.window2.topcenter"
  297.     resize="top"
  298.   />
  299.   <layer
  300.     x="-6" y="18"
  301.     relatx="1"
  302.     image="wasabi.window2.topright"
  303.     resize="topright"
  304.   />
  305.   <layer
  306.     x="0" y="23"
  307.     relath="1"
  308.     h="-23"
  309.     image="wasabi.window2.left"
  310.     resize="left"
  311.   />
  312.   <layer
  313.     x="-6" y="23"
  314.     relatx="1"
  315.     relath="1"
  316.     h="-23"
  317.     image="wasabi.window2.right"
  318.     resize="right"
  319.   />
  320.  
  321.    <layer id="window.resize.disabler" x="6" y="6" w="-12" h="-12" relatw="1" relath="1"/>
  322.  
  323.    <LayoutStatus id="sysmenu.status" bg="0" x="5" y="3" w="14" h="9" includeonly="{system}" />
  324.    <hideobject target="sysmenu.status"/>
  325.  
  326.   <Wasabi:TitleBar
  327.     id="wasabi.titlebar"
  328.     x="20" y="0"
  329.     w="-39" h="18"
  330.     relatw="1"
  331.   />
  332.  
  333.   <layer
  334.     id="MainMenu.button.bg"
  335.     x="5" y="4"
  336.     image="wasabi.button.bg.title"
  337.   />
  338.   <button
  339.     id="MainMenu.inactive"
  340.     action="SYSMENU"
  341.     x="6" y="4"
  342.     image="wasabi.button.sysmenu.inactive"
  343.     tooltip="Main Menu"
  344.     activeAlpha="0"
  345.   />
  346.   <button
  347.     id="MainMenu"
  348.     action="SYSMENU"
  349.     x="6" y="4"
  350.     image="wasabi.button.sysmenu"
  351.     downImage="wasabi.button.sysmenu.pressed"
  352.     hoverImage="wasabi.button.sysmenu.hover"
  353.     tooltip="Main Menu"
  354.     inactiveAlpha="0"
  355.   />
  356.   <button
  357.     id="Close.inactive"
  358.     action="CLOSE"
  359.     x="-17" y="4"
  360.     relatx="1"
  361.     image="wasabi.button.exit.inactive"
  362.     tooltip="Close Window"
  363.     activeAlpha="0"
  364.   />
  365.   <button
  366.     id="Close"
  367.     action="CLOSE"
  368.     x="-17" y="4"
  369.     relatx="1"
  370.     image="wasabi.button.exit"
  371.     downImage="wasabi.button.exit.pressed"
  372.     hoverImage="wasabi.button.exit.hover"
  373.     tooltip="Close Window"
  374.     inactiveAlpha="0"
  375.   />
  376.  
  377.  </groupdef>
  378.  
  379.  
  380.  
  381.  
  382. <!-- =======================================================================================================
  383.  
  384.   <Wasabi:StandardFrame:Status /> implementation
  385.  
  386. ======================================================================================================== -->
  387.  
  388.  <groupdef id="wasabi.standardframe.statusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:Status">
  389.  
  390.   <group id="wasabi.frame.layout" x="0" y="0" w="0" relatw="1" h="-42" relath="1"/>
  391.   <layer
  392.     x="0" y="-42"
  393.     relaty="1"
  394.     image="wasabi.window2.bottomleft"
  395.     resize="bottomleft"
  396.   />
  397.   <layer
  398.     x="20" y="-25"
  399.     w="-40"
  400.     relatw="1"
  401.     relaty="1"
  402.     image="wasabi.window2.bottomcenter"
  403.     resize="bottom"
  404.   />
  405.   <layer
  406.     x="-20" y="-42"
  407.     relatx="1"
  408.     relaty="1"
  409.     image="wasabi.window2.bottomright"
  410.     resize="bottomright"
  411.   />
  412.   <layer
  413.     x="0" y="-6"
  414.     relaty="1"
  415.     image="player.main.left.region"
  416.     resize="left"
  417.     sysregion="-2"
  418.   />
  419.   <layer
  420.     x="-6" y="-6"
  421.     relaty="1"
  422.     relatx="1"
  423.     image="player.main.right.region"
  424.     sysregion="-2"
  425.   />
  426.  
  427.    <layer
  428.      id="window.resizer"
  429.      x="-16" y="-16"
  430.      relatx="1" relaty="1"
  431.      image="wasabi.frame.resizer"
  432.      resize="bottomright"
  433.      scale="bottomright"
  434.    />
  435.  
  436.   <LayoutStatus id="standardframe.layoutstatus" x="11" y="-21" relaty="1" w="-43" relatw="1" h="18" exclude="{system}" />
  437.   <script id="standardframe.script" file="scripts/standardframe.maki" param="6,23,-12,-48,0,0,1,1" />
  438.  
  439. </groupdef>
  440.  
  441.  
  442.  
  443.  
  444. <!-- =======================================================================================================
  445.  
  446.   <Wasabi:StandardFrame:NoStatus /> implementation
  447.  
  448. ======================================================================================================== -->
  449.  
  450. <groupdef id="wasabi.standardframe.nostatusbar" background="wasabi.frame.basetexture" sysregion="1" xuitag="Wasabi:StandardFrame:NoStatus">
  451.  
  452.   <group id="wasabi.frame.layout" x="0" y="0" w="0" h="-15" relatw="1" relath="1"/>
  453.   <layer
  454.     x="0" y="-27"
  455.     relaty="1"
  456.     image="wasabi.window2.bottomleft.nostatus"
  457.     resize="bottomleft"
  458.   />
  459.   <layer
  460.     x="20" y="-10"
  461.     w="-40"
  462.     relatw="1"
  463.     relaty="1"
  464.     image="wasabi.window2.bottomcenter.nostatus"
  465.     resize="bottom"
  466.   />
  467.   <layer
  468.     x="-20" y="-27"
  469.     relatx="1"
  470.     relaty="1"
  471.     image="wasabi.window2.bottomright.nostatus"
  472.     resize="bottomright"
  473.   />
  474.   <layer
  475.     x="0" y="-6"
  476.     relaty="1"
  477.     image="player.main.left.region"
  478.     resize="left"
  479.     sysregion="-2"
  480.   />
  481.   <layer
  482.     x="-6" y="-6"
  483.     relaty="1"
  484.     relatx="1"
  485.     image="player.main.right.region"
  486.     sysregion="-2"
  487.   />
  488.   <script id="standardframe.script" file="scripts/standardframe.maki" param="6,23,-12,-33,0,0,1,1" />
  489.  
  490. </groupdef>
  491.  
  492.  
  493.  
  494.  
  495.  
  496. <!-- =======================================================================================================
  497.  
  498.   <Wasabi:StandardFrame:Modal /> implementation
  499.  
  500. ======================================================================================================== -->
  501.  
  502. <groupdef id="wasabi.standardframe.modal" inherit_group="wasabi.standardframe.nostatusbar" sysregion="1" xuitag="Wasabi:StandardFrame:Modal">
  503.   <sendparams target="wasabi.titlebar" x="4" w="-22" relatw="1" />
  504.   <hideobject target="MainMenu;MainMenu.inactive.inactive;MainMenu.button.bg"/>
  505.   <sendparams target="window.top.left;window.top;window.top.right;window.left;window.right;window.bottom.left.top;window.bottom.left;window.bottom.left.bottom;window.bottom.top;window.bottom;window.bottom.bottom;window.bottom.right.top;window.bottom.right;window.bottom.right.bottom" resize="0" />
  506. </groupdef>
  507.  
  508.  
  509. <!-- =======================================================================================================
  510.  
  511.   <Wasabi:StandardFrame:Static /> implementation
  512.  
  513. ======================================================================================================== -->
  514.  
  515. <groupdef id="wasabi.standardframe.static" inherit_group="wasabi.standardframe.nostatusbar" sysregion="1" xuitag="Wasabi:StandardFrame:Static">
  516.   <sendparams target="window.top.left;window.top;window.top.right;window.left;window.right;window.bottom.left.top;window.bottom.left;window.bottom.left.bottom;window.bottom.top;window.bottom;window.bottom.bottom;window.bottom.right.top;window.bottom.right;window.bottom.right.bottom" resize="0" />
  517. </groupdef>