Aleksandr wrote:Only question. How do uuid?
It's not very serious, the program will generate provisionally for each launch Qet.
For one or two elements just edit these elements and save.
If you have a lot of element for add this XML attribute, you need this bash script.
Get this bash script in your Qet home element directory:
#!/bin/bash
# This script add attribut "uuid" in all .elmt files.
#
# need packages : sed, uuid-runtime, find
find . -type f -name "*.elmt" -exec sh -c 'UUID="$(uuidgen | awk '"'"'{print toupper($0)}'"'"')" ; sed -i '"'"'s#\(\).*\(<names>\)#\1'"'"'"<uuid uuid=\"{$UUID}\"/>"'"'"'\2#'"'"' "{}"' \;
# Go to Qet user element folder.
cd ~/.qet/elements/
# Download script.
wget https://download.qelectrotech.org/qet/scripts/elmt_gen_uuid.sh
# Make it executable.
chmod +x elmt_gen_uuid.sh
# Run script
./elmt_gen_uuid.sh
FYI, if element contain already an UUID, UUID is erased by new, yes this a minimal script that i make to add this XML attribute for official collection (2600 elements) when we add this feature.
BTW, you can improve it, and send me.
For MS Windows platform, you need Cygwin program or wait Win 10 + bash release in June.
http://www.theverge.com/2016/3/30/11331 … buntu-bash
"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."