[mythtv-commits] mythtv commit: r19894 - in trunk/mythtv/libs by paulh

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Sat Jan 31 16:34:54 UTC 2009


      Author: paulh
        Date: 2009-01-31 16:34:54 +0000 (Sat, 31 Jan 2009)
New Revision: 19894
   Changeset: http://cvs.mythtv.org/trac/changeset/19894

Modified:

   trunk/mythtv/libs/libmythdb/mythversion.h
   trunk/mythtv/libs/libmythui/mythuitext.cpp
   trunk/mythtv/libs/libmythui/mythuitext.h

Log:

Add a <template> element to MythUIText to hold the message template to be used
when the text is to be set using a map.

This is preferable than using the <value> element because it allows the
displayed text to be Reset() to a sane value. In the example below the text widget
will show 'No Description' after it is reset rather than 
%LONGREPEAT%%STARS%%DESCRIPTION%.

<textarea name="description" from="basetextarea">
    <area>50,100,470,90</area>
    <multiline>yes</multiline>
    <value>No Description</value>
    <template>%LONGREPEAT%%STARS%%DESCRIPTION%</template>
</textarea>





More information about the mythtv-commits mailing list