1 (edited by Max 2023-04-25 12:27:00)

Topic: Crossreference contact at coil sideways under label

Hello,

is it only my problem with crossreference from "view contacts" like in picture?

With "view cross" work like a charm, but there not a symbol for changeover contact.

EDIT:
cut the pictures out, same as attachments.

QElectroTech V 0.100.0-dev
Compilation : GCC 8.3.0
Built with Qt 5.11.3 - x86_64 - Date : Apr 18 2023 : 08:11:53 
Run with Qt 5.15.2 using 16 thread(s)
CPU : model name : AMD Ryzen 7 5800X 8-Core Processor 
RAM Total : 64 GB
RAM Available : 58 GB
GPU : Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290/390] (rev 80) 
GPU RAM : Video memory: 8192MB Dedicated video memory: 8192 MB Currently available dedicated video memory: 6003 MB 
OS : linux - x86_64 - Version : Debian GNU/Linux 11 (bullseye) - Kernel : 6.1.0-0.deb11.5-amd64
*** Qt screens *** 
( 1 : 1920 x 1200 ) 
( 2 : 1920 x 1200 ) 
( 3 : 1920 x 1200 ) 

Post's attachments

Bildschirmfoto von 2023-04-21 18-52-07.png, 13.49 kb, 709 x 405
Bildschirmfoto von 2023-04-21 18-52-07.png 13.49 kb, 59 downloads since 2023-04-21 

Bildschirmfoto von 2023-04-21 18-52-34.png, 22.71 kb, 731 x 513
Bildschirmfoto von 2023-04-21 18-52-34.png 22.71 kb, 48 downloads since 2023-04-21 

Bildschirmfoto von 2023-04-21 18-58-45.png, 52.04 kb, 1091 x 652
Bildschirmfoto von 2023-04-21 18-58-45.png 52.04 kb, 62 downloads since 2023-04-21 

Re: Crossreference contact at coil sideways under label

"view cross" work like a charm, but there not a symbol for changeover contact.

If you ask about "other slave" these symbol is only visible on list mode not in view cross.
Please more explain your problem, I don't understand what you want to say.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

3 (edited by Calypso 2023-04-23 12:15:17)

Re: Crossreference contact at coil sideways under label

Hi Max,
Changeover contacts are shown as openers and closers in the cross view. In the menu project project properties new slide cross references you can specify a letter for changing contacts.

Best regards

Stebo

Post's attachments

2023-04-23 1.png, 7.73 kb, 481 x 216
2023-04-23 1.png 7.73 kb, 53 downloads since 2023-04-23 

2023-04-23 2.png, 35.59 kb, 850 x 370
2023-04-23 2.png 35.59 kb, 45 downloads since 2023-04-23 

Re: Crossreference contact at coil sideways under label

MAX, Your first three images are not visible.

QElectroTech V 0.100.0-dev - iMac macOS Monterey 12.6.3 - MacMini macOS Ventura

5 (edited by Max 2023-04-25 12:33:23)

Re: Crossreference contact at coil sideways under label

Hey folks,

scorpio810 wrote:

"view cross" work like a charm, but there not a symbol for changeover contact.

If you ask about "other slave" these symbol is only visible on list mode not in view cross.
Please more explain your problem, I don't understand what you want to say.

When i choose the radio button "view cross", the table is in center under the label, radio button "view contacts"(list mode) the contacts are shown all on the right side under the label.

Calypso wrote:

Changeover contacts are shown as openers and closers in the cross view. In the menu project project properties new slide cross references you can specify a letter for changing contacts.

Yeah thats right, but you don't see that is a change over. You see only a NC and a NO contact with the same position, but that can also two different contacts. I add two pics, then you see what i mean (change over contacts table and list).

rvamerongen wrote:

MAX, Your first three images are not visible.

The pics are the same in attachment.
Now the forum think im a bot, nomicons/grin, i can't upload any pictures since this post.


Here are the pics.
https://app.box.com/s/khhb2uqngie19z75ngscyj1iczps1chh

