Hello Baruse and welcome,

I can't try out your code, I didn't know Freecad and I can't learn it at the moment (health problem), but the video is very very complete and this functionality is very much in demand, which should interest a lot of people !!!! nomicons/wink

Why do you use the Appache licence, if it's not indiscreet, I saw that it wasn't compatible with the QET licence?
Edit: I'm not skilled about legal matters too!!


Best regards,
Laurent


https://download.qelectrotech.org/qet/forum_img_2/frrecad_qet.png

52

(23 replies, posted in Code)

Re-searcher wrote:

Problem with uploading image.

Warning! The following errors must be corrected before your message can be posted:

    The server was unable to save the uploaded file. Please contact the forum administrator at scorpio@qelectrotech.org.


@plc-user

U weigert gewoon om iemand anders zijn code te gebruiken.
You simply refuse to use anyone else's code.
Vous refusez tout simplement d'utiliser le code de quelqu'un d'autre.



I 'am using the number 1 in my version
Warning! The following errors must be corrected before your message can be posted:

    The server was unable to save the uploaded file. Please contact the forum administrator at scorpio@qelectrotech.org.



U weigert gewoon om iemand anders zijn code te gebruiken.
You simply refuse to use anyone else's code.
Vous refusez tout simplement d'utiliser le code de quelqu'un d'autre.


test my code

I 'am using the number 1 in my version
The same size as the conductor and terminal

Hello Erik,

please try to stay calm, nomicons/wink

Your post is complicated for me to understand, as I'm not in the best of health at the moment. You write the same thing several times and you're constantly changing the subject!

Please dont mixing language, it isn't usefull!

As for the pîctures yes there was a problem on the forum yesterday, now some pictures didn't works, I think you'll have to add them again, sorry.

Best regards,
Laurent!

53

(39 replies, posted in Code)

@plc-user,
I was able to fix my error...I re-imported the attached files from the rsnapthot backup and on the server for SQL database with phpMyAdmin I re imported the old ‘punbb_attach_files’ table for recreate these ‘indexes!

But the last backup was made yesterday at 15h00, so please put again your script, many sorry.

54

(39 replies, posted in Code)

Kellermorph wrote:

Or did i Miss understand Something?

Same for me ....,
in first you talk avout QET 's code, now I see a python file, it 's me or then I need to return to bed for rest?

55

(16 replies, posted in Scripts)

Je viens enfin de comprendre ta demande, et je viens de constater que j'ai complètement répondu à coté de la plaque et racontai que des conneries ...!!!  nomicons/dizzy
Heureusement que je suis aller me reposer entre temps, krkrkr!!!  nomicons/whistling

Donc correction!

Quand tu ouvres ton projet si tu cliques sur ton tableau et que tu veux l’éditer, tu verras en bas ta requête en SQL suffit de l'enregister sur ce nouveau pc et tu pourras t'en servir pour d'autres projets.

Seules les requêtes SQL utilisées dans le projet sont embarquées dans le XML du projet, pas celles non utilisées, elle restent sur ton PC !

56

(39 replies, posted in Code)

Please put your code on Github if you can, for us it's more esay to see which code changes!

It is very easy if you have git, ssh, etc on your setup, but I remenber you use macOS, so no problem!

On Terminal get your github repository

git clone https://github.com/Kellermorph/QuerverweiseAppImage.git

Now work in QuerverweiseAppImage folder with your IDE as usual,
but if you want use terminal:


for adding files or files changed use

git add  file_name  
git diff

what files was added or removed.

- it is removed
+ it is added

For upload your changes to your online Github branch, it's very easy.

git push

For refreshing your local repository.

git pull

57

(16 replies, posted in Scripts)

Péryclès wrote:

PLC-User, je viens de comprendre une chose. Les requêtes SQL sont créés et sauvegardées dans ma machine et non dans le projet.

Est-ce qu'il y a un solution pour que les requêtes soient enregistrées directement dans le projet ?

Ou

Serait-il possible de faire pointer vers un autre dossier ?

Quel intérêt, j'en vois aucun !!!?


Par contre tu peux enregistrer et ouvrir un nombre importante de requêtes SQL dans ta machine a toi de leurs donner un nom compréhensif pour s'y retrouver!

Il est possible que tu ne puisses pas le faire sur la 0.9, je m'en rappelle plus...., dans ce cas fait comme nous et prends la 0.100.dev!

Déjà car de nombreux problemes graves et crahes et été depuis longtemps résolus dans la version 0.100 devel et pas rajoutés dans la 0.9... car de gros problemes de santé puis avec le temps ont oublie...

@plc-user, no need, I think just change default font settings hard coded in the code, look: generalconfigurationpage.*

