51

(12 replies, posted in Code)

from:

<definition width="130" hotspot_y="76" version="0.80" type="element" hotspot_x="65" height="170" link_type="master">
    <uuid uuid="{3429b359-dffd-4205-b4f5-5122286dfabc}"/>
    <names>
        <name lang="nl">test_element_norm</name>
    </names>
    <kindInformations>
        <kindInformation name="type" show="1">coil</kindInformation>
    </kindInformations>
    <elementInformations>
        <elementInformation name="manufacturer_reference" show="1"></elementInformation>
        <elementInformation name="description" show="1"></elementInformation>
        <elementInformation name="supplier" show="1"></elementInformation>
        <elementInformation name="machine_manufacturer_reference" show="1"></elementInformation>
        <elementInformation name="comment" show="1"></elementInformation>
        <elementInformation name="plant" show="1"></elementInformation>
        <elementInformation name="quantity" show="1"></elementInformation>
        <elementInformation name="unity" show="1"></elementInformation>
        <elementInformation name="manufacturer" show="1"></elementInformation>
        <elementInformation name="designation" show="1"></elementInformation>
        <elementInformation name="label" show="1">etiket</elementInformation>
    </elementInformations>
    <informations>info auteur</informations>
    <description>
        <line antialias="false" x2="30" x1="-40" style="line-style:normal;line-weight:normal;filling:none;color:black" end2="none" y1="-40" y2="-40" end1="none" length2="1.5" length1="1.5"/>
        <rect antialias="false" width="70" style="line-style:normal;line-weight:normal;filling:none;color:black" rx="0" y="-30" x="-40" height="30" ry="0"/>
        <circle antialias="false" diameter="40" style="line-style:normal;line-weight:normal;filling:none;color:black" y="-10" x="-60"/>
        <polygon y3="50" antialias="false" x2="60" x1="0" style="line-style:normal;line-weight:normal;filling:none;color:black" y6="10" x5="0" y5="10" y1="10" y2="10" y4="10" x3="60" x4="0" x6="0"/>
        <polygon y3="60" antialias="false" x2="30" x1="-25" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="50" y2="50" y4="60" closed="false" x3="60" x4="60"/>
        <text color="#000000" rotation="0" y="85" x="-45" text="T" font="Sans Serif,9,-1,5,50,0,0,0,0,0"/>
        <arc antialias="true" width="65" start="90" angle="90" style="line-style:normal;line-weight:normal;filling:none;color:black" y="75" x="-15" height="30"/>
        <dynamic_text z="8" rotation="0" Valignment="AlignTop" text_from="ElementInfo" uuid="{655686e9-d968-4a16-91a1-80252e014460}" y="-80" frame="false" x="-20" Halignment="AlignLeft" font="Sans Serif,9,-1,5,0,0,0,0,0,0,normal" text_width="-1">
            <text>etiket</text>
            <info_name>label</info_name>
        </dynamic_text>
        <terminal uuid="{9ac8e678-fd84-4a77-b3bd-3d8e1dc426fe}" orientation="n" y="-70" name="term" x="-55"/>
    </description>
</definition>

convertelement:

<?xml version="1.0" encoding="UTF-8"?>
<definition height="170" hotspot_x="65" hotspot_y="76" link_type="master" type="element" version="0.80" width="130">
    <uuid uuid="{3429b359-dffd-4205-b4f5-5122286dfabc}"/>
    <names>
        <name lang="nl">test_element_norm</name>
    </names>
    <kindInformations>
        <kindInformation name="type" show="1">coil</kindInformation>
    </kindInformations>
    <elementInformations>
        <elementInformation name="comment" show="1"></elementInformation>
        <elementInformation name="description" show="1"></elementInformation>
        <elementInformation name="designation" show="1"></elementInformation>
        <elementInformation name="label" show="1">etiket</elementInformation>
        <elementInformation name="machine_manufacturer_reference" show="1"></elementInformation>
        <elementInformation name="manufacturer" show="1"></elementInformation>
        <elementInformation name="manufacturer_reference" show="1"></elementInformation>
        <elementInformation name="plant" show="1"></elementInformation>
        <elementInformation name="quantity" show="1"></elementInformation>
        <elementInformation name="supplier" show="1"></elementInformation>
        <elementInformation name="unity" show="1"></elementInformation>
    </elementInformations>
    <informations>info auteur</informations>
    <description>
        <!--line-->
        <line antialias="false" end1="none" end2="none" length1="1.5" length2="1.5" style="line-style:normal;line-weight:normal;filling:none;color:black" x1="-40" x2="30" y1="-40" y2="-40"/>
        <!--rect-->
        <rect antialias="false" height="30" style="line-style:normal;line-weight:normal;filling:none;color:black" width="70" x="-40" y="-30"/>
        <!--circle-->
        <circle antialias="false" diameter="40" style="line-style:normal;line-weight:normal;filling:none;color:black" x="-60" y="-10"/>
        <!--ellipse-->
        <!--polygon-->
        <polygon antialias="false" closed="" style="line-style:normal;line-weight:normal;filling:none;color:black" x1="0" x2="60" x3="60" x4="0" x5="0" x6="0" y1="10" y2="10" y3="50" y4="10" y5="10" y6="10"/>
        <polygon antialias="false" closed="false" style="line-style:normal;line-weight:normal;filling:none;color:black" x1="-25" x2="30" x3="60" x4="60" y1="50" y2="50" y3="60" y4="60"/>
        <!--arc-->
        <arc angle="90" antialias="true" height="30" start="90" style="line-style:normal;line-weight:normal;filling:none;color:black" width="65" x="-15" y="75"/>
        <!--dynamic_text-->
        <dynamic_text Halignment="AlignLeft" Valignment="AlignTop" font="Sans Serif,9,-1,5,0,0,0,0,0,0,normal" frame="false" info_name="label" rotation="0" text="etiket" text_from="ElementInfo" text_width="-1" uuid="{655686e9-d968-4a16-91a1-80252e014460}" x="-20" y="-80" z="8"/>
        <!--terminal-->
        <terminal nameHidden="" number="0" orientation="n" terminalname="term" x="-55" y="-70"/>
    </description>
</definition>

ok it still contains errors, but i'm making progress.

<terminal uuid="{9ac8e678-fd84-4a77-b3bd-3d8e1dc426fe}" orientation="n" y="-70" name="term" x="-55"/>
<terminal nameHidden="" number="0" orientation="n" terminalname="term" x="-55" y="-70"/>

52

(12 replies, posted in Code)

test file

<?xml version="1.0" encoding="UTF-8"?>
<definition>
    <uuid uuid="{00000000-0000-0000-0000-000000000000}"/>
    <names/>
    <kindInformations/>
    <elementInformations/>
    <informations></informations>
    <description>
        <!--line-->
        <!--rect-->
        <!--circle-->
        <!--ellipse-->
        <!--polygon-->
        <!--arc-->
        <!--dynamic_text-->
        <!--terminal-->
    </description>
</definition>

53

(12 replies, posted in Code)

QT had me good with my *#$%*
I tried to create and Element Class, lots of error message
now it appears that Element already exists for QT:
https://doc.qt.io/qt-5/qpainterpath-element.html
I will have to rename Element class.

But I seem to be making progress.

Load Element      => ok
Convert Element   => ToDo
Element           => rename
Safe Element      => Wip

54

(12 replies, posted in Code)

update:
QElectroTech_Element_Updater found an error in the XML of an Element
https://git.tuxfamily.org/qet/qet.git/c … 707e4d7a68
bug from  2010-05-20

it uses QXmlStreamReader

QXmlStreamReader is a well-formed XML 1.0 parser that does not include external parsed entities. As long as no error occurs, the application code can thus be assured that the data provided by the stream reader satisfies the W3C's criteria for well-formed XML. For example, you can be certain that all tags are indeed nested and closed properly, that references to internal entities have been replaced with the correct replacement text, and that attributes have been normalized or added according to the internal subset of the DTD.

the program is still far from its original goal but starting to yield.

elements count : 7156
"nr of version 0.3 :" 406
"nr of version 0.4 :" 684
"nr of version 0.5 :" 2145
"nr of version 0.22 :" 1
"nr of version 0.51 :" 574
"nr of version 0.60 :" 103
"nr of version 0.61 :" 1
"nr of version 0.70 :" 1253
"nr of version 0.80 :" 1989

