[mythtv-commits] mythtv commit: r13574 by stuartm
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Mon Jun 4 14:52:37 UTC 2007
Author: stuartm
Date: 2007-06-04 14:52:36 +0000 (Mon, 04 Jun 2007)
New Revision: 13574
Changeset: http://cvs.mythtv.org/trac/changeset/13574
Added:
trunk/mythtv/libs/libmythui/mythuiclock.cpp
trunk/mythtv/libs/libmythui/mythuiclock.h
Modified:
trunk/mythtv/libs/libmythui/libmythui.pro
trunk/mythtv/libs/libmythui/xmlparsebase.cpp
Log:
Adds a basic Clock to mythui, which can be used in menus.
e.g. Adding the clock to the menu of blootube-wide would involve placing the following in base.xml
{{
<clock name="clock">
<area>950,10,300,40</area>
<font>clock</font>
<format>%DATE%, %TIME%</format>
<colonflash>yes</colonflash>
<align>center</align>
</clock>
}}
The clock inherits from MythUIText and so supports all the same options as a Textarea, including drop shadows and colour cycling.
Unique properties currently are:
<format> - Accepts %DATE%, %SHORTDATE% and %TIME% (Uses the user's format/localization preferences)
<secondflash> - Flashes the : or . seperator in HH:MM with the seconds, Yes to enable.
More information about the mythtv-commits
mailing list