59

(39 replies, posted in Code)

Problem is on server return -> 413 Request Entity Too Large

So put your code to github, and create tag after you can import big files under the tag, I don't know the limit size?

FYI, 2018-11-28

Nuri wrote:
scorpio810 wrote:

Attention donc avec certaines polices exotiques, certains y trouverons leur compte pour embellir leurs schémas, hein Nuri...

J'utilise la police Arimo car elle ne pose aucun problème sous Linux, est libre et a exactement la même métrique qu'Arial.

sudo apt install fonts-croscore

.

Quand j'utilise Arial directement sous Linux, je sais pas pourquoi mais QET me met tous les textes en Arial Bold nomicons/pinch .
J'ai pas trouvé d'où cela venait, aucune idée...

Par contre, quand je livre un fichier *.qet à ma clientèle sous Windows, je remplace "Arimo" par "Arial" avec XML Copy Editor.

Moi ce qui m'intéresse, c'est qu'on puisse utiliser une police qui ait le même rendu sous tous les OS pour éviter les décalages et les empiètements qui font dégueulasse et qui rendent certains textes illisibles.
L'idéal serait que QET embarque une petite panoplie de polices libres avec lui et puisse les déployer indépendamment de l'OS.
Disons une petites dizaines de polices, ca devrait largement suffire.

Et pour ceux qui ont besoin de plus, on leur permet de faire des surcharges en utilisant les polices installées dans l'OS en question, comme actuellement avec les options de police implémentées par Laurent.

https://qelectrotech.org/forum/viewtopi … 8828#p8828

61

(39 replies, posted in Code)

@Kellermorph: Please retry I forgot to Refresh hooks in attachments plugin....I'm tired!!!

OK, I'd misunderstood, so I'll give you my consent if anyone wants to do it. nomicons/wink

Hmm, I'll have to modify my packaging scripts... . we'll see when I'm in better health.. it can take some time for me to adapt them...!

In my opinion, the 3 fonts you mention should be included in the list, but you should also give users the choice of accessing other fonts if they so decide, but you should add a popup warning them that if they choose other fonts, these fonts may cause display problems on other machines with different OSes, what do you think?

Edit: I think it's feasible, if anyone's interested in coding it, why not?

on the font widget list of recommended default fonts add a checkbox with a popup /!\ to warn the user, then we check it on display the complete list of all the fonts installed on the machine.

When it comes to typing in unicode, yes, it's a workaround solution but only for us geeks, not for all our users.....

RE EDIT: We're not Apple or Gnome !!!!  .... should not prohibit and block but still leave the choice to those who want it!

I love KDE/ plasma for that!!, you can config and custom your desktop like you want!!

64

(39 replies, posted in Code)

@Kellermorph I just made a little hack and change "increase g_pun_attachment_upload_max_size" key to max 200MB instead of 20MB, you could share it here if you want. nomicons/wink

Off course think to compress your file before upload it here!

plc-user wrote:

I would see a maximum (!) of three fonts: Sans Serif (as default), Monospace and Serif.

Hallo plc-user, Achim, elevatormind!

Don't forget symbol fonts such as ‘fonts-linuxlibertine’, which are very useful for easily drawing certain special elements, such as for designing the alphanumeric LCD or LED screens found on many systems in industrial equipment, for example, motor frequency converters, as shown in this video:



On Debian like:

apt install fonts-linuxlibertine

66

(39 replies, posted in Code)

Kellermorph wrote:

Ok schon mal danke für die Hilfe. Aber als aller erstes muss ich mich erst noch mit dem kompilieren auseinander setzen und wie das alles geht. bis jetzt klappt es noch nicht so ganz. Ich werde mich die Tage, wenn ich Zeit haben sollte nochmal dran wagen.

Hallo Kellermorph!

Try elevatormind's Qt6-cmake branch, no need KF5/KF6 libs, so it is more easy for you for compil it, you just need Qt6 libs, and you don't need sqlite3.dev for this test.
SQlite3.dev dependency it's only for exporting project databse to an sqlite file.

BTW don't use qmake but Cmake! because elevatormind forgot to update .pro in Qt6-cmake branch!

BTW,if you want to use qmake use this patch to disable sqlite3 dependency in qelectrotech.pro to generate makefiles, if you have porblems for install Sqlite3.dependency, it's only optionnal....
And off  course add new path for news: *.cpp,*.h ; *.ui files which was added recently by elevatormind in this source code branch.

--- qelectrotech.pro
+++ qelectrotech.pro
@@ -61,7 +61,7 @@ DEFINES += QET_ALLOW_OVERRIDE_CD_OPTION
DEFINES += QET_ALLOW_OVERRIDE_DD_OPTION
 
