svghmi/lists.ysl2
author Edouard Tisserant <edouard.tisserant@gmail.com>
Wed, 08 Mar 2023 23:18:41 +0100
branchwxPython4
changeset 3742 8c3d9159b6a9
parent 3322 67069f4634b7
permissions -rw-r--r--
IDE: Fix missing highlighted element in diagrams when using GTK3

- wx's logical function does not work on gtk3, and highlighting relies on it
- skipping logical funciion at all "works" but this now makes highlight opaque
- no easy fix for highlight transparency since emulated with AND Wx logical function
+ added other highlight related cosmetic fix.
// lists.ysl2
//
// compute list widget related constants
// for details, refer to :
//    widget_list.ysl2
//    widget_textlist.ysl2
//    widget_textstulelist.ysl2


// List widgets

const "hmi_lists_descs", "$parsed_widgets/widget[@type = 'List']";
const "hmi_lists", "$hmi_elements[@id = $hmi_lists_descs/@id]";


// TextList widget

const "hmi_textlists_descs", "$parsed_widgets/widget[@type = 'TextList']";
const "hmi_textlists", "$hmi_elements[@id = $hmi_textlists_descs/@id]";

// TextStyleList widgets

const "hmi_textstylelists_descs", "$parsed_widgets/widget[@type = 'TextStyleList']";
const "hmi_textstylelists", "$hmi_elements[@id = $hmi_textstylelists_descs/@id]";

const "textstylelist_related" foreach "$hmi_textstylelists" list {
    attrib "listid" value "@id";
    foreach "func:refered_elements(.)" elt {
        attrib "eltid" value "@id";
    }
}
const "textstylelist_related_ns", "exsl:node-set($textstylelist_related)";