Re: Crossreference contact at coil sideways under label

rvamerongen wrote:

MAX, Your first three images are not visible.

attachments don't need tag img

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

Hello,

MAX has a dot . in his formule and not a minus -
Can that be the problem ?

MAX has :
Label cross reference
Master %F.%l%c
Slave (%F.%l%c)

And not
Label cross reference
Master %F-%l%c
Slave (%F-%l%c)

Erik

I am an industrial developer technician and born in 1960

Re: Crossreference contact at coil sideways under label

Max wrote:

Now the forum think im a bot, , i can't upload any pictures since this post.

Please try it again.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

Hello Erik,

i change dot to minus, but still same problem.

Post's attachments

Bildschirmfoto von 2023-04-26 16-13-26.png, 17.02 kb, 819 x 343
Bildschirmfoto von 2023-04-26 16-13-26.png 17.02 kb, 48 downloads since 2023-04-26 

Re: Crossreference contact at coil sideways under label

Hello MAX,

The left contact is too close to second contact, move this contact.
You can move the texts.
You can also move the text at the coil.

Erik

I am an industrial developer technician and born in 1960

Re: Crossreference contact at coil sideways under label

Max you want that:

Post's attachments

Capture.PNG, 31.38 kb, 601 x 668
Capture.PNG 31.38 kb, 46 downloads since 2023-04-27 

12

Re: Crossreference contact at coil sideways under label

Hello,

@galexis
no i don't want this, but it would be nice for future.

@all
Sorry for confusion. I had thought it was clearly explained with the headline.

Now all in one picture and i hope that i make no more confusion.

Problem has nothing to do with change over contacts.
You can't switch to "contacts table" when you use change over contacts, they are not displayed correctly, what might be in the future.

Post's attachments

Zeichnung.png, 70.99 kb, 724 x 905
Zeichnung.png 70.99 kb, 45 downloads since 2023-04-27 

Zeichnung.png, 70.99 kb, 724 x 905
Zeichnung.png 70.99 kb, 45 downloads since 2023-04-27 

Re: Crossreference contact at coil sideways under label

Strange, see:
https://qelectrotech.org/forum/viewtopi … 586#p16586
https://qelectrotech.org/forum/viewtopi … 596#p16596
https://git.tuxfamily.org/qet/qet.git/c … e0f67ef859

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

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

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

Fixed: changeover contact causes a shift to the right of the presentation of all the contacts which are in list mode with respect to the master label.
https://git.tuxfamily.org/qet/qet.git/c … 0568a7ecc9

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

Please try qelectrotech-0.100.0-r7849 packages.

Enjoy! nomicons/wink

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

https://download.qelectrotech.org/qet/forum_img_2/changehover-display-mac-test.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

18

Re: Crossreference contact at coil sideways under label

Hello scropio,

you are on the right way.
Thank you.

But i think it is not the best solution with fix dimensions. The labels have a alignment field, is there a way that the crossreference in a line with these?

Post's attachments

Rastergrafik.png, 128.74 kb, 794 x 1123
Rastergrafik.png 128.74 kb, 59 downloads since 2023-04-30 

Re: Crossreference contact at coil sideways under label

Hi Max,

you can move master label with mouse and adapt where you want to have your list.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

Let me tell you straight away, given how the code is written, it is quite complicated to correct on one side without making a shift on the other.

it's enough to make you tear your hair out!.....

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

21

Re: Crossreference contact at coil sideways under label

Hello Laurent,

scorpio810 wrote:

you can move master label with mouse and adapt where you want to have your list.

i know this, but i don't want to change all of the symbols are in the library.

scorpio810 wrote:

Let me tell you straight away, given how the code is written, it is quite complicated to correct on one side without making a shift on the other.

it's enough to make you tear your hair out!.....

Please leave it on your head.

Have you a hint for me were i get the alignment, and i give it a try to change it myself.
My problem is i have only a very little experience with c++. With Qt in python i have much more.
But is not the same.

