[Chameleon-dev] [Bug 1245] New: XMLThemeLegend: add support for theme_visible

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Fri Jan 13 04:42:34 EST 2006


http://bugzilla.maptools.org/show_bug.cgi?id=1245

           Summary: XMLThemeLegend: add support for theme_visible
           Product: Chameleon
           Version: 2.2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at xs4all.nl


In response to the following e-mail from myself :-) I have added support for
theme_visible in the XMLThemeparser.php. I will commit this to CVS soon.

In order to use it, add visible false to your theme in the XML:
<theme name="Topografie" visible="false" type="checkbox" ABSTRACT="TBA">

And change the renderer html file to 

[repeat theme]
  [if theme_visible = "true"]
    ..
  [end]

E-mail 19-08-2005:

I am trying to exclude some layers from the XMLThemeLegend, which I do not want
the user to change the STATUS of.

Since theme does not have a visible attribute, I decided to add a new group in
an existing theme and set its visible attribute to false. But then you get the
awkward situation that the only visible group of the theme has the checkbox
checked, but the group's check box is not checked (because of the invisible group).

Would it make sense to add a visible attribute to the theme element? Or is there
another way to do this?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list