Bug 299362 - Mutually exclusive texture layers
Summary: Mutually exclusive texture layers
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: some future version
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 11:20 UTC by Dennis Nienhüser
Modified: 2014-04-10 14:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nienhüser 2012-05-04 11:20:39 UTC
Some map themes have optional texture layers that are mutually exclusive, for example blending place names in different languages on top of an unlabeled base map. In such a case users currently have to use the checkboxes like radio buttons. It would be nicer if map themes authors could note that restriction down in .dgml and have marble render radio buttons instead of check boxes.

A possible implementation could be to add a "group" property to sections, e.g.

                <section name="i18n-en" checkable="true" group="i18n" connect="i18n-en" spacing="12">
                    <heading>English</heading>
                </section>
                <section name="i18n-fr" checkable="true" group="i18n" connect="i18n-fr" spacing="12">
                    <heading>French</heading>
                </section>
                <section name="i18n-de" checkable="true" group="i18n" connect="i18n-de" spacing="12">
                    <heading>German</heading>
                </section>
                <section name="i18n-es" checkable="true" group="i18n" connect="i18n-es" spacing="12">
                    <heading>Spanish</heading>
                </section>

sections that are checkable and have an empty group name would then be rendered as check boxes, while sections that are checkable and have a non-empty group name would be rendered as radio buttons belonging to the same radio group. This should even be backward compatible (i.e. the new .dgml file would still work in older Marble versions, just show check boxes instead of radio buttons).


Reproducible: Always
Comment 1 Dennis Nienhüser 2014-04-10 14:18:02 UTC
Implemented in https://git.reviewboard.kde.org/r/114031/