plc-user
45afd9af0e
element-editor: fix jumping positions when rotate, mirror or flip
2025-03-07 07:43:20 +01:00
plc-user
4009e6aaab
simplify and use the same code for Qt5 & Qt6
...
When reading and comparing Qt5-docs and Qt6-docs, I read,
that there are no differences in the functions!
So it is not necessary to have the differentiation
between the Qt-Versions.
Code compiles without errors or warnings for Qt5 and Qt6.
2025-03-02 18:56:34 +01:00
plc-user
43386aa14f
unify calls to "setRotation" for element-primitives
2025-02-22 09:30:15 +01:00
plc-user
007ce79cee
BugFix: Flip and Mirror of terminals
2025-02-15 09:13:56 +01:00
plc-user
bd3b39cea3
element-editor: fix rotation, add mirror, add flip for graphical primitives
...
Now that the problem with the translations of keyboard shortcuts has been resolved and rotation using the space bar works reliably in principle, I took a closer look at the rotation function itself in the element editor.
I noticed, for example, that arcs can be rotated at an angle of 15°. This doesn't really make sense, as the “arc” part doesn't have the “rotation” property. There is only width and height.
And somehow rotating arcs didn't work well: start- and span-angles weren't adjusted.
Lines and polygons can be rotated in 15° increments, which doesn't make much sense, if other parts that can only be rotated in 90° increments are selected at the same time.
To make a long story short:
I reworked the rotation functions of the graphical parts so that now all parts are rotated in 90° steps around the origin! This means that it is now possible to mark several parts and rotate them around the same point at the same time!
In addition, the functions for mirroring graphic parts at y-axis (shortcut "M") and flipping at x-axis (shortcut "F") have been implemented.
I have saved the text elements for later!
(or someone else)
2025-02-14 20:31:03 +01:00
Laurent Trinques
77bfe84a4c
One year
2025-01-04 13:37:40 +01:00
plc-user
15b625021c
fix warnings: "control reaches end of non-void function"
2024-04-07 15:17:04 +02:00
Laurent Trinques
e73cf633ce
2023->2024
2024-03-29 10:09:48 +01:00
joshua
ff3b497da2
Element editor : minor fix
...
In the part list widget, the terminal name is empty if terminal haven't
got name.
Now "terminal" is always displayed and if the terminal have a name the
name is appended to "terminal".
Example :
if the terminal name is 24 then the the part list widget show "terminal
: 24"
2024-02-15 22:04:11 +01:00
Laurent Trinques
9afef79629
Update Copyright date
2023-01-01 17:05:57 +01:00
Adrien Allain
ccfb46b354
Implemented QET coding style (replaced 4 space with tab)
2021-09-14 09:35:14 +02:00
Adrien Allain
c640d96bca
* Added the m_rotate_action to qetelementeditor.ui * Adding QAction to qetelementeditor.cpp and connecting it to new slot RotateElementsCommand defined in editorcommands.cpp
...
* Some types of elements need to specialize the setRotation method in order to behave correctly :
- PartTerminal needs to call setOrientation
- PartLine, PartRectangle and PartPolygon need a different rotation center.
2021-09-14 09:35:14 +02:00
joshua
11b8ef927b
Revert "Merge branch 'XMLPropertiesNew'"
...
**Break a lot of thing.**
This reverts commit 1db1800572 , reversing
changes made to 4c563821e8 .
2021-03-11 19:52:50 +01:00
Martin Marmsoler
5d3710c4b2
copy all toXML() from master commit 4b82c3a0c4 into the current branch, because the new concept will be used only for user properties
2021-03-07 10:09:45 +01:00
Martin Marmsoler
058824f29a
move all static xml functions to qetxml
2021-03-06 20:01:31 +01:00
Martin Marmsoler
9d4b90da1a
Add userProperties
2021-03-04 19:18:28 +01:00
Martin
02b7ead041
fix compile issues
2021-02-24 18:48:59 +01:00
Martin
ea364f9c4e
merge
2021-02-23 17:35:55 +01:00
joshua
a1779d1a7a
Rewrite terminaleditor with ui file.
...
Write terminal editor with ui file.
The terminalData::type of a terminal can be edited with the terminal
editor.
2021-02-21 19:40:33 +01:00
joshua
252106178b
Add enum Type to terminalData class
2021-02-21 19:40:32 +01:00
Laurent Trinques
ef58f34c14
Update Copyright date
2021-02-20 12:13:46 +01:00
joshua
2513961cd6
Revert "Update Copyright date"
...
This reverts commit d04bccc384 .
2021-02-06 19:00:48 +01:00
Laurent Trinques
d04bccc384
Update Copyright date
2021-02-06 18:33:42 +01:00
Simon De Backer
d15443cf93
Wip Fix preprocessor on Cmake
2020-12-10 18:49:35 +01:00
Simon De Backer
10c4c3d528
Wip Fix preprocessor on Cmake
2020-12-08 19:57:35 +01:00
Martin Marmsoler
aba16dc936
remove not needed variable
2020-10-20 08:54:56 +02:00
Martin Marmsoler
12e301b887
replace 4 spaces by a tab
2020-10-20 08:54:56 +02:00
Martin Marmsoler
f3097fc537
rebase XMLProperties_New ( c0d9bf9) to master
2020-10-20 08:54:14 +02:00
Martin Marmsoler
73b394527d
replace tabs by 4 spaces
2020-10-20 08:53:43 +02:00
Simon De Backer
c1e93fc442
QT6: QStyleOptionGraphicsItem
2020-10-03 15:48:40 +02:00
Simon De Backer
5d92393ee7
Wrap code for better readability
2020-09-07 22:03:40 +02:00
Simon De Backer
0c00d83b27
Fix some doxygen issues
2020-08-20 21:57:35 +02:00
Simon De Backer
e55d336dc1
Improve code style
2020-08-16 14:25:31 +02:00
Simon De Backer
d4ee161c07
Mod doc set style de same
2020-08-16 11:19:36 +02:00
damianCaceres
3b4237f21f
ElementEditor: partterminal.cpp code style
2020-08-14 01:37:41 +02:00
Claveau Joshua
86766a9090
Element editor : a copied/pasted terminal part have a new uuid.
2020-08-12 15:45:48 +02:00
Simon De Backer
2a53f09a37
Translate documentation + Fix indentation
2020-08-02 12:09:08 +02:00
Laurent Trinques
e10ae8ce2e
Update Copyright date
2020-06-15 17:42:53 +02:00
Martin Marmsoler
587ada643f
try to use TerminalData in Terminal and PartTerminal, sou the code must not be written double
2020-06-14 13:29:25 +02:00
Laurent Trinques
22e619d6b9
Revert pull request #48
2020-06-14 07:35:52 +02:00
Martin Marmsoler
ec52032532
try to use TerminalData in Terminal and PartTerminal, sou the code must not be written double
2020-06-13 16:26:22 +02:00
Laurent Trinques
3e1740cee0
Revert Martin pull request for now, and return to last 7e9fd8df9 commit
2020-06-11 13:19:30 +02:00
Martin Marmsoler
6d782f4abb
try to use TerminalData in Terminal and PartTerminal, sou the code must not be written double
2020-06-11 11:12:05 +02:00
scorpio810
3ed7a4e63b
Minor : update Copyright date
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5705 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-01-13 16:56:12 +00:00
scorpio810
54c85db29c
Minor update Copyright year
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4860 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-20 10:55:49 +00:00
scorpio810
9ff5e3d7dc
Minor
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4682 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-09-03 11:00:48 +00:00
scorpio810
db458143bf
Element Terminale add label
...
Nomenclature Add terminal element
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4681 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-09-02 05:28:26 +00:00
scorpio810
025fa64f67
Minor : update Copyright date
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4481 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-05-13 17:40:36 +00:00
blacksun
d56e6e60b1
terminal editor : use QPropertyUndoCommand instead of ChangePartCommand
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4071 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-07-24 12:08:03 +00:00
scorpio810
eaff56b669
Update copyright date
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3734 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-02-20 14:56:22 +00:00