By the way.
Version in Qelectrotech have not the release "-r7849", it was helpfull for problem discovery.

QElectroTech V 0.100.0-dev
Compilation: GCC 8.3.0
Built with Qt 5.11.3 - x86_64 - Date : Apr 28 2023 : 17:20:15 
Run with Qt 5.15.2 using 16 thread(s)
CPU : model name : AMD Ryzen 7 5800X 8-Core Processor 
RAM Total : 64 GB
RAM Available : 58 GB
GPU : Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290/390] (rev 80) 
GPU RAM : Video memory: 8192MB Dedicated video memory: 8192 MB Currently available dedicated video memory: 6256 MB 
OS : linux - x86_64 - Version : Debian GNU/Linux 11 (bullseye) - Kernel : 6.1.0-0.deb11.6-amd64
*** Qt screens *** 
( 1 : 1920 x 1200 ) 
( 2 : 1920 x 1200 ) 
( 3 : 1920 x 1200 ) 

Greetings Max

Re: Crossreference contact at coil sideways under label

Hello Max,

see /sources/qetgraphicsitem/crossrefitem.cpp commits history
https://github.com/qelectrotech/qelectr … efitem.cpp


https://github.com/qelectrotech/qelectr … efitem.cpp


Regards,
Laurent

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

@Max:
Maybe try

