1 (edited by stromie 2019-07-06 08:37:36)

Topic: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

Hallo

könnte man den Abstand beim Slave zwischen der Betriebskennzeichung und der Querverlinkung
unter den Projektsettings einstellbar machen. Aktuell ist der Abstand für mich zu Groß.

Eventuell könnte mir einer der Programmier sagen, in welcher Datei der Abstand fest codiert ist. Dann könnte ich diesen selber anpassen.

Vielen dank für das gute Programm

Post's attachments

Attachment icon Qelectro.PNG 2.13 kb, 274 downloads since 2019-07-06 

2

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

  Hallo,
I did not look, but from memory I think it must be in sources/qetgraphicsitem/crossrefitem.cpp
 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

3 (edited by stromie 2019-07-07 20:01:13)

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

thanks, i will look

4

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

Look in dynamicelementtextitem.cpp ~ L 1353 m_slave_Xref_item boundingRect

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

5

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

Do you have skills in C ++ programming?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

6 (edited by stromie 2019-07-10 19:52:30)

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

Hi scorpioB10

thanks for the info.

[left]My programming skills are limited to the hobby. Some years ago I programmed with C # and C ++. I can read and understand your code.
Currently I try the 0.70rc2 to builden. That under Windows.
[/left]
[left]If that's the case, I'll take a look at the change in distance.[/left]


[left]stromie
[/left]

7 (edited by stromie 2019-07-14 16:31:54)

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

it works, with the textalignment i can switch the xlink position.

Post's attachments

Attachment icon bottom.PNG 4.76 kb, 300 downloads since 2019-07-14 

8

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

stromie wrote:

it works, with the textalignment i can switch the xlink position.

Post's attachments

Attachment icon center.PNG 4.7 kb, 288 downloads since 2019-07-14 

9

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

Great ! You could send patch?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

10 (edited by stromie 2019-07-14 19:27:36)

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

[left]here's a patch, but I think the better way is to use a configuration item.[/left]

Post's attachments

Attachment icon dynamicelementtextitem.cpp.patch 2.63 kb, 280 downloads since 2019-07-14 

11

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

Nice, thanks Stromie. ;-)
You're right, look in sources/ui/configpage/generalconfigurationpage.cpp.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

12

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

https://git.tuxfamily.org/qet/qet.git/l … onpage.cpp

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

13 (edited by stromie 2019-07-15 16:31:14)

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

i think it is better to the text properties.
new item xlink_position

Post's attachments

Attachment icon text.PNG 7.01 kb, 281 downloads since 2019-07-15 

14

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

Hello Stromie,

we thinking is better in project cross-reference settings, Joshua want to guide you.
https://download.qelectrotech.org/qet/forum_img/stromie_patch.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

15

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

ok, then we do this

16 (edited by stromie 2019-07-19 19:58:02)

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

look like this

Post's attachments

Attachment icon Menu.PNG 8.14 kb, 323 downloads since 2019-07-19 

17

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

i have now the problem that in dynamicelementtextitem.cpp

void DynamicElementTextItem::setPlainText(const QString &text)
{
    if (toPlainText() == text)
        return;
    ...
        else if (m_slave_Xref_item)
    {
        QRectF r = boundingRect();
        QPointF pos(r.center().x() - m_slave_Xref_item->boundingRect().width()/2,
                    r.bottom());
        m_slave_Xref_item->setPos(pos);
    }

I can not reference xrefProperties xrp = diagra...referencing

18

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

Helo stromie good job nomicons/wink
Can you open a new topic on the section 'code' of the forum, and at least copy your last two post of this thread.
I will be happy to guide you for this feature.

Développeur QElectroTech