Commit Graph

17 Commits

Author SHA1 Message Date
Andre Rummler 6b577ee757 Add editable resize/rotate/skew handles for shapes and images
Shapes and images can now be resized, rotated, and skewed directly
on the canvas, not just moved. Both share one small transform
struct (rotation, then skew, then scale, anchored on a movable
pivot) and one handle widget, so a corner drag, an edge skew, or
grabbing the rotate handle behaves the same way and runs through
the same matrix math everywhere, instead of every item type
reinventing its own.

Shapes also gained a proper pen tool (bezier paths, corner/smooth/
symmetric nodes), arc support, and mirroring. Images gained
non-destructive cropping and colour-keyed transparency, both
remember their own settings, so reopening the dialog picks up
where you left off instead of starting over.

Properties dialogs for both were extended to match (position,
size, angle, skew), with undo/redo wired through for every handle
drag.

Old XML files can read easily as the transformation is only added
if needed and the old syntax is still used and understood if it is
not needed.
2026-09-05 15:48:28 +02:00
Lars Biskupek b2782bc460 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-22 13:47:39 +01:00
blacksun 47b78bfec1 use KColorButton instead of QPushButton when needed
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5787 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-15 18:07:57 +00:00
blacksun 504636cb79 Add KColorButton in the shape properties editor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5757 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-04 15:42:53 +00:00
blacksun aaba90419f Diagram editor : dock used to edit the shape item, can now edit several items in the same time
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5756 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-04 15:34:42 +00:00
scorpio810 1137318384 Basic shape add new CustomDashLine style with
Dash Pattern (<< 10 << 10 );


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5194 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-12-29 23:13:35 +00:00
blacksun 183ef362ba Shape item propertie widget : hide filling group box when shape is a line or an opened polyline
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4344 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-02-15 16:15:05 +00:00
blacksun a6b3980f92 QetShapeItem : shapes can be filled with some patterns and colors
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4315 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-01-12 14:02:34 +00:00
scorpio810 f9f06e60b4 Restore m_size_dsb setRange values
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4306 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-01-03 18:35:51 +00:00
scorpio810 d96bf1f9e8 Bug fix : change m_size_dsb setRange values
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4304 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-01-03 16:59:29 +00:00
blacksun 07b81e4106 QetShapeItem : add color and improve the GUI,.
the xml saving is break from previous version. 


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4303 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-01-03 13:45:30 +00:00
scorpio810 fd4cce9a6f Minor : add accelerated and wrapping mode cursor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4298 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-01-01 04:17:45 +00:00
scorpio810 6297d75276 Refresh widget
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4297 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-01-01 03:01:21 +00:00
scorpio810 396e2cf0f2 Improve Basic shapes Properties size function replace QSpinBox by QDoublespinBox, int to double
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4296 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-12-30 20:04:17 +00:00
scorpio810 917f6dadda Improve Basic shapes Properties size function
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4294 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-12-30 13:47:21 +00:00
blacksun 806c7fd5e3 Qet shape item properties widget : remove the scale widget
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4044 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-07-12 10:28:59 +00:00
blacksun 9c6d362637 QetShapeItem can be edited via the properties editor dock
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4024 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-06-21 20:16:41 +00:00