joshua
ffc2a7a7d7
Fix warning
2022-09-26 21:48:08 +02:00
joshua
3e75bedef0
Fix crash
...
https://qelectrotech.org/forum/viewtopic.php?pid=16647#p16647
2022-09-26 21:40:47 +02:00
joshua
ff80453f2c
Terminal strip item can be added to diagram
...
Initial commit about graphics item of a terminal strip, Work in
progress.
2022-08-27 21:24:25 +02:00
joshua
d6e8a1c133
Element editor : improve deletion speed
2022-08-13 13:06:46 +02:00
joshua
eee1c7fff7
Element editor : Improve responsiveness when several shapes are selected.
2022-08-13 12:40:59 +02:00
David Varley
af5d5e0aa3
Allow for open polygons (ie polylines) when saving as dxf
2022-08-13 11:57:29 +10:00
Laurent Trinques
acf1e713fc
Fix position of label XREF in 'Other' option for slave device contact
...
type
2022-08-08 10:39:04 +02:00
Laurent Trinques
21524ee528
Add symbol and improve 'Other' option for slave device contact type.
2022-08-06 18:42:05 +02:00
joshua
02769fe881
Improve opening time of dxf
2022-08-03 13:54:39 +02:00
joshua
e57ba72d7c
Fix crash
2022-08-03 12:37:32 +02:00
Laurent Trinques
56b7458951
Workaround to fix launch dxf2elmt binary from QET element editor menu on macOS
2022-07-27 18:04:48 +02:00
joshua
74a187e659
Minor
2022-07-27 14:52:50 +02:00
joshua
8b62318588
Return an empty QByteArray if something goes wrong with dxf2elmt
2022-07-27 14:52:00 +02:00
joshua
31466a65ba
Fix fail to build from sources
...
Fix ftbfs for :
ubuntu 18.04 bionic beaver
ubuntu 20.04 focal fossa
debian 11 bullseye
2022-07-27 14:15:32 +02:00
Laurent Trinques
a7160ba9b7
Fix dxf2Elmt Binary name on macOS
2022-07-26 20:18:54 +02:00
joshua
57695bbbea
Element editor : improve code
...
Better use of signal partsAdded and partsRemoved
2022-07-26 17:03:18 +02:00
joshua
5a497cd6b5
Element editor : improve code
...
Better use of signal partsAdded and partsRemoved
2022-07-26 16:17:47 +02:00
joshua
cae7cbdbd8
Import dxf is managed by undo command
2022-07-24 20:58:00 +02:00
joshua
6e81451b46
Add import dxf feature
...
Use dxf2elmt to import dxf.
See https://github.com/antonioaja/dxf2elmt
2022-07-23 21:54:23 +02:00
Laurent Trinques
acd151c9ca
Improve last commit
2022-07-16 13:36:05 +02:00
Laurent Trinques
ab724377c0
Fixed a bug with many slaves of type Other, whose XREFs overlap in list
...
mode
2022-07-16 12:58:35 +02:00
joshua
d9a0b03e23
Minor : add QGIUtility namespace
2022-07-15 20:48:06 +02:00
Laurent Trinques
4c5d27e9af
Minor
2022-07-08 21:34:10 +02:00
Laurent Trinques
8af850df44
Add the architecture of the CPU that Qt was compiled for in widget aboutqetdialog and in the logs
2022-07-08 20:50:45 +02:00
joshua
ba1e8381f2
Merge branch 'terminal_strip'
...
* terminal_strip:
Improve execution time of some actions.
Minor : fix little gui defect
Improve opening time of terminal strip editor window
Display conductor number
2022-07-04 21:45:18 +02:00
joshua
2a307a74da
Improve execution time of some actions.
...
Improve the execution time when we add, change or remove
several terminals to/from terminal strip.
2022-06-23 21:36:24 +02:00
Tadeáš Pilař
1a2fea84ff
Add 'Other' option for slave device contact type
...
This option alows for displaying XRef without contact drawing.
This is useful for spliting one physical part into multiple
logical elements when the slave element is not a switch.
2022-06-23 05:41:33 +02:00
joshua
fa753449ad
Minor : fix little gui defect
...
At opening of terminal strip editor window, click on free terminal
in the tree dock don't show up the free terminal table.
2022-06-22 18:56:22 +02:00
joshua
fe19b270f9
Improve opening time of terminal strip editor window
...
Need serious refactoring of codes who use the method
Element::actualLabel() and also actualLabel itself.
This part of code is crappy.
2022-06-22 17:34:05 +02:00
joshua
2e15372aab
Display conductor number
2022-06-14 19:30:45 +02:00
joshua
c9ebdace04
Update some code.
...
Update some part of class LinkSingleElementWidget with more modern
c++ and recent change of Qet.
2022-06-13 21:06:00 +02:00
joshua
3e6e38e566
Continue revamp of elementprovider
2022-06-13 20:46:22 +02:00
joshua
c83d4e5aea
Refactoring.
...
Refactor elementProvider class : Use the ElementData::Types instead of
deprecated Element::kind
2022-06-13 20:27:06 +02:00
joshua
97ecd26749
Use QLatin1String and QStringLiteral for better performance
...
In class ElementData.
2022-06-01 22:45:59 +02:00
joshua
2e70d2e599
Nomenclature now use properly the element type 'thumbnail'
...
Use function provided by ElementData to check element type and
master type instead of use plain text (code is more strong)
2022-06-01 22:29:12 +02:00
joshua
3dd0986c4f
Fix some warning and write more modern c++
2022-05-25 23:40:08 +02:00
joshua
899caeabe9
Fix wrong behavior when edit the element information
...
In the diagram editor, when we edit the element information in the side
panel, each time we tip something in the text field the cursor always go
to the end if the "label" information is empty.
2022-05-25 23:16:13 +02:00
joshua
a2b73ea2bc
Definitely fix the rotation problem :)
...
Only use space for every rotation
2022-05-25 21:47:31 +02:00
Laurent Trinques
bf32219154
Fix previous workaround
...
Now the shortcut for the rotate action is key_space and use key_R to
rotate terminal on the fly before placing it in the drawing.
2022-05-25 17:39:49 +02:00
Laurent Trinques
6a669f1399
Fix previous workaround
...
Because strange behaviour with Qt::key_space if used for keyPressEvent
and also in shortcut.
Now the shortcut for the rotate action is ctrl + R and key_space to
rotate terminal on the fly before placing it in the drawing.
2022-05-25 13:47:22 +02:00
joshua
4ab1ed7fc9
Fix previous workaround
...
The rotate action shortcut was 'space' before this commit and so the
keyPressEvent with space key was never propagated because always grabbed
by the rotate action.
Now the shortcut for the rotate action is ctrl + space.
Note that even if rotate exist in element editor, this doesn't work well
because the rotation is not well managed by the save/load from elmt
file.
2022-05-22 21:05:54 +02:00
Laurent Trinques
89d03e5503
Element editor : Workaround for Qt::Key_Space event not working
...
Use of ALT key as a replacement to rotate terminal on the fly before
placing it in the drawing.
Fix bug #262
https://qelectrotech.org/bugtracker/view.php?id=262
2022-05-21 23:28:44 +02:00
Laurent Trinques
9a6e1d2a61
Editor commands: change the rotation with the space key on the keyboard
...
from 90° to 15° for more precision for part lines, polygons, texts, arcs
and circles.
2022-05-20 10:18:37 +02:00
Laurent Trinques
fad6983cf1
Element::Thumbnail fix for BOM pages
2022-05-16 09:30:32 +02:00
Laurent Trinques
daeec311b2
Element::Thumbnail WIP
2022-05-16 08:59:25 +02:00
Laurent Trinques
db8c76c184
Element::Thumbnail WIP
2022-05-15 14:29:01 +02:00
joshua
021aea1d8b
Add the new element type : thumbnail
...
This type must be used for element who goal is to display a
thumbnail/front view of an element, notably used for cabinet contents
view and placement.
2022-05-13 20:02:29 +02:00
Laurent Trinques
1f4dfdba3f
Add QPrinter::HighResolution
2022-05-05 13:37:24 +02:00
joshua
f0694f0daf
Merge branch 'terminal_strip'
...
* terminal_strip:
Remove terminal strip widget
Several terminals can be removed or moved from strip in one shot
2022-05-04 18:48:46 +02:00
joshua
baf412614c
Remove terminal strip widget
...
Since this commit, the terminals can't be moved from the tree widget,
instead we need to use the "move in" widget to move one or several
selected terminals in the table view.
2022-05-04 18:38:45 +02:00