Opened 8 years ago

Closed 8 years ago

#10320 closed Patch - Feature (Fixed)

Allow widgets to 'depend' on other widgets

Reported by: mythtv@… Owned by: stuartm
Priority: minor Milestone: 0.25
Component: MythTV - User Interface Library Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

A widget will be hidden when the widget it depends on is set to its default value.

e.g.

<imagetype name="fanart" depends="title"> ... </imagetype>

<textarea name="title"> <value>Blah</value </textarea>

In this case, the fanart will only show if the title textarea has been set to something other than "Blah".

An example of this in action: http://www.youtube.com/watch?v=vbqQVbtR3mA

At present it is possible for widgets to depend on one of three other types of widget; textarea, imagetype and checkbox. In the case of checkbox, the widget will be hidden if the checkbox has a checkstate of 'off'.

Attachments (1)

dependWidgets.patch (15.6 KB) - added by mythtv@… 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by mythtv@…

Attachment: dependWidgets.patch added

comment:1 Changed 8 years ago by stuartm

Milestone: unknown0.25
Status: newaccepted

comment:2 Changed 8 years ago by stuartm

Resolution: Fixed
Status: acceptedclosed

Committed with some whitespace/formatting fixes in [4287d33]

Note: See TracTickets for help on using tickets.