201

(21 replies, posted in Code)

Example for coil element  english translation to chinese is for "Coil with on delay" -> "带导通延迟的线圈"
you need to add this line


<name lang="zh">工作节拍线圈</name>

<definition type="element" link_type="master" hotspot_x="20" hotspot_y="29" version="0.5" width="40" height="60">
<uuid uuid="{14D69713-ADDE-4ACD-8654-50E3E60B61F7}"/><names>
        <name lang="be">Spoel met inschakel vertraging</name>
        <name lang="en">Coil with on delay</name>
        <name lang="hu">Tekercs be késleltetéssel</name>
        <name lang="fr">Bobine tempo travail</name>
        <name lang="ru">Обмотка</name>
        <name lang="es">Bobina de trabajo temporizado</name>
        <name lang="nl">mechanisch met opkomvertraging</name>
        <name lang="cs">Relé se zpožděným zapnutím</name>
        <name lang="de">Relais ansprechverzögert</name>
        <name lang="it">Bobina di relè ritardato</name>
        <name lang="el">Πηνίο χρονικού, καθυστέρηση ενεργοποίησης</name>
        <name lang="ar">ملف مُؤقت مع تاخير الإستجابة</name>
        <name lang="pl">Cewka przekaźnika działająca ze zwłoką przy wzbudzeniu</name>
        <name lang="zh">带导通延迟的线圈</name>
    </names>
    <kindInformations>
        <kindInformation name="type" show="1">coil</kindInformation>
    </kindInformations>
    <informations>Author: The QElectroTech team
License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
    <description>
        <rect x="10" y="-8" antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" width="4" height="16"/>
        <rect x="-14" y="-8" antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" width="28" height="16"/>
        <line x1="14" end1="none" antialias="true" x2="10" length1="1.5" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-8" y2="8"/>
        <line x1="10" end1="none" antialias="true" x2="14" length1="1.5" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-8" y2="8"/>
        <line x1="0" end1="none" antialias="false" x2="0" length1="1.5" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" y2="-8"/>
        <input x="2" tagg="none" y="19.3333" size="4" rotate="true" text="A2"/>
        <input x="2" tagg="none" y="-16.6667" size="4" rotate="true" text="A1"/>
        <line x1="0" end1="none" antialias="false" x2="0" length1="1.5" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="8" y2="20"/>
        <input x="25" tagg="label" y="3.3333" size="9" text="_"/>
        <terminal x="0" y="-21" orientation="n"/>
        <terminal x="0" y="21" orientation="s"/>
    </description>
</definition>

202

(21 replies, posted in Code)

https://www.onlinedoctranslator.com/app … rocess-pdf

You can also be sued by the Eplan company if you design this converter....

204

(21 replies, posted in Code)

It's a huge job, but to be faster with qet_translate, if you work on this remember to please upload your work to the github https://github.com/qelectrotech/qelectrotech-elements by a Pull request.
If you don't know Github please send me a archive of your elements and qet_directory and I try to merge it to github repository.

205

(21 replies, posted in Code)

In elements directory
in each folder you have a qet_directory file open it with a good text editor:
its purpose is to contain the translation of the  directory name  according to the language chosen by the user

example

qet/elements/10_electric/10_allpole$ cat qet_directory
<qet-directory>
    <names>
        <name lang="pl">Schematy wieloliniowe</name>
        <name lang="pt_br">Multifilar</name>
        <name lang="cs">Vícežilový</name>
        <name lang="it">Multifilare</name>
        <name lang="el">Πολυγραμμικό</name>
        <name lang="fr">Multifilaire</name>
        <name lang="de">Allpolig</name>
        <name lang="en">All-pole</name>
        <name lang="nl">Veel polig</name>
        <name lang="ru">Многополюсные</name>
        <name lang="da">Flere ledere</name>
        <name lang="es">Multifilar</name>
        <name lang="ja">複線</name>
        <name lang="hu">Többvonalas szimbólumok</name>
    </names>
</qet-directory>

For elmt element is the same, example with a coil it contain translation tag and after the XML for draw this element and some tag use by QET program

