[mythtv-commits] mythtv branch fixes/0.28 updated by jpoet. v0.28.1-5-g299dbae

Git Repo Owner noreply at mythtv.org
Mon Feb 13 23:33:50 UTC 2017


The branch, fixes/0.28 has been updated on the
mythtv repository by gitolite user jpoet.
       via  299dbaee22795d09503f028670f8bbc891c42c5b (commit)
      from  ea8cc22f2067a5c4f780855e18af4a24062d0f69 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 299dbaee22795d09503f028670f8bbc891c42c5b
Author:    John Poet <jpoet at mythtv.org> at Sat, 21 Jan 2017 16:42:28 -0700
Committer: John Poet <jpoet at mythtv.org> at Mon, 13 Feb 2017 16:33:33 -0700
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=299dbaee22795d09503f028670f8bbc891c42c5b

Allow multiple element names with different dependancies.
MythUI only allows one element with a given "name", so allow a themer to
specify names with an extension to make them unique:  Anthing after (and
including) a '+' will be ignored when matching the name.  For example:

<textarea name="description+sub" depends="subtitle">

and

<textarea name="description+notsub" depends="!subtitle">

results in the appropriate definition for "description" to be used depending
on if the "subtitle" element is available.

I thought about making the "+dependancies" naming automatic, but if the
themer is using inheritance, they may find the result unexpected.

This currently only works with textareas.  It would be quite a bit more work
to make it work with other types, and I have not been able to think of any
benifit.

(cherry picked from commit d82629a4dfe6d8b2baa86aa7e71b34e76638f536)



-----------------------------------------------------------------------

Summary of changes:
 mythtv/libs/libmythui/mythuibuttonlist.cpp |   74 +++++++++++++++------------
 mythtv/libs/libmythui/mythuitext.cpp       |   18 +++++--
 mythtv/libs/libmythui/mythuitype.cpp       |   12 +++++
 mythtv/libs/libmythui/mythuitype.h         |    3 +
 mythtv/libs/libmythui/xmlparsebase.cpp     |   14 +++++-
 5 files changed, 80 insertions(+), 41 deletions(-)

-- 



More information about the mythtv-commits mailing list