# HG changeset patch
# User Edouard Tisserant
# Date 1616766815 -3600
# Node ID 62753288be743ce127a1b08dfa24f6a9720f8b16
# Parent  856f4698a0a866b625dcf770747c84e642bcbf99
SVGHMI: Add list of HMI tree path in a JS array, so that we can use it for multiple purpose :
 - display name of edited variable in keypads (currently wrong in relative pages)
 - have some variable that hold basename of current relative page HMI_NODE's path
 - propose some list of names in DropDown when selecting a relative page to jump to, without having to instancite many jump widgets.

diff -r 856f4698a0a8 -r 62753288be74 svghmi/hmi_tree.ysl2
--- a/svghmi/hmi_tree.ysl2	Fri Mar 26 14:46:38 2021 +0100
+++ b/svghmi/hmi_tree.ysl2	Fri Mar 26 14:53:35 2021 +0100
@@ -22,7 +22,14 @@
     | var hmitree_types = [
 
     foreach "$indexed_hmitree/*" 
-    |     /* «@index»  «@hmipath» */ "«substring(local-name(), 5)»"`if "position()!=last()" > ,`
+    |     /* «@index» */ "«substring(local-name(), 5)»"`if "position()!=last()" > ,`
+
+    | ];
+    |
+    | var hmitree_paths = [
+
+    foreach "$indexed_hmitree/*" 
+    |     /* «@index» */ "«@hmipath»"`if "position()!=last()" > ,`
 
     | ];
     |