Commit Graph

12 Commits

Author SHA1 Message Date
LemonBoy
395797d018 Avoid overriding ImagePlane size during import
When copying&pasting an ImagePlane whose ImageFile property is a
PropertyFile we'd get two updateData notifications, one when the
property value is restored (which doesn't do much as the file doesn't
exist yet) and another when the RestoreDocFile method is invoked.

The solution is simple, do not set Xsize and Ysize when importing the
object as we expect the properties to already have the correct values.

Closes #11036
2024-02-12 11:38:18 -06:00
wmayer
948cbfccd9 modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
b6951d2bb6 Gui: when loading SVG images get default size and keep aspect ratio
See forum: https://forum.freecad.org/viewtopic.php?p=680800#p680800
2023-05-10 11:59:44 +02:00
Paddle
9ad3f94265 Image: Merge taskboxes into one 'Image plane Settings'
- Allow user to position the image with a X / Y distance.
- Allow user to rotate the image on its plane.
- Adds Transparency.
- Image sizes change from PX to System unit as PX don't make sense for the user.
2023-04-12 16:48:07 +02:00
wmayer
1b99ad1560 Gui: fix regression when loading an image file 2023-03-31 19:40:50 +02:00
wmayer
e26fc0485e Gui: do not change size properties when loading an image 2023-03-28 11:45:44 +02:00
wmayer
a2579ebb92 Core: support to load old project files containing image planes
See forum: https://forum.freecad.org/viewtopic.php?p=670545#p670545
2023-03-26 13:51:07 +02:00
wmayer
5871c2bb46 Gui: add function to scale image 2023-03-22 16:24:51 +01:00
wmayer
9dc2eefca8 Gui: set size of plane from loaded image file 2023-03-22 16:16:30 +01:00
wmayer
9b38980b7a Gui: allow to change orientation of image plane, implement two-side rendering 2023-03-22 16:15:35 +01:00
wmayer
ea93a2f76d Gui: add image icon resources 2023-03-22 16:08:09 +01:00
wmayer
13a6c3d2dc Core: move image plane to core system 2023-03-22 13:44:00 +01:00