--- sources/qetgraphicsitem/crossrefitem.cpp
+++ sources/qetgraphicsitem/crossrefitem.cpp
@@ -765,7 +765,7 @@ QRectF CrossRefItem::drawContact(QPainter &painter, int flags, Element *elmt)
     else if (flags &SW)
     {
         bounding_rect = QRectF(0, offset, 24, 20);
-        bounding_rect.adjust(0, -4, 4, 4);
+        bounding_rect.adjust(-4, -4, 4, 4);
 
             //draw the NO side
         painter.drawLine(0, offset+6, 8, offset+6);
@@ -832,7 +832,7 @@ QRectF CrossRefItem::drawContact(QPainter &painter, int flags, Element *elmt)
     else if(flags &Other)
     {
         bounding_rect = QRectF(0, offset, 24, 20);
-        bounding_rect.adjust(0, -4, 4, 4);
+        bounding_rect.adjust(-4, -4, 4, 4);
 
             //Draw the first arc symbol
         QRectF r(8, offset+4, 5, 3);

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

Max wrote:

By the way.
Version in Qelectrotech have not the release "-r7849", it was helpfull for problem discovery.

QElectroTech V 0.100.0-dev
Compilation: GCC 8.3.0
Built with Qt 5.11.3 - x86_64 - Date : Apr 28 2023 : 17:20:15 
Run with Qt 5.15.2 using 16 thread(s)
CPU : model name : AMD Ryzen 7 5800X 8-Core Processor 
RAM Total : 64 GB
RAM Available : 58 GB
GPU : Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290/390] (rev 80) 
GPU RAM : Video memory: 8192MB Dedicated video memory: 8192 MB Currently available dedicated video memory: 6256 MB 
OS : linux - x86_64 - Version : Debian GNU/Linux 11 (bullseye) - Kernel : 6.1.0-0.deb11.6-amd64
*** Qt screens *** 
( 1 : 1920 x 1200 ) 
( 2 : 1920 x 1200 ) 
( 3 : 1920 x 1200 ) 

Greetings Max

It's the package name, we changed displayed version method, now I can't use this for patch displayed version qet.h  file in my packages scripts:
https://github.com/qelectrotech/qelectr … 5bf50387c1

#Find GIT revision number in trunk branch
if [ -z "$HEAD" ] ; then
A=$(git rev-list HEAD --count)
HEAD=$(($A+473))

For debian packaging we can't use
GITCOMMIT=$(git rev-parse --short HEAD)

https://github.com/qelectrotech/qelectr … 785adadc00
https://github.com/qelectrotech/qelectr … 718fd9c5b0

BTW, see the build time: Built with Qt 5.11.3 - x86_64 - Date : Apr 28 2023 : 17:20:15

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

I saw you use my Debian package, you could use apt show qelectrotech command, like this:


apt show qelectrotech
Package: qelectrotech
Version: 0.100.0.r7849-1
Priority: optional
Section: electronics
Maintainer: laurent trinques <scorpio@qelectrotech.org>
Installed-Size: 14,0 MB
Depends: libc6 (>= 2.34), libgcc-s1 (>= 3.0), libkf5coreaddons5 (>= 4.97.0), libkf5widgetsaddons5 (>= 4.96.0), libqt5concurrent5 (>= 5.6.0~rc), libqt5core5a (>= 5.15.1), libqt5gui5 (>= 5.14.1) | libqt5gui5-gles (>= 5.14.1), libqt5network5 (>= 5.0.2), libqt5printsupport5 (>= 5.2.0), libqt5sql5 (>= 5.0.2), libqt5svg5 (>= 5.6.0~beta), libqt5widgets5 (>= 5.15.1), libqt5xml5 (>= 5.0.2), libsqlite3-0 (>= 3.6.11), libstdc++6 (>= 5.2)
Recommends: qelectrotech-examples (= 0.100.0.r7849-1), qelectrotech-data (= 0.100.0.r7849-1), qttranslations5-l10n, mesa-utils
Homepage: http://qelectrotech.org/
Download-Size: 3436 kB
APT-Manual-Installed: yes
APT-Sources: http://debian.qelectrotech.org/qet/debian unstable/main amd64 Packages
Description: Electric schematic editor
QElectroTech is a Qt5 application written in C++ .
This program helps you to design electrical schematic diagrams.
It includes a schematic editor, an element editor and a titleblock editor.
It uses XML files to store the produced contents.
 
N: Il y a 1 enregistrement supplémentaire. Veuillez utiliser l'opérande « -a » pour le voir
apt show qet-tb-generator 
Package: qet-tb-generator
Version: 1.3.1-2
Status: install ok installed
Priority: optional
Section: python
Maintainer: Qelectrotech <scorpio@qelectrotech.org>
Installed-Size: 1427 kB
Depends: python3:any, python3-tk
Suggests: qelectrotech
Download-Size: inconnu
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Script that generates terminal blocks & connectors for QElectroTech
Allows to generate terminal blocks and connectors for QElectroTech electrical diagram software.

apt show pysimplegui
Package: pysimplegui
Version: 4.41.2-2
Status: install ok installed
Priority: optional
Section: python
Maintainer: Qelectrotech <scorpio@qelectrotech.org>
Installed-Size: 1285 kB
Depends: python3:any, python3-tk
Homepage: https://github.com/PySimpleGUI/PySimpleGUI
Download-Size: inconnu
APT-Manual-Installed: no
APT-Sources: /var/lib/dpkg/status
Description: Python GUIs for Humans. Launched in 2018. It's 2021 & PySimpleGUI is an ACTIVE &
Transforms the tkinter, Qt, WxPython, and Remi (browser-based) GUI frameworks into a simpler interface.
The window definition is simplified by using Python core data types understood by beginners (lists and dictionaries).
Further simplification happens by changing event handling from a callback-based model to a message passing one.
[12:54:21] laurent@debian:~/qet_tb_generator_debian_package/qet-tb-generator-1.3.1/debian$ cat control 
Source: qet-tb-generator
Section: python
Priority: optional
Maintainer: Qelectrotech <scorpio@qelectrotech.org>
Build-Depends: debhelper (>= 9), dh-python,
               python3-all, 
               python3-setuptools,
Standards-Version: 4.1.3

Package: qet-tb-generator
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python3-tk, pysimplegui
Recommends: 
Suggests: qelectrotech
Description: Script that generates terminal blocks & connectors for QElectroTech
 Allows to generate terminal blocks and connectors for QElectroTech electrical diagram software.
 .
 .
 .

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."