joshua
a765fe24be
Bug fix : in some condition element are not loaded when open a project
...
If an element are overwrite by a modified element and the terminals of
the modified element are moved, the old element is not loaded because
some terminal are not found.
This commit remove the checking of not found terminal because it's
useless now.
2021-09-07 22:23:43 +02:00
joshua
f3811d3035
Add annex project
2021-08-20 17:41:08 +02:00
joshua
5288cd8c8b
Add tab "annex project" to about qelectrotech dialog
...
The goal is to list annex project of QElectroTech.
2021-08-20 17:31:37 +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 364bce618c , reversing
changes made to efb4a8dd71 .
2021-06-07 20:00:52 +02:00
joshua
4615e6d060
Revert "Add terminalStripModel class"
...
This reverts commit a1e18d2bba .
2021-06-07 19:45:45 +02:00
joshua
a1e18d2bba
Add terminalStripModel class
2021-06-07 19:26:41 +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
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
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
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
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
joshua
0a2ec297bf
Minor
2021-05-11 18:20:46 +02:00
joshua
bbfe9ed377
Add terminal strip editor widget
2021-05-11 18:20:46 +02:00
joshua
39aee4ad07
Add terminal strip data class
2021-05-11 18:20:46 +02:00
joshua
49674e7d33
Add terminal strip class
2021-05-11 18:20:46 +02:00
joshua
12c0dbd8d1
Minor gui change
2021-05-11 18:20:19 +02:00
joshua
74dcf96e4b
Element editor: make element text option "keep visual rotation" editable.
2021-05-08 22:14:15 +02:00
joshua
09c0929040
Element editor gui fix
...
When select a primitive an unparented windows appear and can't be
deleted. Fix it.
2021-04-30 20:27:24 +02:00
Laurent Trinques
7312d06cc4
Minor
2021-04-30 11:52:44 +02:00
Laurent Trinques
5c75bc4194
OSX update qet_tb_generator PATH to python 3.9
2021-04-30 11:34:32 +02:00