55

(12 replies, posted in Code)

this topic will report progress of QElectroTech Element Updater
started at the request of plc-user

De-Backer wrote:
Joshua wrote:
De-Backer wrote:

if this isn't too hard I can do this, Joshua/plc-user
this is an opportunity to learn the file format.

Of course you can, they will be very helpful in future to convert old element to new svg element.

I have started the work:
https://github.com/De-Backer/QElectroTe … nt_Updater
this will not be done in 123.

here i show the usefulness of exception
the error is an uppercase X

Add mainwindow loading

note: error at line 134 hotspot_X => hotspot_x
to demonstrate the excepts
eg debug:
_____________________________________________________________
!! exception !! 83 QElectroTech_Element_Updater/src/element/loadelement.cpp
value:  "hotspot_X"
hotspot_x:
unknown value
!! exception !! 143 QElectroTech_Element_Updater/src/gui/mainwindow.cpp
_____________________________________________________

https://github.com/De-Backer/QElectroTe … 44df993df2

more info will follow..

56

(9 replies, posted in Elements)

test on win7

https://youtu.be/BMtzRXWzSPU

note:
vous pouvez toujours consulter le fichier journal jusqu'à 7 jours après la date

57

(9 replies, posted in Elements)

votre système d'exploitation est Windows ou Linux ou est-ce Mac?
et où avez-vous le 0.8dev?
nommer les terminaux ne provient que de ce comité:
https://git.tuxfamily.org/qet/qet.git/c … ff3ca66b14

Et désolé pour mon pauvre français.

first see this:
https://qelectrotech.org/forum/viewtopi … 713#p13713

run ones

# clone your repo
git clone git@github.com:lowVoltage/qelectrotech-doc.git qelectrotech_doc
cd qelectrotech_doc
# add qelectrotech repo
git remote add upstream https://github.com/qelectrotech/qelectrotech-doc.git

run always

# fetch qelectrotech repo
git fetch upstream
# checkout to your master
git checkout master
# reset your master to == qelectrotech repo master
git reset --hard upstream/master 
# push to your repo
git push origin master --force

done

we are present, the progression with the elements and the connections,
the extras like "An applicable configuration file" will come later.

how good is your french?

laurent aka scorpio810 is your man.
unfortunately his internet connection is defective.
https://qelectrotech.org/forum/viewtopi … 995#p13995

but have some patience and the problems will disappear next year.

61

(34 replies, posted in Elements)

this reminds me of example 2
https://developers.librepcb.org/library_structure_examples.png
of course we should not compare QET with KiCAD or other
I know too little about the complete operation of an installation, the schematics
-should this work for a home installation
-should this work for an industry
-should this work for a car
-should this work for a boat
-should this work for an airplane
=>wire harness
=>wire lenghts
buses, cables
we would like the complete package, or just and share and that very good?

62

(90 replies, posted in Code)

KDE frameworks QT6
KF5 => KF6
https://ervin.ipsquad.net/blog/2020/07/ … y-edition/
https://phabricator.kde.org/project/board/310/

63

(317 replies, posted in News)

scorpio810 wrote:

La fibre aura durée 5 jours ... depuis vendredi dernier plus de réseau .... Orange ne peux pas intervenir sur les équipements SFR ...

Not good news, what is the prediction / consequence for QET?

64

(34 replies, posted in Elements)

Joshua wrote:
De-Backer wrote:

if this isn't too hard I can do this, Joshua/plc-user
this is an opportunity to learn the file format.

Of course you can, they will be very helpful in future to convert old element to new svg element.

I have started the work:
https://github.com/De-Backer/QElectroTe … nt_Updater
this will not be done in 123.

Can you find ".log files" in the "conf/" folder? If so can you send them to this forum? like this file.
see
https://qelectrotech.org/forum/viewtopi … 879#p13879

66

(34 replies, posted in Elements)

plc-user wrote:

Hello Joshua,

....

So in my opinion we should have two main-lines for (electrical) elements:
1 - Elements for circuit-diagrams which show the connections and terminals of an element.
2 - Graphics for Front-Views to use for the layout-plan of a switching-cabinet without terminals.

