achim
29c362fe4c
Better handling of conductors when moving
...
For conductors, the setPos() function can result in negative
coordinates.
For unknown reasons, this can lead to an offset in the scene coordinate
system, resulting in a free space above and to the left of the drawing
frame. This free space could not be removed.
It is better to set the conductors using the conductor::updatePath()
function. If the conductor text has been moved by the user, the new
position of the text must be calculated.
It is important to position the elements first and then 'connect' the
conductors.
Setting the conductor position via setPos() was done in elemntsmover.cpp
(corrected here) and in Diagram::fromXML (corrected in the commit
'Better handling of conductors when creating from XML').
2025-08-14 22:03:05 +02:00
Laurent Trinques
77bfe84a4c
One year
2025-01-04 13:37:40 +01:00
plc-user
4c52c8c9d0
correct indentations / whitespace
2024-04-10 10:28:58 +02:00
Laurent Trinques
e73cf633ce
2023->2024
2024-03-29 10:09:48 +01:00
joshua
539e0a7a49
Merge branch 'terminal_strip'
...
* terminal_strip:
Terminal strip item can saved / loaded to .qet file
See previous commit...
Move terminal strip drawer class in is own file
Fix wrong use of QStringLiteral and QLatin1String
Double click a TerminalStripItem open the editor
Minor change about checkable QAction of QetDiagramEditor
Minor : corrects a minor aesthetic defect when unbridge terminals
Revamp code
Add and move terminal strip item are now managed by undo command
TerminalStripItem : Draw terminal bridge
Terminal strip item can be added to diagram
Minor : add QGIUtility namespace
2023-01-02 19:40:08 +01:00
Laurent Trinques
9afef79629
Update Copyright date
2023-01-01 17:05:57 +01:00
luz paz
a76e5446aa
Fix various typos in source documentation and comments
...
Found via `codespell`
2022-12-04 13:30:01 +01:00
joshua
300440454e
Fix crash introduced in commit 5a057b1c2090cdb0ccd74fcb16705580fd9dfda1
2022-11-16 19:06:56 +01:00
joshua
937afea351
Minor : check if pointer is valid
2022-11-14 20:45:16 +01:00
Laurent Trinques
3341d65a89
Workaround to fix crash when moving element by arrows keys
...
@driver_item item moved by mouse and don't be moved by Element mover
Disable position x, y in statusBar when moving elements by arrows keys
2022-11-12 12:14:27 +01:00
joshua
9e1ef8c42f
Revamp code
...
-Move MoveElementsCommand class from diagramcommands file to
movegraphicsitemcommand file.
-Rename the to class MoveGraphicsItemCommand.
-Minor code change to make it more modern.
2022-11-08 22:06:50 +01:00
joshua
7fede2277f
Add and move terminal strip item are now managed by undo command
2022-11-08 19:20:32 +01:00
joshua
5a057b1c20
Minor
...
More modern c++
2022-11-08 18:17:55 +01:00
joshua
57929e6e38
Minor.
...
ElementsMover class :
Rename some member variable and add some indentation.
2022-11-05 13:36:46 +01:00
joshua
ae8c20bb04
Minor
2022-11-05 13:28:39 +01:00
Laurent Trinques
ad97559b7c
Try to fix FTBFS on Debian Bullseye
2022-11-04 21:34:24 +01:00
Laurent Trinques
e3cc89b546
Try to fix FTBFS on Debian Bullseye
2022-11-04 21:26:08 +01:00
joshua
0ae0ce04cd
Show x:y pos when drag element in the status bar
2022-11-04 20:25:49 +01:00
Laurent Trinques
ef58f34c14
Update Copyright date
2021-02-20 12:13:46 +01:00
joshua
0c4f87bd76
Replace AddItemCommand class by AddGraphicsObjectCommand
...
The class is the same except the name and the use of QPointer to avoid
segfault with deleted QGraphicsObject.
2021-02-07 16:20:55 +01:00
joshua
2513961cd6
Revert "Update Copyright date"
...
This reverts commit d04bccc384aa8b9dc16e4432ac72ccb787b2508b.
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
10c4c3d528
Wip Fix preprocessor on Cmake
2020-12-08 19:57:35 +01:00
Simon De Backer
36dbe65457
Add TODO compile var + Fix doxygen issue
...
You can make your code warn on compile time for the TODO's
In order to do so, uncomment the following line. in pro file
DEFINES += TODO_LIST
2020-09-24 17:01:33 +02:00
Simon De Backer
5d92393ee7
Wrap code for better readability
2020-09-07 22:03:40 +02:00
Simon De Backer
41cef49453
Improve code style, Wrap code for better readability
2020-08-16 14:26:40 +02:00
Simon De Backer
d4ee161c07
Mod doc set style de same
2020-08-16 11:19:36 +02:00
Laurent Trinques
e10ae8ce2e
Update Copyright date
2020-06-15 17:42:53 +02:00
Simon De Backer
362509cb38
fix deprecated warning QSet<T>::toList() Use values() instead.
...
warning: ‘QList<T> QSet<T>::toList() const [with T = Conductor*]’
is deprecated: Use values() instead. [-Wdeprecated-declarations]
QT_VERSION 5.15.0
GCC 64bit
2020-05-28 15:54:53 +02:00
Claveau Joshua
aaccc33e7b
Minor fix: conductor text don't move with element.
...
When move two elements connected by a conductor, the conductor text
don't follow the movement when he is previously moved by the user.
2020-03-22 20:19:41 +01:00
blacksun
4bbf086a88
Improvement : minimize the unwanted gap of the top right folio of the view
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5819 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-04-02 17:36:32 +00:00
blacksun
fae3cf33bd
Fix behavior when use arrow key with dynamic element text item and element text item group
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5789 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-16 11:34:52 +00: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
30bee81432
Revert r5449 and disable r5452 momentary : Load time from elements is
...
very slow
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5461 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-30 15:24:29 +00:00
scorpio810
b97b01d63c
Apply clang-tidy's modernize-use-auto
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5449 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-19 16:27:20 +00:00
blacksun
9d2124f593
Multipaste dialog : add 'autonum pasted conductors' check box
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5339 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-23 13:50:36 +00:00
blacksun
3228f3e5db
Multi paste dialog : add a check box for allows auto connection of the pasted elements.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5331 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-04-12 16:24:44 +00:00
blacksun
a7917bb5bb
Remove the class element text item.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5276 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-03-25 14:33:49 +00:00
blacksun
292c45166a
Element text item group : Add new property for edit the adjustment of the space between texts
...
Dynamic element text item editor : Add new entry for edit the alignment, rotation and vertical adjustment of a group
Element Mover : Minor, remove the group texts from the moved content
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5165 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-12-10 14:31:27 +00:00
blacksun
89c019a10e
Texts group item can be rotate.
...
The keybord shortcut for texts group alignment change. Now it's ctrl + arrow-left/up/right
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5141 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-12-05 20:51:54 +00:00
scorpio810
9f9b127c04
Modernize-use-nullptr refactors code
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5008 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-05 02:06:59 +00:00
blacksun
3ef55906a4
First step for the dynamic element text : Now user can add directly from the diagram editor an editable text of an element.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5005 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-08-03 17:36:08 +00:00
scorpio810
41659fa6fd
Revert r4900
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4902 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-05 16:18:50 +00:00
scorpio810
6422dd096f
Replace foreach function by for, please try and report problem
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4900 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-04 21:43:23 +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
blacksun
7ab0115c62
Conductor : formula and text is now two different things.
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4799 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-12-06 19:49:18 +00:00
blacksun
c50e8cd9ae
Use QUndoCommand with childs, as recommended by Qt documentation
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4740 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-10-13 18:00:31 +00:00
dfochi
230700f845
Conductor Autonum now works with variables. Folio Autonumberings added to conductor autonum
...
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4674 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-08-29 15:37:42 +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
d77011acfb
At creation of a new conductor, if every properties of conductors at the same potential is equal,
...
we use this properties for the new conductor, instead of the default properties.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4126 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-08-17 17:01:39 +00:00