<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[QElectroTech — Suggestion: Use Terminal-Names in schematic-file]]></title>
		<link>https://qelectrotech.org/forum/viewtopic.php?id=2716</link>
		<atom:link href="https://qelectrotech.org/forum/extern.php?action=feed&amp;tid=2716&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Suggestion: Use Terminal-Names in schematic-file.]]></description>
		<lastBuildDate>Tue, 01 Oct 2024 11:29:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=20397#p20397</link>
			<description><![CDATA[<p> </p><div class="quotebox"><cite>scorpio810 wrote:</cite><blockquote><p>For me, sqlite help to create BOM, summary pages, ect, but when you change any things the change it&#039;s saved in XML of the project.</p></blockquote></div><p>Hello Laurent and plc-user,</p><p>I&#039;ve also taken an interest in the QET codebase recently. Forgive me intruding on your conversation, however unless I mis-read what Laurent says, what he writes is not my observation from the following tests:</p><p>If I open a couple of text editors: Brackets and Visual Studio, while in QET I change a wire number for example from &quot;110&quot; to &quot;110A&quot;, I do not see that change reflected in either Brackets or Visual Studio, until I Save the project in QET.</p><p>Conversely, if I modify the .qet file in Brackets or Visual Studio (both the formula=&quot;110x&quot; and num=&quot;110x&quot; values for the wire I&#039;m watching) I immediately see the change reflected in the other text editor, but not in QET until after closing and reopening the project.</p><p>Hope it helps - and I&#039;ve not simply misunderstood or got the wrong end of the stick <img src="https://qelectrotech.org/forum/img/smilies/nomicons/smile.png" width="20" alt="nomicons/smile" /></p><br /><p>Btw Laurent, as far as fundraising for essential annual project expenditure, I&#039;d be very happy to contribute; and I&#039;m sure no doubt many people would, if fundraising efforts were made more public. I know other opensource projects have similar annual fundraising campaigns and believe devs ought not to be spending their personal money on keeping a mature, widely-appreciated project online when they already contribute their free time. I think you only need decide whether to accept donations directly, or via a payment processing intermediary (searching &quot;online donation platforms&quot; turns up a plethora of providers) - and the money will surely follow.</p><p>Thank you both and all the devs for your ongoing work <img src="https://qelectrotech.org/forum/img/smilies/nomicons/smile.png" width="20" alt="nomicons/smile" /> </p>]]></description>
			<author><![CDATA[null@example.com (hairy_kiwi)]]></author>
			<pubDate>Tue, 01 Oct 2024 11:29:14 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=20397#p20397</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19748#p19748</link>
			<description><![CDATA[<p> Ooops ... No, no, no ... don&#039;t get me wrong! <br />It wasn&#039;t meant that way!!!&nbsp; </p><p>I have a good job and earn my money for living and &quot;a bit&quot; more!&nbsp; <img src="https://qelectrotech.org/forum/img/smilies/nomicons/smile.png" width="20" alt="nomicons/smile" /></p><p>Please spend the donated money for QET-Project! </p>]]></description>
			<author><![CDATA[null@example.com (plc-user)]]></author>
			<pubDate>Mon, 01 Apr 2024 16:26:08 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19748#p19748</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19747#p19747</link>
			<description><![CDATA[<p> </p><div class="quotebox"><cite>plc-user wrote:</cite><blockquote><p>Health is the most important thing, besides family and friends!<br />(a little money might help a bit, too...<img src="https://qelectrotech.org/forum/img/smilies/nomicons/wink.png" width="20" alt="nomicons/wink" />)</p></blockquote></div><p>If you wish, I can have Paypal send you some of the money we receive from donations from users who thank us for this project, given the excellent work you do.</p><p>It&#039;s certainly not a fortune (~ 500€)and I had to contribute out of my own pocket for the Aplle develloper notarization ~99€.</p><p>And in June I have to renew the web hosting at a cost of 160€.</p><p>I thanks all users who donate and hepling to support this project again, thanks all.</p><p>Best regards,<br />Laurent </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 01 Apr 2024 16:10:36 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19747#p19747</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19745#p19745</link>
			<description><![CDATA[<p> Health is the most important thing, besides family and friends!<br />(a little money might help a bit, too...<img src="https://qelectrotech.org/forum/img/smilies/nomicons/wink.png" width="20" alt="nomicons/wink" />) </p>]]></description>
			<author><![CDATA[null@example.com (plc-user)]]></author>
			<pubDate>Mon, 01 Apr 2024 15:58:09 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19745#p19745</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19744#p19744</link>
			<description><![CDATA[<p> @plc-user: age only matters if you&#039;re healthy <img src="https://qelectrotech.org/forum/img/smilies/nomicons/wink.png" width="20" alt="nomicons/wink" /> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 01 Apr 2024 15:54:16 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19744#p19744</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19743#p19743</link>
			<description><![CDATA[<p> @Laurent: +2 </p>]]></description>
			<author><![CDATA[null@example.com (plc-user)]]></author>
			<pubDate>Mon, 01 Apr 2024 15:52:45 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19743#p19743</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19742#p19742</link>
			<description><![CDATA[<p> @plc-user if you don&#039;t mind my asking how old are you?<br />Me : 55 years old.. </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 01 Apr 2024 15:49:47 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19742#p19742</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19740#p19740</link>
			<description><![CDATA[<p> o.k.&nbsp; –&nbsp; Merci, Laurent !</p><p>In this case, the learning curve is not quite so steep for me: I &quot;only&quot; have to dive deeper into QT and QET programming!<br />I&#039;ve hardly ever had anything to do with sqlite as a programmer. </p><p>As I said: For now I just want to understand how QET works &quot;under the hood&quot;... and maybe contribute some things.</p><p>&quot;Still learning!&quot; (even at my age <img src="https://qelectrotech.org/forum/img/smilies/nomicons/wink.png" width="20" alt="nomicons/wink" />) </p>]]></description>
			<author><![CDATA[null@example.com (plc-user)]]></author>
			<pubDate>Mon, 01 Apr 2024 15:39:37 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19740#p19740</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19736#p19736</link>
			<description><![CDATA[<p> For me, sqlite help to create BOM, summary pages, ect, but when you change any things the change it&#039;s saved in XML of the project. </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 01 Apr 2024 14:56:30 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19736#p19736</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19734#p19734</link>
			<description><![CDATA[<p> Let me ask more specific:</p><p>As a user: If I make a change in the circuit diagram, where is this change saved internally? In the XML structure?<br />It is clear that this will (at some point) be transferred to a sqlite database in memory.</p><p>Or is it so that the sqlite DB in memory is used during editing the diagram and the XML structure is only adapted for saving?</p><p>To ask technically: (sqlite XOR XML)?&nbsp; &nbsp;<img src="https://qelectrotech.org/forum/img/smilies/nomicons/wink.png" width="20" alt="nomicons/wink" /> </p>]]></description>
			<author><![CDATA[null@example.com (plc-user)]]></author>
			<pubDate>Mon, 01 Apr 2024 14:43:09 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19734#p19734</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19732#p19732</link>
			<description><![CDATA[<p> Conductor numbering export to csv not use database:<br /><a href="https://github.com/qelectrotech/qelectrotech-source-mirror/blob/master/sources/conductornumexport.cpp">https://github.com/qelectrotech/qelectr … export.cpp</a></p><p>Summary page and BOM use database:<br /><a href="https://github.com/qelectrotech/qelectrotech-source-mirror/tree/master/sources/dataBase">https://github.com/qelectrotech/qelectr … s/dataBase</a> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 01 Apr 2024 14:31:23 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19732#p19732</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19730#p19730</link>
			<description><![CDATA[<p> Hallo plc-user,</p><p>When you start QET and open an project QET read the XML of the project, draw all diagrams, etc, after it create an use a sqlite database in memory, you can export this database now, but you can&#039;t imported data yet to the project on the fly running.</p><p>Edit: Sqlite database for project was added recently also QET code can run without.. </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 01 Apr 2024 14:20:14 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19730#p19730</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19726#p19726</link>
			<description><![CDATA[<p> Salut Laurent,</p><div class="quotebox"><cite>scorpio810 wrote:</cite><blockquote><p>What could be very constructive would be to add the conductors wire section, color, cable, element label, terminal name connected to each end in the sqlite database in a new table, a bit like nomeclature aka BOM.</p></blockquote></div><p>I would like to understand your comment better, therefore my questions. </p><p>How or in what is the internal structure of a folio stored at runtime of QET? <br />Is it the XML structure as it is in the resulting qet file, or is an sqlite database used internally?<br />Is there a place where this is documented?<br />Please don&#039;t say: &quot;The source code is the documentation&quot; <img src="https://qelectrotech.org/forum/img/smilies/nomicons/wink.png" width="20" alt="nomicons/wink" /></p><p>Of course, I would also like the connection information to become an internal QET generation for a cable plan or wiring instructions for the electrician at some point: I don&#039;t really like such things with python plugins! This can be quite a hassle on some systems...&nbsp; <br />How this can/should be designed for the user is, in my opinion, of secondary importance for the time being: The internal structures need to be understood and extended. </p>]]></description>
			<author><![CDATA[null@example.com (plc-user)]]></author>
			<pubDate>Mon, 01 Apr 2024 12:57:25 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19726#p19726</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19725#p19725</link>
			<description><![CDATA[<p> When we insert empty tags it makes the number of changed code-lines even smaller!&nbsp; <img src="https://qelectrotech.org/forum/img/smilies/nomicons/wink.png" width="20" alt="nomicons/wink" /></p><p>Here&#039;s the new diff:<br /></p><div class="codebox"><pre><code>diff --git a/sources/qetgraphicsitem/conductor.cpp b/sources/qetgraphicsitem/conductor.cpp
index dc9d23595..df0e9fdc6 100644
--- a/sources/qetgraphicsitem/conductor.cpp
+++ b/sources/qetgraphicsitem/conductor.cpp
@@ -1048,6 +1048,7 @@ QDomElement Conductor::toXml(QDomDocument &amp;dom_document,
        } else {
                dom_element.setAttribute(&quot;element1&quot;, terminal1-&gt;parentElement()-&gt;uuid().toString());
                dom_element.setAttribute(&quot;terminal1&quot;, terminal1-&gt;uuid().toString());
+               dom_element.setAttribute(&quot;terminalname1&quot;, terminal1-&gt;name());
        }
 
        if (terminal2-&gt;uuid().isNull()) {
@@ -1056,6 +1057,7 @@ QDomElement Conductor::toXml(QDomDocument &amp;dom_document,
        } else {
                dom_element.setAttribute(&quot;element2&quot;, terminal2-&gt;parentElement()-&gt;uuid().toString());
                dom_element.setAttribute(&quot;terminal2&quot;, terminal2-&gt;uuid().toString());
+               dom_element.setAttribute(&quot;terminalname2&quot;, terminal2-&gt;name());
        }
        dom_element.setAttribute(&quot;freezeLabel&quot;, m_freeze_label? &quot;true&quot; : &quot;false&quot;);
 
diff --git a/sources/qetgraphicsitem/terminal.cpp b/sources/qetgraphicsitem/terminal.cpp
index 54f9ece5f..272720382 100644
--- a/sources/qetgraphicsitem/terminal.cpp
+++ b/sources/qetgraphicsitem/terminal.cpp
@@ -744,6 +744,11 @@ QUuid Terminal::uuid() const
        return d-&gt;m_uuid;
 }
 
+QString Terminal::name() const
+{
+       return d-&gt;m_name;
+}
+
 /**
        @brief Conductor::relatedPotentialTerminal
        Return terminal at the same potential from the same
diff --git a/sources/qetgraphicsitem/terminal.h b/sources/qetgraphicsitem/terminal.h
index e014d2a1f..a8d22abc8 100644
--- a/sources/qetgraphicsitem/terminal.h
+++ b/sources/qetgraphicsitem/terminal.h
@@ -74,6 +74,7 @@ class Terminal : public QGraphicsObject
                Diagram  *diagram             () const;
                Element  *parentElement       () const;
                QUuid uuid                    () const;
+               QString   name                () const;
 
                QList&lt;Conductor *&gt; conductors() const;
                Qet::Orientation orientation() const;</code></pre></div><p>The TerminalNames are only inserted into the connection, when the terminals have UUIDs ... only then!</p><p>In the element-collection I found &quot;some&quot; elements which have terminals with names but no UUID. Already working on them... <img src="https://qelectrotech.org/forum/img/smilies/nomicons/smile.png" width="20" alt="nomicons/smile" /> </p>]]></description>
			<author><![CDATA[null@example.com (plc-user)]]></author>
			<pubDate>Mon, 01 Apr 2024 11:10:46 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19725#p19725</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion: Use Terminal-Names in schematic-file]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=19724#p19724</link>
			<description><![CDATA[<p> What could be very constructive would be to add the conductors wire section, color, cable, element label, terminal name connected to each end in the sqlite database in a new table, a bit like nomeclature aka BOM.</p><p>It&#039;s justa an idea, this would avoid having to write a plugin like qet_tb_generator in python, which reads the XML to generate the terminal blocks, and then it might be possible to do more with SQL and csv export? </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 01 Apr 2024 10:57:22 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=19724#p19724</guid>
		</item>
	</channel>
</rss>