#comment the line below to disable the project database export
-DEFINES += QET_EXPORT_PROJECT_DB
+#DEFINES += QET_EXPORT_PROJECT_DB
 
# warn on *any* usage of deprecated APIs
#DEFINES += QT_DEPRECATED_WARNINGS
@@ -257,7 +257,7 @@ TARGET = qelectrotech
 
# Ajustement des bibliotheques utilisees lors de l'edition des liens
unix:QMAKE_LIBS_THREAD -= -lpthread
-unix|win32: PKGCONFIG += sqlite3
+#unix|win32: PKGCONFIG += sqlite3
 
# Enable C++17
QMAKE_CXXFLAGS += -std=c++17

Well, on that note, I'm going back to bed, my health is very fragile at the moment, and I need to rest!
Don't be surprised if you see me less these days!
I also have to undergo a many numbers of health checkups....

PS : Search "showme" functions in the source code and you'll understand better how interactivity works in QET when you click on the report folios, master and slave links, etc...

Best regards,
Laurent

https://qelectrotech.org/forum/viewtopi … 310#p20310

68

(117 replies, posted in Code)

Hallo Achim,

this plc-user's patch for Qt6 was related to SVN commit 5703: https://listengine.tuxfamily.org/lists. … 00018.html
description in the video
https://youtu.be/kQkrVEUSjdA

69

(23 replies, posted in Code)

Here it's work on my UHD screen..

I only have to understand how it works

https://qelectrotech.org/forum/viewtopi … 070#p17070

Hallo plc-user

not the same thing like you, Cmake don't found KF6 dev addons installed by apt, so

--- cmake/define_definitions.cmake
+++ cmake/define_definitions.cmake
@@ -65,7 +65,7 @@ message("GIT_COMMIT_SHA            :" ${GIT_COMMIT_SHA})
 if(BUILD_WITH_KF6 AND BUILD_KF6)
   message("KF6_GIT_TAG               :" ${KF6_GIT_TAG})
 else()
-  add_definitions(-DBUILD_WITHOUT_KF6)
+#  add_definitions(-DBUILD_WITHOUT_KF6)
 endif()
 message("QET_COMPONENTS            :" ${QET_COMPONENTS})
 message("Qt version                :" ${Qt6_VERSION})

laurent@debian:~/qet_qt6_cmake/build/Desktop-Debug$ cat CMakeCache.txt | grep KF6
//Build KF6 libraries, use system ones otherwise
BUILD_KF6:BOOL=OFF
//Build with KF6
BUILD_WITH_KF6:BOOL=ON
//The directory containing a CMake configuration file for KF6CoreAddons.
KF6CoreAddons_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/KF6CoreAddons
//The directory containing a CMake configuration file for KF6WidgetsAddons.
KF6WidgetsAddons_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/KF6WidgetsAddons
[13:28:38] laurent@debian:~/qet_qt6_cmake/build/Desktop-Debug$ 

mising pkg-config?

72

(117 replies, posted in Code)

I'm starting to smile to see that the Qt5 to Qt6 port seems to be going well, at least for now.
thanks Simon, plc-user elevatorMind, and others for your work...
There's still some fine-tuning and printing to be done.

As far as I'm concerned, the work of packaging QET on Qt6 hasn't started yet...it might not be easy...

73

(117 replies, posted in Code)

Now, what I wanted to write in my own name!!!

Sorry again!

no worries. nomicons/wink


Thanks for your tip plc-user, great, merged!.

74

(117 replies, posted in Code)

On existing projects, folio cross-references will have to be re linked, as will master-slave connections for contactor coils, relays, isolators, etc.

Edit: No, in fact they are not reread when the project is saved and reopened....but links connexions was saved in the XML.

In think the problemis here;
https://github.com/qelectrotech/qelectr … t.cpp#L770


    //load uuid of connected elements
    QList <QDomElement> uuid_list = QET::findInDomElement(e,
                                                          QStringLiteral("links_uuids"),
                                                          QStringLiteral("link_uuid"));
    foreach (QDomElement qdo, uuid_list)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)    // ### Qt 6: remove
        tmp_uuids_link << qdo.attribute(QStringLiteral("uuid"));
#else
#if TODO_LIST
#pragma message("@TODO remove code for QT 6 or later")
#endif
        qDebug()<<"Help code for QT 6 or later";
#endif
    //uuid of this element

Edit comment line tmp_uuids_link << qdo.attribute(QStringLiteral("uuid")); and compile code with Qt 5.15.x I have the same problem I saw with Qt6..

Bonjour et bienvenu Jory,

merci pour les compliments.
Je ferai avec des règles d'auto renumérotation exemple en vidéo: