6692 Commits

Author SHA1 Message Date
joshua
2b5887f994 Fix crash 2022-08-03 14:47:10 +02:00
joshua
ea978c5e24 Fix a funny bug
When we create a summary table and uncheck the option "adjust the size
of the table to the folio" an infinity of new diagram are added to the
project.
2022-04-01 20:42:00 +02:00
joshua
5925c227ab Fix bug 244
I was thinking that the commit 5a51f6bace3115bb597ba472eb8938566c9d0fcf
fix the bug 244, but not they only fix this bug :
https://qelectrotech.org/forum/viewtopic.php?pid=16022#p16022

This commit really fix the bug 244
2022-04-01 20:06:00 +02:00
joshua
0f95edc5e6 Fix crash
See bug N°244
https://qelectrotech.org/bugtracker/view.php?id=244
2022-03-31 19:09:42 +02:00
joshua
67637acaab Fix segfault.
Fix bug 249.
https://qelectrotech.org/bugtracker/view.php?id=249
2021-12-28 15:30:19 +01:00
Laurent Trinques
242c53e3be Add Russian translation, thanks "А.Разживин" 2021-12-18 12:59:56 +01:00
joshua
6775930e81 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:33:05 +02:00
joshua
54b53b4086 Minor fix : slave Xref item is not updated when variable %F is used 2021-06-28 21:34:40 +02:00
joshua
e765cf037c Minor fix : master XRef is not updated when variable %F is used 2021-06-28 21:33:33 +02:00
joshua
39cff98649 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:57:03 +02:00
joshua
13041720df 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:56:37 +02:00
joshua
d7a49b9e74 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:59:31 +02:00
joshua
ecf783332a 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-25 10:49:13 +02:00
joshua
fbb97cb686 Element query widget : make code more readable 2021-04-25 10:48:42 +02:00
joshua
4aaa8eebe4 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-25 10:48:11 +02:00
joshua
4b6e0ad8e5 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-25 10:47:43 +02:00
joshua
86c8a2d45b Fix unwanted moving part in element editor.
Fix an unwanted behavior when the properties dock widget is displayed :

1 there is no selection
2 the dock widget width is set to minimum
3 select a part, the dock widget gain new widgets used to edit the
current selected part and the width of the dock grow so the width of the
QGraphicsView is reduced and cause a mouse move event.
When this case occur the part is moved but they should not.
2021-04-07 13:05:27 +02:00
joshua
43e3c9a998 Improve gui layout for low resolution screen 2021-04-07 13:05:10 +02:00
joshua
349765a90c Use QStringLiteral and QLatin1String. 2021-04-07 13:00:43 +02:00
joshua
a4ca872158 Use QStringLiteral and QLatin1String.
According to the Qt documentation
(https://doc.qt.io/qt-5/qstring.html#QStringLiteral)
(https://woboq.com/blog/qstringliteral.html), use QStringLiteral and
QLatin1String is better on some conditions (faster).
This commit change the code related to the loading of a project (in
qetproject class), let see if loading time is improved.
2021-04-07 13:00:21 +02:00
joshua
6602c65679 Make MachineInfo a singleton class
Because on windows MachineInfo take a little time to init, we make it to
a singleton.
MachineInfo is build the first time in main.cpp.
Now all other places where we use MachineInfo (aboutqetdialog and
configdialog) gui don't hang anymore in waiting to MachineInfo finish to
build.
2021-03-26 18:43:30 +01:00
joshua
fc870e7afc Rename class Machine_info to MachinInfo
Rename to follow the code style of QElectroTech
2021-03-26 18:43:12 +01:00
Joshua Claveau
04226a5dee little fix 2021-03-26 18:42:53 +01:00
Joshua Claveau
164536c3ef Project properties dialog launch a little more faster (especially on windows)
Instead of build machine_info class which take time, only to get the max
width and height of screens, call  of methods
Machine_info::i_max_screen_width() and
Machine_info::i_max_screen_height() are now static and compute only
this.
The project properties dialog is now faster because don't wait the end
build of machine_info.
2021-03-26 18:42:29 +01:00
Joshua Claveau
0915d946c5 Qet start a little more faster (especially on windows)
Machine_Info class take time on windows even in powerful computer.
Run the machine_info in main.cpp in parallel into another thread.
2021-03-26 18:42:08 +01:00
Laurent Trinques
959f088306 Update displayed version 2021-03-19 16:04:58 +01:00
Gleb Popov
ea2638acad Add installation phase to CMake build system 2021-03-19 15:59:35 +01:00
Simon De Backer
89aa2fbf63 Fix cmake user properties class
for commit 44db25e76b23c7446097468552aeccd3a2984b11
2021-03-19 15:56:42 +01:00
Gleb Popov
86f8b85a78 Fix CMake build when git revision can't be determined 2021-03-19 15:56:03 +01:00
Gleb Popov
491efe7b1d Add CMake option to allow using system pugixml library 2021-03-19 15:55:10 +01:00
Gleb Popov
86552e481a Add CMake option to allow using system KF5 libraries 2021-03-19 15:54:31 +01:00
Simon De Backer
b58482a0d5 Fix Cmake
did not compile
2021-03-19 15:52:32 +01:00
Laurent Trinques
875eaac766 Update SingleApplication to upstream master 2021-03-02 19:07:02 +01:00
Laurent Trinques
fa9f6b9c03 Upgrade pugixml XML parser to 1.11 release
https://pugixml.org/docs/manual.html#v1.11
2021-03-02 19:06:50 +01:00
joshua
a6e55e1918 Fix wrong element type 2021-02-24 20:51:33 +01:00
joshua
3f586b0b8e Fix wrong element type 2021-02-24 20:51:03 +01:00
Laurent Trinques
8ccfb93e89 DiagramView::mouseMoveEvent remove "DEV" in toolTip message mouse
postion
2021-02-24 19:44:12 +01:00
Lars Biskupek
54e2af4fb2 Tab-stop definitions inserted where appropriate
Tab stop definitions inserted in some dialogs, so that the order of tab-stops-moves corresponds as closely as possible to the fields' position in the window.
2021-02-24 19:43:37 +01:00
Lars Biskupek
3e95b51af6 Modifications to SaveFile-Dialog for "Save As PDF"
Fixed a typo that prevented existing PDF files from being displayed in SaveFileDialog for PDFs.

The way the file name for the PDF is generated has changed. If the project has already been saved, the PDF has the same file name (with .pdf of course); If not, the file name is generated from the project title (= same behavior as Save as - dialog for a .qet project file).
2021-02-24 19:43:04 +01:00
joshua
fb58ecacfc Fix typo
Fixed a typo that resulted in existing PDF files not being displayed in
the dialog box "Save As PDF".
Thanks Bisku
2021-02-24 19:42:26 +01:00
Pawel Śmiech
8053303ce5 Polish translation updated
Signed-off-by: Pawel Śmiech <pawel@localhost.localdomain>
2021-02-24 19:41:27 +01:00
Laurent Trinques
664537c178 Change displayedVersion 0.9-dev 0.8.0 2021-02-21 10:15:38 +01:00
joshua
5f908fcd88 ElementCollectionWidgetWidget : Set search start when text to search have at least 3 letters.
The goal is to avoid gui freeze when search for 1 or 2 letters (in this
case qet search for every item and take a lot of time).
2021-02-21 09:44:38 +01:00
Laurent Trinques
ef58f34c14 Update Copyright date 2021-02-20 12:13:46 +01:00
artgg7300
34eb14a97e translated hungarian element names 2021-02-15 20:26:47 +01:00
joshua
30858f9a4d Minor fix :
Combobox "information of element" don't display the real information set
to the dynamic text field
2021-02-15 18:53:22 +01:00
Lars Biskupek
108513ef97 Update German Language file qet_de 2021-02-15 12:14:47 +01:00
Simon De Backer
81e6f217b4 Fix Cmake will not build
missing files in Cmake
From: 0c4f87bd76454264130607fcfcd18b785bc9b0b4
2021-02-14 06:52:05 +01:00
joshua
c592b7a7fd Fix crash
When use the function "invert selection" qet crash when a selected
conductor is being deselected.
2021-02-09 21:05:32 +01:00
Laurent Trinques
e3fab9508f Update pl translation, thanks Pawel 2021-02-08 05:45:18 +01:00