qet/elements/10_electric/10_allpole/310_relays_contactors_contacts/01_coils$ cat bobine_tempo_travail.elmt
<definition type="element" link_type="master" hotspot_x="20" hotspot_y="29" version="0.5" width="40" height="60">
<uuid uuid="{14D69713-ADDE-4ACD-8654-50E3E60B61F7}"/><names>
        <name lang="be">Spoel met inschakel vertraging</name>
        <name lang="en">Coil with on delay</name>
        <name lang="hu">Tekercs be késleltetéssel</name>
        <name lang="fr">Bobine tempo travail</name>
        <name lang="ru">Обмотка</name>
        <name lang="es">Bobina de trabajo temporizado</name>
        <name lang="nl">mechanisch met opkomvertraging</name>
        <name lang="cs">Relé se zpožděným zapnutím</name>
        <name lang="de">Relais ansprechverzögert</name>
        <name lang="it">Bobina di relè ritardato</name>
        <name lang="el">Πηνίο χρονικού, καθυστέρηση ενεργοποίησης</name>
        <name lang="ar">ملف مُؤقت مع تاخير الإستجابة</name>
        <name lang="pl">Cewka przekaźnika działająca ze zwłoką przy wzbudzeniu</name>
    </names>
    <kindInformations>
        <kindInformation name="type" show="1">coil</kindInformation>
    </kindInformations>
    <informations>Author: The QElectroTech team
License: see http://qelectrotech.org/wiki/doc/elements_license</informations>
    <description>
        <rect x="10" y="-8" antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" width="4" height="16"/>
        <rect x="-14" y="-8" antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" width="28" height="16"/>
        <line x1="14" end1="none" antialias="true" x2="10" length1="1.5" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-8" y2="8"/>
        <line x1="10" end1="none" antialias="true" x2="14" length1="1.5" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-8" y2="8"/>
        <line x1="0" end1="none" antialias="false" x2="0" length1="1.5" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" y2="-8"/>
        <input x="2" tagg="none" y="19.3333" size="4" rotate="true" text="A2"/>
        <input x="2" tagg="none" y="-16.6667" size="4" rotate="true" text="A1"/>
        <line x1="0" end1="none" antialias="false" x2="0" length1="1.5" end2="none" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="8" y2="20"/>
        <input x="25" tagg="label" y="3.3333" size="9" text="_"/>
        <terminal x="0" y="-21" orientation="n"/>
        <terminal x="0" y="21" orientation="s"/>
    </description>
</definition>

BTW, you have also other utils, Linux script to help translator here
https://download.qelectrotech.org/qet/scripts/


[07:28:59] laurent@debian:~/Qet-svn/git/qelectrotech-elements$ ./count_elements.sh 
8336 elements dans 1109 categories (soit 9445 fichiers)

https://download.qelectrotech.org/qet/s … lements.sh
Open it and change the lang country, I changer en to fr for FRANCE, make it executable on linux and run it in terminal

#!/bin/bash

lang=${1:-fr}

# detecte les elements sans traduction anglaise
find . -type f -a \( -name "*.elmt" -o -name "qet_directory" \) -print0 | xargs -0 grep -L "<name lang=\"$lang\""
[07:36:19] laurent@debian:~/Qet-svn/git/qelectrotech-elements$ ./detect_non_translated_elements.sh

It's extract a list of file that not contain translation fr tag.

Example here:


[07:35:20] laurent@debian:~/Qet-svn/git/qelectrotech-elements$ cat ./60_energy/21_refrigeration/Climatizacion/clima-vrv/te-vrv.elmt

