Bug 299362

Summary: Mutually exclusive texture layers
Product: [Applications] marble Reporter: Dennis Nienhüser <nienhueser>
Component: generalAssignee: marble-bugs
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: some future version   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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/