6851 Commits

Author SHA1 Message Date
Laurent Trinques
6f736cb785 Add new ewon element, thanks Vbxler 9-dev-2021/06/28 2021-07-06 19:55:57 +02:00
joshua
52e884b793 Minor fix : slave Xref item is not updated when variable %F is used 2021-06-28 21:31:15 +02:00
joshua
5912a99c16 Minor fix : master XRef is not updated when variable %F is used 2021-06-28 21:24:28 +02:00
joshua
8f051fc612 Remove table useless qetgraphicstableitem when model is reseted
When the model of a qetgraphicstableitem is reseted (for exemple when
the sql query is modified) we check if there is useless tables (table
with 0 row displayed) and remove it.
2021-06-24 19:46:18 +02:00
joshua
bd96faa14f Fix crash
When a qetgraphicstable is deleted, the next and previous table is not
aware about the deletion and keep a dangled pointer of the deleted table
who cause a segfault.
2021-06-24 19:15:24 +02:00
joshua
bb26954bd4 Revert "Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet into terminal_strip"
This reverts commit 364bce618cc8a2a77329261cc485a40f4825eac5, reversing
changes made to efb4a8dd71b9e19ac55c5ac8911f1f53e3b43c22.
2021-06-07 20:00:52 +02:00
joshua
4615e6d060 Revert "Add terminalStripModel class"
This reverts commit a1e18d2bbab70502df3d8ec87ad2d0a895878611.
2021-06-07 19:45:45 +02:00
joshua
a1e18d2bba Add terminalStripModel class 2021-06-07 19:26:41 +02:00
joshua
364bce618c Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet into terminal_strip 2021-06-07 19:25:30 +02:00
artgg7300
efb4a8dd71 translated hungarian element names 2021-06-05 07:43:06 +02:00
plc-user
f1e353b342 added some additional front-views (100mm->200px) 2021-06-04 21:43:38 +02:00
plc-user
78a48e48c1 changed scaling of front-views to 100mm->200px 2021-06-04 21:43:38 +02:00
Kevin Tee
b448c26d71 Fix typo.
Fix typo.
Also, can we add more screenshots?
2021-05-26 22:40:15 +02:00
Laurent Trinques
c7648fe2af Snap : try to add PySimpleGUI python-packages 2021-05-21 19:38:11 +02:00
joshua
6660caa70f Merge branch 'master' into terminal_strip 2021-05-21 19:18:16 +02:00
joshua
fdbfca9a8c Change ElementData enum
Change enum value 'ground' from enum 'function' to enum 'type'
2021-05-21 19:15:26 +02:00
Laurent Trinques
93b164d077 Update Flatpak, thanks kevinsmia1939 2021-05-20 16:10:01 +02:00
Laurent Trinques
8ed4e742f5 Minor 2021-05-18 08:09:36 +02:00
joshua
c1fdc1adaa Fix xrefproperties bug
Change only slave Xrefproperties is not applied due to overload operator
== who don't compare the formula string of slave.
2021-05-15 18:58:26 +02:00
joshua
789e195ace Fix include path from previous commit 2021-05-14 19:50:30 +02:00
joshua
3220a58b96 Move file 2021-05-14 19:37:36 +02:00
joshua
21c35bc744 Minor improvement at element picture creation
Call once the uuid() method of element location instead of four (and so
parse once time the xml) to store the uuid/picture and uuid/primitive to
hash.
2021-05-14 16:15:49 +02:00
joshua
fd9ab47041 Load project from xml is a little more faster
Like previous commit, in the method loadDiadrams() we call the method
diagramAdded(), in this method we call rebuildDiagramsMap()
updateAllTabsTitle() and these methods operate a loop for each existing
DiagramView.