<definition hotspot_x="24" hotspot_y="14" width="50" type="element" version="0.5" height="50" link_type="simple">
<uuid uuid="{2CA8558B-6381-4658-82A3-1B870D31FA5F}"/><names>
        <name lang="es">Te tuberias VRV</name>
    </names>
    <informations></informations>
    <description>
        <rect style="line-style:normal;line-weight:normal;filling:none;color:black" y="7.59375" width="2.24" antialias="false" height="5.04957" x="17.28"/>
        <rect style="line-style:normal;line-weight:normal;filling:none;color:black" y="-10.6299" width="5.88" antialias="false" height="2.10692" x="-19.72"/>
        <rect style="line-style:normal;line-weight:normal;filling:none;color:black" y="8.43534" width="12.8" antialias="false" height="3.36638" x="-16.8"/>
        <rect style="line-style:normal;line-weight:normal;filling:none;color:black" y="-11.1566" width="1.68" antialias="false" height="3.16038" x="2.12"/>
        <polygon x14="-4" y7="26.1088" x4="1.32" y14="7.59375" y3="11.8017" y16="14.3265" antialias="false" x3="17.28" y4="11.8017" x2="17.28" y12="15.1681" x1="-4" style="line-style:normal;line-weight:normal;filling:none;color:black" x16="1.32" x6="8.768" x7="8.768" y5="14.3265" x11="1.32" x5="7.704" y10="16.8513" closed="false" y8="26.1088" x15="1.32" y15="7.59375" x9="6.64" y11="14.3265" y2="8.43534" x8="6.64" x10="6.108" x13="-4" y6="16.0097" y1="8.43534" y13="12.6433" y9="17.6929" x12="1.32"/>
        <rect style="line-style:normal;line-weight:normal;filling:none;color:black" y="7.59375" width="2.8" antialias="false" height="5.04957" x="-19.6"/>
        <polygon x14="-13.84" y7="0.431397" x4="-9.85" y14="-11.1566" y3="-8.52298" y16="-6.94279" antialias="false" x3="2.12" y4="-8.52298" x2="2.12" y12="-6.41606" x1="-13.84" style="line-style:normal;line-weight:normal;filling:none;color:black" x16="-9.85" x6="-4.264" x7="-4.264" y5="-6.94279" x11="-9.85" x5="-5.062" y10="-5.3626" closed="false" y8="0.431397" x15="-9.85" y15="-11.1566" x9="-5.86" y11="-6.94279" y2="-10.6299" x8="-5.86" x10="-6.259" x13="-13.84" y6="-5.88933" y1="-10.6299" y13="-7.99625" y9="-4.83586" x12="-9.85"/>
        <rect style="line-style:normal;line-weight:normal;filling:none;color:black" y="26.1088" width="4.2" antialias="false" height="3.36638" x="5.6"/>
        <rect style="line-style:normal;line-weight:normal;filling:none;color:black" y="-11.1566" width="1.68" antialias="false" height="3.16038" x="-21.4"/>
        <rect style="line-style:normal;line-weight:normal;filling:none;color:black" y="0.431397" width="2.52" antialias="false" height="2.10692" x="-6.28"/>
        <input rotate="true" text="vrv" tagg="label" y="25.5" x="-13" size="3"/>
        <terminal y="30.3168" x="7.7" orientation="s"/>
        <terminal y="-10" x="-20" orientation="w"/>
        <terminal y="10.1185" x="-19.6" orientation="w"/>
        <terminal y="10.1185" x="20.08" orientation="e"/>
        <terminal y="3" x="-5" orientation="s"/>
        <terminal y="-10" x="4" orientation="e"/>
    </description>
</definition>

206

(21 replies, posted in Code)

Hello,

see this topic:
https://qelectrotech.org/forum/viewtopi … 027#p16027

Download:
https://download.qelectrotech.org/qet/b … translate/

https://forum-photovoltaique.fr/viewtop … mp;t=67358

Pour info, J'ai généré un PDF de ces  captures images postés de son projet "panneaux solaires" QET, j'ai mis le PDF ici:

img2pdf *.png -o installation_pv.pdf

https://download.qelectrotech.org/qet/s … ion_pv.pdf

208

(96 replies, posted in Scripts)

Hallo Plc-user,


Re edit
https://github.com/qelectrotech/qelectr … d.cpp#L250

//the origin transformation point of PartDynamicTextField is the top left corner, no matter the font size
//The origin transformation point of PartTextField is the middle of left edge, and so by definition, change with the size of the font
//We need to use a QTransform to find the pos of this text from the saved pos of text item


maybe see:
https://github.com/qelectrotech/qelectr … icpart.cpp
https://github.com/qelectrotech/qelectr … tfield.cpp
https://github.com/qelectrotech/qelectr … rttext.cpp
Doxygen:
https://download.qelectrotech.org/qet/doxygen/html/

Edit:
https://github.com/qelectrotech/qelectr … ements_XML
https://qelectrotech.org/wiki_new/en/do … ements_0.3
https://qelectrotech.org/wiki_new/es/do … ents_0.2?s[]=text

Best regards,
Laurent

209

(96 replies, posted in Scripts)

Old Tuxfamily git commit URL can be easy found on github by sha commit:
example:
https://git.tuxfamily.org/qet/qet.git/c … 21a1fd40a6
https://github.com/qelectrotech/qelectr … 21a1fd40a6

https://github.com/qelectrotech/qelectr … y.cpp#L603

210

(96 replies, posted in Scripts)

Hallo Plc-user,

