Commit Graph

157 Commits

Author SHA1 Message Date
Chris Hennes
cf84c171e6 Merge pull request #10978 from FlachyJoe/modernize-type-check
Modernize type and derived type checking
2023-11-06 10:44:32 -06:00
bgbsww
8baf75af84 Fix #11032 flickering when switching to Part Design
* Remove unneeded timer on taskview updates to fix #11032

* Remove obsoleted class member
2023-11-02 16:32:32 +01:00
Chris Hennes
cbd0ef5975 Merge branch 'main' into modernize-type-check 2023-10-25 16:07:28 -05:00
Paddle
7f1fe0a3f7 EditableDatumLabel : Change the 'invisibleToMouse' to 'visibleToMouse' to avoid double negation.
Also add parameter to startEdit to set this setting. Defaulting to false. So that we don't have to set manually again and again in tool settings.
2023-10-24 19:27:10 +02:00
Florian Foinant-Willig
773c701eec Core: modernize type checking 2023-10-23 18:07:07 +02:00
Zheng, Lei
bf9584a90b Gui: add support for transparent overlay docking widget 2023-10-11 09:58:53 +02:00
wmayer
56820718c5 Core: Revert superfluous changes made with PR #9521 2023-10-09 15:06:45 +02:00
AgCaliva
1f9bae0de7 Merge branch 'master' into User/Document/Feature_level_units_selection_#7746 2023-09-25 22:58:23 -03:00
wmayer
fdc44d50ef Gui: fixes #10724: TaskView gets truncated 2023-09-21 19:11:45 -05:00
AgCaliva
dacb2c43a4 Merge branch 'master' into User/Document/Feature_level_units_selection_#7746 2023-09-18 14:01:25 -03:00
wmayer
da65485979 Gui: fix clang-tidy warnings in TaskImage 2023-09-17 19:11:31 +02:00
Paddle
a6971d376c TaskImage: remove the spinbox/sodatumLabel gestion and use the global EditableDatumLabel instead. 2023-09-17 13:05:53 +02:00
AgCaliva
4a504437d3 merge master via cli 2023-09-16 02:12:58 -03:00
AgCaliva
280e5e3987 Fixing DOMDocument redefinition 2023-09-16 00:38:41 -03:00
luzpaz
760fac5d82 Fix typos 2023-09-14 20:53:04 -05:00
wmayer
c016f1c1fb Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
wmayer
54bb9c9c62 Gui: modernize C++: return braced init list 2023-08-18 00:36:24 +02:00
wmayer
2725c3a54f Gui: modernize C++: use range-based for loop 2023-08-14 19:42:18 +02:00
wmayer
d150fa7164 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
68d22d864b modernize C++: move from boost::bind to std::bind 2023-08-08 17:36:13 +02:00
wmayer
e72da4d4c4 Gui: modernize C++: use override 2023-08-04 17:09:53 +02:00
luzpaz
129d5882a7 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
wmayer
963322876f Gui: fix several pending issues of image scale:
* refactor some functions
* do not use mdi view of active document as parent for spin box because this can be the wrong widget
* fix compiler warnings of unused variables
* fix typo
* handle Qt::Key_Return in event filter
* fix lint error
2023-04-20 16:52:06 +02:00
Paddle
b3e1d3dc6a TaskImage: Fix segfault when doc closed before taskview is dismissed. 2023-04-17 16:03:11 +02:00
Paddle
ba1ed19643 TaskImage: Remove 'outside picture' mode. 2023-04-17 15:10:13 +02:00
Paddle
7b3069868d TaskImage: Simplify restore & updatePlacement. It will make it easier if we want to enable other planes than XY XZ ZY. 2023-04-12 18:52:04 +02:00
Paddle
b10a7a65db TaskImage: finish fixing when imageplane is in transformed part. 2023-04-12 18:23:35 +02:00
Paddle
e168be3397 TaskImage: try to fix bug when in Part container. 2023-04-12 17:50:59 +02:00
Paddle
6487c748e6 TaskImage : fix X Y distances that were not taken into account for SoDatumLabel transform. 2023-04-12 17:50:42 +02:00
Paddle
08d87644a9 Task image. replace {} with () in the ctor for consistency 2023-04-12 17:49:54 +02:00
Paddle
c90dc541cd TaskImage: fix X,Y distance that were reversed on XZ and ZY. 2023-04-12 17:49:18 +02:00
Paddle
c9c9920531 TaskImage: Fix enter doesn't work. 2023-04-12 16:48:08 +02:00
Paddle
a8f65156db TaskImage: fix issues 2023-04-12 16:48:08 +02:00
Paddle
46a9d89e4b TaskImage: add missing headers 2023-04-12 16:48:08 +02:00
Paddle
3be327d29e TaskImage: Fix Cancel on Esc and final ui adjustments. 2023-04-12 16:48:08 +02:00
Paddle
33614f4c02 TaskImage : Remove OK and Cancel buttons and others 2023-04-12 16:48:07 +02:00
Paddle
31b2cf68d6 TaskImage : Add OK and Cancel buttons. 2023-04-12 16:48:07 +02:00
Paddle
0acbb881cb TaskImage: rework interactive scaling tool. 2023-04-12 16:48:07 +02:00
Paddle
9172157d40 TaskImage: use SoDatumLabel instead of basic line. 2023-04-12 16:48:07 +02:00
Paddle
1071fb1cdd 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
457fac38dd Gui: fix -Wclazy-connect-by-name 2023-04-05 00:44:13 +02:00
wmayer
fa3ee34280 Gui: use an annotation node so that line is always rendered on top of the scene 2023-04-01 14:53:05 +02:00
wmayer
43ee59c82f Gui: interactive image scaling:
* add option to allow points outside of image
* after starting the interactive scaling allow to cancel it immediately
2023-03-31 19:40:50 +02:00
wmayer
607e53453d Gui: implement interactive image scaling 2023-03-31 19:40:50 +02:00
wmayer
07cf291516 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
649e5a673c Gui: fix image handling:
* Change FileHandlder to accepts all image format supported by Qt
* Make sure image object is not touched after accepting or rejecting changes
* Make option 'Keep aspect ratio' the default
* Fix WhatThis text of command
2023-03-22 17:55:55 +01:00
wmayer
788fe1f139 Gui: add function to scale image 2023-03-22 16:24:51 +01:00
wmayer
3c9392ce8b Gui: allow to change orientation of image plane, implement two-side rendering 2023-03-22 16:15:35 +01:00
Alexander Golubev
992dec2c6b Gui: Prevent UiLoader from loading 3rd-party Qt plugins.
Due to a flaw in the QUiLoader, UiLoader were loading all designer plugins
it can find in QApplication::libraryPaths(). This in general a bad
practice and leads to bugs due to some plugins may perform some unexpected
actions upon load which may interfere with FreeCAD's functionality.

To avoid such problems reset the libraryPaths before creation of a
UiLoader object.

Also move setLanguageChangeEnabled(true) into constructor due to it's
called every time it's being instanced anyway.

See: https://github.com/FreeCAD/FreeCAD/issues/8708
2023-03-18 17:59:50 +01:00
wmayer
4a390ddeb6 PD: refactor the constructor of TaskDialogPython 2023-02-24 16:35:51 +01:00