i also think there should be 2 elements Graphics and circuit
the best thing would be that they linked
and that they are not far from each other in the collection to say side by side

circuit    Graphics
    |        
|--/        Graphic
    |       of button

edit--
this is still too limited
because you can have multiple Graphics
must be thought about

maybe if you click on an element in the circuit that you will be prompted to place a graphic
edit--

plc-user wrote:

Do you see the chance to have a small tool to walk through the collection-tree
and open all elements and save them again with the actual xml-tags?

if this isn't too hard I can do this, Joshua/plc-user
this is an opportunity to learn the file format.

67

(317 replies, posted in News)

thanks laurent, i will try this too but on make -j15 and not make -j45
my PC is not a workstation.

68

(10 replies, posted in Code)

I'm working on it now, thanks for looking further.
if I also get built,then I starts working on the packing.

well i am going to sleep, i will continue working on tomorrow.

FreeCAD source compilation workflow on Cmake:
https://wiki.freecadweb.org/images/e/ed/FreeCAD_source_compilation_workflow.svg

it's about the same for qelectrotech

69

(10 replies, posted in Code)

thanks i'll get on it tonight
for the error, weird this is from another cmake file coming up through the qet cmake

70

(10 replies, posted in Code)

scorpio810 wrote:

@De-Backer: try this https://qelectrotech.org/forum/viewtopic.php?id=1525

i wanted you to know linux version, so i know if it will work
in have suse tw you have debian ...

and see
https://youtu.be/2KZhs8SmVOk

.

71

(10 replies, posted in Code)

it seems that many elements in the git repo can be built at compile time, so they shouldn't be in the git repo
for example

- .qrc files
- help docs
- .qm files

of course this was not done with bad will, but a result of qmake, the technology of the time, and so on.
I'll try with Cmake just to save the data and get everything in the build

if I succeed this will be a thing of the past (compiled data):
https://git.tuxfamily.org/qet/qet.git/l … /qet_be.qm
and this of course not (data):
https://git.tuxfamily.org/qet/qet.git/l … /qet_be.ts

we then go to a repo with the minimum of files that contains everything anyway.
minimum of files:
- this is easier for the git log
that contains everything:
- what is missing after git clone can be obtained with Cmake.

this will be as difficult as getting Cmake to work on QET, so 2021?

@scorpio810 i would like to start building QET for linux what are you using?
I will then create a Virtualbox, and test it.

the intention is that you have less work with Cmake. (that is my intention)

72

(317 replies, posted in News)

let me be clear, i'm not a fan of Cmake, it's new and difficult for me, but Cmake would give you a clear answer

eg

CMake Error at CMakeLists.txt:43 (include):
  include could not find load file:

    cmake/fetch_kdeaddon.cmake

73

(317 replies, posted in News)

scorpio810 wrote:

Maybe try on Linux like this:
https://qelectrotech.org/forum/viewtopi … 880#p10880

on linux it is no problem
but i wanted to see if it would work on windows without too many changes.
Building KF5 works in linux because it is a KDE version
but on windows, a disaster.
you essentially end up building a complete KDE and Python and Cmake and ReuseTool and Sphinx and qt and .... => it takes longer to build QET from code than to install linux on virtualbox and build it there!

74

(10 replies, posted in Code)

scorpio810 wrote:

Maybe seems useful to integrate qt translations  without import manually all Qt translations in packages.

I'll have a look if this can be done in the .qrc file for QET, because now it takes a lot of code to get this to work at runtime.

the only advantage would be that afterwards one could modify the .qm files, but who does this?
you simply download the latest version of QET

75

(317 replies, posted in News)

i am trying with windows,
git clone  .....   why is it so slow

Could NOT find ECM

ECM (required version >= 5.70.0), Extra CMake Modules., <https://commits.kde.org/extra-cmake-modules>
CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/FeatureSummary.cmake:457 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake

ok, so

 git clone https://github.com/KDE/extra-cmake-modules.git
mkdir build && cd build && cmake ..
-- Could NOT find Sphinx (missing: Sphinx_BUILD_EXECUTABLE) (Required is at least version "1.2")
-- Could NOT find ReuseTool (missing: REUSETOOL_EXECUTABLE) 
-- Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) 

ok, later Cmake will ask me to use linux instead of windows.