wow it's very great news, thank you so much again Plc-user for your works. \o/

See history of HTM color in this topic:
https://qelectrotech.org/forum/viewtopic.php?id=1245
And the first patch
https://qelectrotech.org/forum/viewtopi … 61&p=3

Maybe a possible changes in this PR ..?
https://github.com/qelectrotech/qelectr … 88a0721f86

Best regards,
Laurent

Voir aussi ici des schémas de tous types fait avec QET:
https://download.qelectrotech.org/qet/schemas_pdf/

Bonjour Pierre,

voir ce projet
https://qelectrotech.org/forum/viewtopi … 553#p18553

Cordialement,
Laurent

The time of compilation is 1 min 6 sec

______________________________________________________________
Copy Qt libraries and private frameworks:
Processing Mac deployment tool...

______________________________________________________________
Copy file missing:
Copying add elements in the bundle...
Copying titleblocks in the bundle...
Copying translations in the bundle... 
Copying examples in the bundle... 
qelectrotech.app: replacing existing signature

______________________________________________________________
Create zip tarball:
Would you like to upload for Notarize packages qelectrotech-0.100.0-r7997-arm64.zip, n/Y?.
y

______________________________________________________________
Notarize zip tarball:
Conducting pre-submission checks for qelectrotech-0.100.0-r7997-arm64.zip and initiating connection to the Apple notary service...
Submission ID received
  id: xxxxxxxxxxx
Upload progress: 100,00 % (51,6 MB of 51,6 MB)   
Successfully uploaded file
  id: xxxxxx
  path: /Users/laurent/qet_git/build-aux/mac-osx/qelectrotech-0.100.0-r7997-arm64.zip
Waiting for processing to complete.
Current status: Accepted...........................
Processing complete
  id: xxxxxxxxxx
  status: Accepted

______________________________________________________________
The process of creating deployable application zip is done.
The disque image is in the folder 'build-aux/mac-osx'.
Cleaning up... 
Would you like to  staple the app MacOS packages qelectrotech-0.100.0-r7997, n/Y?.
y
Processing: /Users/laurent/qet_git/qelectrotech.app
Properties are {
    NSURLIsDirectoryKey = 1;
    NSURLIsPackageKey = 1;
    NSURLIsSymbolicLinkKey = 0;
    NSURLLocalizedTypeDescriptionKey = Application;
    NSURLTypeIdentifierKey = "com.apple.application-bundle";
    "_NSURLIsApplicationKey" = 1;
}
Props are {
    cdhash = {length = 20, bytes = 0xe65046f19f371da8a7318cf3a3318f2825d10bdb};
    digestAlgorithm = 2;
    flags = 65536;
    secureTimestamp = "2023-11-20 11:01:24 +0000";
    signingId = "org.qelectrotech";
    teamId = xxxxxxxxx;
}
JSON Data is {
    records =     (
                {
            recordName = "2/2/e65046f19f371da8a7318cf3a3318f2825d10bdb";
        }
    );
}
 Headers: {
    "Content-Type" = "application/json";
}
Domain is api.apple-cloudkit.com
Response is <NSHTTPURLResponse: xxxxxxxxxx> { URL: https://api.apple-cloudkit.com/database/1/com.apple.gk.ticket-delivery/production/public/records/lookup } { Status Code: 200, Headers {
    Connection =     (
        "keep-alive"
    );
    "Content-Encoding" =     (
        gzip
    );
    "Content-Type" =     (
        "application/json; charset=UTF-8"
    );
    Date =     (
        "Mon, 20 Nov 2023 11:16:01 GMT"
    );
    Server =     (
        "AppleHttpServer/78689afb4479"
    );
    "Strict-Transport-Security" =     (
        "max-age=31536000; includeSubDomains;"
    );
    "Transfer-Encoding" =     (
        Identity
    );
    Via =     (
        "xxxxxxx"
    );
    "X-Apple-CloudKit-Version" =     (
        "1.0"
    );
    "X-Apple-Edge-Response-Time" =     (
        104
    );
    "X-Apple-Request-UUID" =     (
        "xxxxxxxxxxxxx"
    );
    "X-Responding-Instance" =     (
        "xxxxxxxxxx"
    );
    "access-control-expose-headers" =     (
        "X-Apple-Request-UUID,X-Responding-Instance,Via"
    );
    "x-apple-user-partition" =     (
        63
    );
} }
Size of data is 4641
JSON Response is: {
    records =     (
                {
            created =             {
                deviceID = 2;
                timestamp = 1700478336688;
                userRecordName = "xxxxxxxxxxx";
            };
            deleted = 0;
            fields =             {
                signedTicket =                 {
                    type = BYTES;
                    value = "couic";
                };
            };
            modified =             {
                deviceID = 2;
                timestamp = 1700478336688;
                userRecordName = "xxxxxxxxxx";
            };
            pluginFields =             {
            };
            recordChangeTag = lp6swa0a;
            recordName = "xxxxx";
            recordType = DeveloperIDTicket;
        }
    );
}
Downloaded ticket has been stored at file:///var/folders/d6/zn3xx4251gl2v6nf_mjrr4gr0000gn/T/5928f18d-2bc0-449f-b05e-67ed6dcaf422.ticket.
Processing: /Users/laurent/qet_git/qelectrotech.app
Properties are {
    NSURLIsDirectoryKey = 1;
    NSURLIsPackageKey = 1;
    NSURLIsSymbolicLinkKey = 0;
    NSURLLocalizedTypeDescriptionKey = Application;
    NSURLTypeIdentifierKey = "com.apple.application-bundle";
    "_NSURLIsApplicationKey" = 1;
}
Props are {
    cdhash = {length = 20, bytes = 0xe65046f19f371da8a7318cf3a3318f2825d10bdb};
    digestAlgorithm = 2;
    flags = 65536;
    secureTimestamp = "2023-11-20 11:01:24 +0000";
    signingId = "org.qelectrotech";
    teamId = xxxxxxxxxx;
}
The staple and validate action worked!

