Commit Graph

6879 Commits

Author SHA1 Message Date
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
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
artgg7300 734e70ffb1 translated hungarian lang files 2021-05-11 06:11:43 +02:00
Laurent Trinques 480066cc6d Update *TS files 9-dev-2021/05/09 2021-05-09 12:46:47 +02:00
joshua 74dcf96e4b Element editor: make element text option "keep visual rotation" editable. 2021-05-08 22:14:15 +02:00
Laurent Trinques 222c86f550 Minor update README.md 2021-05-06 23:34:18 +02:00
Laurent Trinques b255423245 Update README.md 2021-05-06 23:27:09 +02:00
joshua 09c0929040 Element editor gui fix
When select a primitive an unparented windows appear and can't be
deleted. Fix it.
0.9-dev-2021/05
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
Laurent Trinques 760a1f6c43 Try to improve HIGHDPI_SCALING 2021-04-21 09:38:48 +02:00
joshua b6cfc8c755 Improve element collection loading time
According to Qt creator flame graph, call QSettings take lot of time.
When loading the element collection, each items of the collection get
the current language by calling the function QString
QETApp::langFromSetting().
This function instantiate a QSettings object each time and take a lot of
time.
Now the QSettings is instantiate only at the first call, and the value
is stored in memory, then all other call of the function don't
instantiate a QSettings, but just return the value in memory.
2021-04-18 20:03:13 +02:00
sdeffaux 820a01cb7d add symbol 2021-04-17 16:15:10 +02:00
sdeffaux bfd7c1ea7c Update symbols and examples 2021-04-17 16:15:10 +02:00
Laurent Trinques b8d9d38d31 Minor 2021-04-12 06:40:59 +02:00
Laurent Trinques c05d76c633 Flatpak update org.qelectrotech.QElectroTech.json 2021-04-12 06:36:16 +02:00
joshua 5a8197b2b3 Element query widget : make code more readable 2021-04-11 14:08:21 +02:00
joshua c1169f0e04 Element nomenclature sql query minor fix
Filter "is empty" don't work for any case :
We must to filter for NULL and empty string then replace the sql
sentence "value IS NULL" by "(value IS NULL OR value = '')"
2021-04-11 14:03:02 +02:00
joshua 794af49a3a Element nomenclature SQL query : minor fix
the filter "is not empty" in nomenclature don't work for every case.
Replace SQL sentence "IS NULL" by "!= ''" because an empty string is not
a NULL value string, but a NULL value string is like an empty string
2021-04-11 12:39:38 +02:00