Commit Graph

18 Commits

Author SHA1 Message Date
Markus Reitböck
93830929ae Measure: 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-23 22:39:35 +02:00
hlorus
e4238f58e1 Measure: Fix delta label text size scaling (#21467)
* Measure: Fix delta label font size

- Add font size field to ViewProviderMeasureBase which connects to other fields
- Remove dead code in DimensionLinear which internally is using FrameLabel
- Connect FrameLabels's fontsize property to DimensionLinear's property

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-05-20 12:10:35 +02:00
Kacper Donat
b300c80b90 Base: Use explicit pointer syntax for freecad_cast (#20694)
* Base: Use explicit pointer syntax for freecad_cast

This aligns our custom cast with other casts

* All: Use explicit pointer syntax for freecad_cast
2025-04-11 14:11:33 +00:00
Kacper Donat
35a9673a75 Base: Rename Base::freecad_dynamic_cast into freecad_cast
This is to make it shorter and easier to use. QT does the same thing
with their qobject_cast.
2025-04-07 10:32:28 -05:00
Ladislav Michl
2ea8a633ac Base: Quantity: return std::string 2024-12-23 17:48:42 +01:00
luzpaz
ed40de3e23 Fix various typos
Found via codespell.
2024-11-15 20:18:46 +01:00
pre-commit-ci[bot]
0797cd2f00 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-25 11:42:43 +00:00
Chris Hennes
c29cb8464d Correct typo 2024-07-10 08:08:15 -05:00
hlorus
3389251599 MeasureGui: Use SoFrameLabel to display delta dimensions in MeasureDistance 2024-07-01 18:14:33 +02:00
hlorus
29a7fdec1b MeasureGui: Add colon after symbol of delta dimensions 2024-07-01 18:14:24 +02:00
hlorus
6257fe266c MeasureGui: Show delta symbol in front of component dimensions 2024-07-01 08:25:03 -05:00
hlorus
a1316567d2 MeasureGui: Optionally show delta components in VPMeasureDistance 2024-07-01 08:25:03 -05:00
hlorus
ed8c495103 MeasureGui: Add back DimensionLinear node kit 2024-07-01 08:25:03 -05:00
hlorus
b42c3aade0 Remove Std_MeasureDistance 2024-06-11 17:57:01 +02:00
hlorus
039242b964 [Measure] Make VP MeasureDistance only depend on properties 2024-06-11 17:57:01 +02:00
hlorus
806610743d [MeasureGui] Make initial measurement placement zoom independent 2024-05-27 11:07:19 -05:00
hlorus
b3ea58a503 MeasureGui: Add icons
Co-Authored-By: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
2024-05-14 17:55:06 +02:00
hlorus
36d16b2243 [Measure] Add features, viewproviders and preferences for unified measurement facility 2024-04-29 09:27:22 -04:00