______________________________________________________________
Re Create zip tarball:
Cleaning up... 
Would you like to upload MacOS packages qelectrotech-0.100.0-r7997-arm64.zip, n/Y?.
y
Enter passphrase for key 'xxxxxxxxx': 
building file list ... 
8 files to consider
./
qelectrotech-0.100.0-r7997-arm64.zip
    54063083 100%   60.76MB/s    0:00:00 (xfer#1, to-check=0/8)

sent 54069972 bytes  received 48 bytes  5149525.71 bytes/sec
total size is 377888873  speedup is 6.99
laurent@Mac-mini-de-laurent ~ % 

One use my Debian repository:
https://qelectrotech.org/wiki_new/doc/install_debian


Or my AppImage:
https://download.qelectrotech.org/qet/b … e/0.100.0/

See instruction here:
https://appimage.github.io/QElectroTech/

Or my flatpack repository:
https://qelectrotech.org/forum/viewtopic.php?id=1582

Or maybe my Snap:
https://snapcraft.io/qelectrotech
https://snapcraft.io/docs/installing-snap-on-debian

Hallo,

one, what your linux distribution?

Bonjour,

plus d'informations ici:
https://qelectrotech.org/bugtracker/view.php?id=290

Chez moi si je télécharge avec safari ça fonctionne, pas avec GG chrome...

217

(21 replies, posted in Code)

https://qelectrotech.org/wiki_new/winstatic/winstatic

218

(1 replies, posted in Elements)

https://qelectrotech.org/forum/viewtopic.php?id=1633

219

(21 replies, posted in Code)

https://doc.qt.io/qtcreator/creator-debug-mode.html

https://doc.qt.io/Qt-5/windows-deployment.html
https://wiki.qt.io/Deploy_an_Application_on_Windows

221

(15 replies, posted in Videos howto)

222

(15 replies, posted in Videos howto)

223

(128 replies, posted in Bar Fourre-tout)

C'est de la réparation d'urgence réalisée sur de nombreuses années.
Si le moindre fil se débranche je ne serais pas capable de dire là où il doit être rebranché.
Là, on atteint les limites de mes compétences

Je te rejoint, je ne connais pas grand monde capable de dépanner cette merde ... en Urgence ...quand la vie de l’opérateur en dépend ...!
L'Apave doit rire jaune en visitant vos machines .. Gloups...

224

(128 replies, posted in Bar Fourre-tout)

Il faut mieux "parfois tout reconstruire from scratch" même si ça demande beaucoup de temps et d’ingénierie....et de convaincre le patron...

225

(128 replies, posted in Bar Fourre-tout)

Mon Dieu ... quelle horreur ... je n'ai jamais vu un chantier dans cet état .

franchement>> good luck , for the suite >>!