[mythtv-commits] Ticket #7826: allow buttontree to customize individual column widths and layouts

MythTV mythtv at cvs.mythtv.org
Wed Dec 30 04:07:08 UTC 2009


#7826: allow buttontree to customize individual column widths and layouts
---------------------------------------------+------------------------------
 Reporter:  ron@…                            |       Owner:  stuartm
     Type:  enhancement                      |      Status:  new    
 Priority:  minor                            |   Milestone:  unknown
Component:  MythTV - User Interface Library  |     Version:  unknown
 Severity:  medium                           |     Mlocked:  0      
---------------------------------------------+------------------------------
 This patch allows you to optionally add custom styling to the individual
 columns of a buttontree.

 To customize the widths, you need only add a <columnwidths> tag to the
 <buttontree> declaration. For example, in a 3 column layout, you can make
 the last column twice as wide by doing:
 <columnwidths>200,200,400</columnwidths>

 To customize the layout of an individual column, you simply define an
 additional buttonlist child, just as you currently do with the
 listtemplate element. For each columnn in the tree, if there is a matching
 buttonlist with the name "listcolumn_X" (where X is the column number,
 with 1 being the first column), that will be used for the layout. If a
 matching buttonlist is not found, then the "listtemplate" buttonlist will
 be used instead.

 I'm attaching 2 files: a patch for the code, and an example patch that can
 be applied to mythvideo to make the 3rd column in the List View buttontree
 appear twice as wide and have a red font (this second patch is only for
 example).

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7826>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list