home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Programy / winamp501_full.exe / $_14327_ / titlebox.xml < prev    next >
Extensible Markup Language  |  2003-11-13  |  5KB  |  135 lines

  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <WinampAbstractionLayer version="0.7">
  3.  
  4. <groupdef id="wasabi.titlebox">
  5.  
  6.    <layer
  7.      id="groupbox.bottom.stretch"
  8.      x="3" y="-3"
  9.      w="-6"
  10.      relaty="1" relatw="1"
  11.      image="wasabi.groupbox.bottom"
  12.    />
  13.    <layer
  14.      id="groupbox.left.stretch"
  15.      x="0" y="9"
  16.      h="-12"
  17.      relath="1"
  18.      image="wasabi.groupbox.left"
  19.    />
  20.    <layer
  21.      id="groupbox.right.stretch"
  22.      x="-3" y="9"
  23.      h="-12"
  24.      relatx="1" relath="1"
  25.      image="wasabi.groupbox.right"
  26.    />
  27.    <layer
  28.      id="groupbox.bottom.left.corner"
  29.      x="0" y="-3"
  30.      relaty="1"
  31.      image="wasabi.groupbox.bottom.left"
  32.    />
  33.    <layer
  34.      id="groupbox.bottom.right.corner"
  35.      x="-3" y="-3"
  36.      relatx="1" relaty="1"
  37.      image="wasabi.groupbox.bottom.right"
  38.    />   
  39. </groupdef>
  40.  
  41. <!-- =================================================================================================== -->
  42. <!-- This is the group that holds the content of the TitleBox (what was specified using the content="some.group.id"
  43.      parameter in <TitleBox />). The CustomObject (which must have "titlebox.content" id) is the one ending up 
  44.      holding the content so you can change the coordinates or add decorations around it here -->
  45.  
  46.      <groupdef id="wasabi.titlebox.main.group" inherit_group="wasabi.titlebox" autoheightsource="titlebox.content" autowidthsource="titlebox.content">
  47.         <CustomObject id="titlebox.content" x="8" y="16" w="-16" h="-23" relatw="1" relath="1" />
  48.      </groupdef>
  49.  
  50.  
  51.  
  52. <!-- =================================================================================================== -->
  53. <!-- This group appears on the left of the title in the TitleBox object. if centered="1" was specified, this
  54.      group will be strecthed so as to have the label group (see below) in the center of the titlebar. 
  55.      Otherwise, its width is fixed -->
  56.  
  57.      <groupdef id="wasabi.titlebox.left.group" w="6" h="13">
  58.        <layer
  59.          id="groupbox.top.left.corner"
  60.          x="0" y="6"
  61.          image="wasabi.groupbox.top.left"
  62.        />
  63.        <layer
  64.          id="groupbox.top.stretch"
  65.          x="3" y="6"
  66.          w="3"
  67.          image="wasabi.groupbox.top"
  68.        />
  69.      </groupdef>
  70.  
  71.  
  72.  
  73. <!-- =================================================================================================== -->
  74. <!-- This group is the one holding the label for the TitleBox object, it should contain a Text object with
  75.      id="titlebox.text". The group will be stretched automatically to the size it needs to hold the full text -->
  76.  
  77.      <groupdef id="wasabi.titlebox.center.group" h="13" autowidthsource="titlebox.text" >
  78.        <text
  79.          id="titlebox.text" 
  80.          default="ERROR"
  81.          x="0" y="-1"
  82.          w="0" relatw="1" h="0" relath="1"
  83.          font="tahoma" fontsize="13"
  84.          color="wasabi.text.color" 
  85.        />
  86.      </groupdef>
  87.  
  88.  
  89.  
  90. <!-- =================================================================================================== -->
  91. <!-- This is the last of the title groups for the TitleBox object, this one is on the right and is stretched 
  92.      all the way to the right of the content area. -->
  93.  
  94.      <groupdef id="wasabi.titlebox.right.group" w="0" relatw="1" h="13">
  95.        <layer
  96.          id="groupbox.top.stretch"
  97.          x="0" y="6"
  98.          w="-3"
  99.          relatw="1"
  100.          image="wasabi.groupbox.top"
  101.        />
  102.        <layer
  103.          id="groupbox.top.right.corner"
  104.          x="-3" y="6"
  105.          relatx="1"
  106.          image="wasabi.groupbox.top.right"
  107.        />
  108.      </groupdef>
  109.  
  110.  
  111.  
  112. <!-- =================================================================================================== -->
  113. <!-- This is an example of how to use this control -->
  114.  
  115.      <!-- First the content -->
  116.      <groupdef id="example.titlebox.content" autoheightsource="lastitem" w="300">
  117.        <Wasabi:CheckBox x="0" y="0" text="This is a config option"/>
  118.        <Wasabi:CheckBox x="0" y="16" text="This is another config option"/>
  119.        <Wasabi:CheckBox x="0" y="32" text="This is yet another config option"/>
  120.        <Wasabi:CheckBox x="0" y="48" id="lastitem" text="This is another damn config option"/>
  121.      </groupdef>
  122.  
  123.  
  124.      <!-- Then the object itself, with the content as parameter.
  125.  
  126.           add register_autopopup="1" to the groupdef to test -->
  127.  
  128.      <groupdef id="example.titlebox.main" name="TitleBox Example" >
  129.        <Wasabi:TitleBox x="50" y="50" title="Group title" content="example.titlebox.content" />
  130.      </groupdef>
  131.  
  132.  
  133.  
  134. </WinampAbstractionLayer>
  135.