[mythtv-commits] Ticket #10004: Strange mythui inheritance problem in mythvideo

MythTV noreply at mythtv.org
Tue Aug 23 06:53:52 UTC 2011


#10004: Strange mythui inheritance problem in mythvideo
-------------------------------------------------+------------------------
     Reporter:  justinh                          |      Owner:  stuartm
         Type:  Bug Report - General             |     Status:  new
     Priority:  trivial                          |  Milestone:  unknown
    Component:  MythTV - User Interface Library  |    Version:  0.24-fixes
     Severity:  low                              |   Keywords:
Ticket locked:  0                                |
-------------------------------------------------+------------------------
 In the gallery view window using a grid layout (I'm not sure if it affects
 others or indeed other areas of mythtv) inheriting from an already defined
 buttonlist messes up the button layout regardless of what the area of the
 child elements is.  In the following XML is an example.  "nicelist"
 buttons are 340x40px but the video gallery grid based buttonlist buttons
 are 147x240px. If the videos buttonlist inherits from nicelist all the
 child elements are the correct size but are spaced as if they were 340px
 wide.

 XML of the original buttonlist:

         <buttonlist name="nicelist">
             <area>0,63,340,430</area>
             <arrange>spread</arrange>
             <spacing>5</spacing>
             <!-- <align>center</align> -->
             <wrapstyle>items</wrapstyle>
             <layout>vertical</layout>
             <buttonarea>0,0,340,425</buttonarea>
             <statetype name="buttonitem">
                 <state name="active">
                     <area>0,0,340,40</area>
                      <shape name="buttonback" from="basebox">
                          <area>0,0,340,40</area>
                      </shape>
                     <textarea name="buttontext">
                         <area>8,4,330,36</area>
                         <align>vcenter</align>
                         <cutdown>yes</cutdown>
                         <font>info</font>
                         <alpha>255</alpha>
                     </textarea>
                 </state>
                 <state name="selectedactive" from="active">
                      <shape name="buttonback" from="baseboxsel">
                          <area>0,0,340,40</area>
                      </shape>
                      <textarea name="buttontext">
                          <font>infoblack</font>
                      </textarea>
                 </state>
                 <state name="inactive" from="active">
                     <textarea name="buttontext">
                         <font>info</font>
                         <alpha>127</alpha>
                     </textarea>
                 </state>
                 <state name="selectedinactive" from="selectedactive" />
             </statetype>
             <statetype name="downscrollarrow">
                 <position>358,360</position>
                 <showempty>no</showempty>
                 <state type="full">
                     <imagetype name="dnon">
                         <filename>arrows/downarrowsel.png</filename>
                         <area>0,0,20,20</area>
                     </imagetype>
                 </state>
                 <state type="off">
                     <imagetype name="dnon">
                         <filename>arrows/downarrowunsel.png</filename>
                         <area>0,0,20,20</area>
                     </imagetype>
                 </state>
             </statetype>
             <statetype name="upscrollarrow">
                 <position>358,0</position>
                 <showempty>no</showempty>
                 <state type="full">
                     <imagetype name="upon">
                         <filename>arrows/uparrowsel.png</filename>
                         <area>0,0,20,20</area>
                     </imagetype>
                 </state>
                 <state type="off">
                     <imagetype name="upon">
                         <filename>arrows/uparrowunsel.png</filename>
                         <area>0,0,20,20</area>
                     </imagetype>
                 </state>
             </statetype>
         </buttonlist>

 And the XML of the affected buttonlist:

         <buttonlist name="videos" from="nicelist">
             <area>5,60,1270,570</area>
             <layout>grid</layout><wrapstyle>items</wrapstyle>
             <spacing>8</spacing>
             <buttonarea>15,10,1250,570</buttonarea>
             <statetype name="buttonitem">
                 <state name="active">
                     <area>0,0,147,240</area>
                     <shape name="buttonback">
                         <area>0,0,147,240</area>
                         <fill color="#000000" alpha="127" />
                         <type>roundbox</type>
                         <cornerradius>10</cornerradius>
                     </shape>
                     <imagetype name="buttonimage">
                         <area>0,0,147,220</area>
                         <preserveaspect>true</preserveaspect>
 <filename>mv_browse_nocover_large.png</filename>
                         <mask>147x220mask.png</mask>
                     </imagetype>

 ..etc

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10004>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list