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

Qelectro.PNG, 2.13 kb, 187 x 175
Qelectro.PNG 2.13 kb, 237 downloads since 2019-07-06 

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..."

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

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

thanks, i will look

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..."

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..."

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

bottom.PNG, 4.76 kb, 289 x 335
bottom.PNG 4.76 kb, 259 downloads since 2019-07-14 

Re: Abstand Zwischen Betriebskennzeichnung und Querverlinkung

stromie wrote:

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

Post's attachments

center.PNG, 4.7 kb, 343 x 279
center.PNG 4.7 kb, 260 downloads since 2019-07-14 

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..."

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, 247 downloads since 2019-07-14 

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..."

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..."

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

text.PNG, 7.01 kb, 363 x 328
text.PNG 7.01 kb, 253 downloads since 2019-07-15 

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..."

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

Menu.PNG, 8.14 kb, 792 x 161
Menu.PNG 8.14 kb, 277 downloads since 2019-07-19 

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

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