Now loadDiagrams don't call diagramAdded (which must be used only when
user add a diagram during the use of QElectroTech) but make operations
itself and when all DiagramView are added, call rebuildDiagramsMap()
updateAllTabsTitle() only once.
2021-05-14 15:47:10 +02:00
joshua
71636ba874 Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet 2021-05-14 13:39:33 +02:00
joshua
0aea48bdaa Open project is a litle more faster
In the methods readDiagramsXml we call addDiagram for each diagrams
loaded from xml, inside the addDiagram method we call the method
updateDiagramsFolioData() and to finish this method operate a loop for
each existing diagram.

Then when we load a project from xml of
10 folios, loop inside updateDiagramsFolioData() is called 55 time.
50 folios, loop inside updateDiagramsFolioData() is called 1275 time.
100 folios, loop inside updateDiagramsFolioData() is called 5050 time.

Now instead of call addDiagram, we add diagram directly inside the
methods readDiagramsXml and call the method updateDiagramsFolioData()
only once when all diagrams are loaded.
2021-05-14 13:38:59 +02:00
Ole Carlsen
dd51819403 Updated Danish Translation 2021-05-13 21:39:48 +02:00
joshua
ffabeb9caa Avoid excessive debug outputs
Avoid excessive debug outputs when terminal type doesn't exist (99.99%
of actual elements collections).
2021-05-13 20:48:56 +02:00
dlee99
bfc1df633e modified: lang/qet_nl.qm
modified:   lang/qet_nl.ts
2021-05-12 21:06:49 +02:00
joshua
507c1b4f73 Minor gui behavior improvement 2021-05-11 18:46:12 +02:00
joshua
580ebe8b97 Terminal strip can now be edited and managed by undo command 2021-05-11 18:20:46 +02:00
joshua
e0579b3040 Add widgets to edit terminal strip data (WIP) 2021-05-11 18:20:46 +02:00
joshua
ded4ea555f Terminal element can be removed from a terminal strip 2021-05-11 18:20:46 +02:00
joshua
f07f4cb150 Fix drag and drop bug 2021-05-11 18:20:46 +02:00
joshua
dbb21373e1 Read terminal strip from xml 2021-05-11 18:20:46 +02:00
joshua
89f3ce1eb3 terminal strip can be saved to xml 2021-05-11 18:20:46 +02:00
joshua
36068abce7 Add a reload push button
Add a reload push button to quickly reload/update the gui according to
the current state of the terminal strip.
2021-05-11 18:20:46 +02:00
joshua
d551c8e6b9 Improve undo command when remove a terminal strip 2021-05-11 18:20:46 +02:00
joshua
2572e1c25d Display terminals owned by terminal strip in the tree view 2021-05-11 18:20:46 +02:00
joshua
b158984464 Set parent terminal strip of terminal element
Call the method :
void TerminalElement::setParentTerminalStrip(TerminalStrip *strip)
when a terminal element is added to a terminal strip.
2021-05-11 18:20:46 +02:00
joshua
256d42d030 Add and move terminal element to strip is managed by undo 2021-05-11 18:20:46 +02:00
joshua
171e95fb17 Enable drag and drop of terminal tree widget item 2021-05-11 18:20:46 +02:00
joshua
d3ad490b84 Initial comit to use drag and drop 2021-05-11 18:20:46 +02:00
joshua
df07f373d8 Terminal strip add/remove is managed by undo stack 2021-05-11 18:20:46 +02:00
joshua
5d17461c6e Add RemoveTerminalStripCommand class 2021-05-11 18:20:46 +02:00
joshua
2cf5ea11fd Fix : undo code is executed in redo function and vice versa
Need to sleep ?
2021-05-11 18:20:46 +02:00
joshua
573c0c236a Add undo command for add/remove a terminal strip 2021-05-11 18:20:46 +02:00
joshua
63429ab087 Terminal strip editor display the free terminal elements 2021-05-11 18:20:46 +02:00
joshua
00846c1418 Add "parent terminal" strip member to TerminalElement class 2021-05-11 18:20:46 +02:00
joshua
a3f776b7db Add 'comment' to terminal strip 2021-05-11 18:20:46 +02:00
joshua
91db58bb64 Add dialog to create terminal strip + display existing terminal strip 2021-05-11 18:20:46 +02:00