Commit Graph

38 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
25c3ba7338 All: Reformat according to new standard 2025-11-11 13:49:01 +01:00
Markus Reitböck
6ef07bb358 Gui: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
should be considered an optimization, not a requirement. In particular, do not explicitly include a
precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
generated precompile header on the compiler command line instead. This is more portable across
the major compilers and is likely to be easier to maintain. It will also avoid warnings being
generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-14 09:47:03 +02:00
Ladislav Michl
8e7e9c4bbc Gui: check for null document name
Make the check for null document name more obvious.
2025-09-10 10:08:04 +02:00
Kacper Donat
0677982c8b Gui: Fix segfault in ViewProviderPlane::getRole 2025-09-10 06:16:02 +02:00
Kacper Donat
b942275957 Gui: Make datum planes bigger 2025-09-08 23:16:29 +02:00
Chris Hennes
64d658e38a FreeCAD: Compiler warning fixes 2025-03-19 10:13:34 +01:00
wmayer
72cfd14768 Gui: const correctness in ViewProviderPlane 2024-12-30 17:44:04 +01:00
PaddleStroke
e977eb49e3 Core datums: Rework to improve new sketch 2024-12-30 09:05:44 +01:00
PaddleStroke
396963006b Core: SoShapeScale fix weird scaling on viewport resize. See https://github.com/FreeCAD/FreeCAD/issues/18382#issuecomment-2527623758 2024-12-10 17:15:13 +01:00
wmayer
ce55d6be75 Gui: Rename ViewProviderDatum::getRoot() to ViewProviderDatum::getDatumRoot()
Before the change the compiler raised the warning: 'Gui::ViewProviderDatum::getRoot' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
In the base class the method getRoot() is declared as const while in ViewProviderDatum it's not and that's why it's considered as an overloaded method.
However, this signature causes two problems:
1. In the client code it's not always clear which version of getRoot() should be called
2. It violates const-correctness

So, trying to declare the method ViewProviderDatum::getRoot() as const it now overrides the method of the base class (and fixes the warning) but
this doesn't lead to the expected result: See https://forum.freecad.org/viewtopic.php?p=796064#p796064

The other option is to rename the method. And this gives the expected result now.
2024-12-10 12:49:42 +01:00
PaddleStroke
b7f1a0c150 ViewProviderOrigin: Renamed to ViewProviderCoordinateSystem 2024-11-27 12:15:53 +01:00
PaddleStroke
19702dcb21 Core: Add App::LocalCoordinateSystem.
Most of App::Origin is moved into this sub class of App::Origin.
Add App::Point. Change graphics of the planes/axis.
Remove scale-by-content behavior and make it fixed size on screen.
2024-11-26 17:36:02 +01:00
PaddleStroke
aa2e4ca1cb Rename ViewProviderOriginFeature to ViewProviderDatum 2024-11-26 15:36:48 +01:00
xtemp09
a710eb23c2 [GUI] Fix memory leak in ViewProviderPlane.cpp 2023-10-09 16:27:39 +02:00
wmayer
c016f1c1fb Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
Ronny Standtke
ddb080995b Origin plane: make plane faces unpickable 2023-05-05 03:09:36 -04:00
Ronny Standtke
ad5e702366 Origin plane: add semi transparent face 2023-05-05 03:09:36 -04:00
berniev
75acacd1b7 Gui: Use auto and range-based for (#7481)
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto. 
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
Uwe
8dfe91204b [Gui] ViewProviderPython* etc.: remove unused includes 2022-03-06 02:24:52 +01:00
0penBrain
e4bc11d973 [GUI] Allow origin plane/axis selection with entire label bounding box 2022-01-20 00:32:24 +01:00
vosk
4bd5c2669d [Part] - Fix memory leaks 2021-01-28 15:45:00 +01:00
luz paz
298c677873 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
luz.paz
f11783a498 src/Gui: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Gui` files
2019-12-25 11:39:17 +01:00
Stefan Tröger
70692cddb4 Update Group/Part Icons and copy/paste behaviour 2017-09-09 16:55:55 +02:00
Alexander Golubev
9753f27064 Gui: refactor Plane's and Line's ViewProviders and add yet another one for OriginFeature
- Share the code of Gui::ViewProviderPlanes and Gui::ViewProviderLine
   in Gui::ViewProviderOriginFeature
 - Add support for coloring and transparencing the OriginFeatures by
   ViewProviderGeometryObject means.
2016-04-12 18:12:18 +02:00
Stefan Tröger
2a5d800940 fix origin plane and line viewprovider
master changed the highlight code for viewproviders, needed an adjustement after rebase
2016-04-12 18:12:18 +02:00
Stefan Tröger
c1928f0b7b less intrusive base plane colors 2016-04-12 18:12:06 +02:00
Stefan Tröger
83ab03a491 move feature pick dialog into the task view 2016-04-12 18:12:05 +02:00
Stefan Tröger
fcdb80eab3 Prevent origin and base entities from transforming 2016-04-12 18:12:05 +02:00
Stefan Tröger
e59b3cef4b highlight planes 2016-04-12 18:12:05 +02:00
Stefan Tröger
05f9ee5af2 make hidden base plane parts dashed 2016-04-12 18:12:05 +02:00
Stefan Tröger
8134cf3cf4 Adopt planes to Part size 2016-04-12 18:12:04 +02:00
jriegel
271bb65cbd Assembly: Plane ViewProvider Size property and smaller standard size 2016-04-12 18:12:02 +02:00
jrheinlaender
a6431ee5cf Improved bounding box calculation for datum feature display size 2016-04-12 18:11:49 +02:00
jriegel
4f0f3e8c94 implementing Plane visual 2016-04-12 18:11:44 +02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
27863408c9 + remove references to SoFCSelection where not needed 2015-05-20 19:24:12 +02:00
jriegel
0215757e79 Add all base system changes from the Assembly branch 2013-02-10 20:02:33 +01:00