Commit Graph

2247 Commits

Author SHA1 Message Date
Florian Foinant-Willig
d6958ea1e6 Add locked keyword argument to DocumentObject::addProperty 2025-04-22 23:52:17 +02:00
Pieter Hijma
05364b9eb4 [Doc] Process comments from review
Co-authored-by: Benjamin Nauck <benjamin@nauck.se>
2025-04-22 13:42:50 +02:00
Pieter Hijma
519b78d775 [Doc] Improve documentation PropertyContainer 2025-04-22 13:42:50 +02:00
Pieter Hijma
8956c56235 [Doc] Add documentation top-level namespace App 2025-04-22 13:42:50 +02:00
FilippoR
e165d808f7 App: cmake: add missing Coin_INCLUDE_DIR after #20487 (#20863) 2025-04-21 15:01:03 -03:00
Chris Hennes
f1ef2159ee Merge pull request #20835 from oursland/python-binding-generator-const
python: Make const methods declared const in C++.
2025-04-21 10:58:21 -05:00
Jackson Oursland
8d679b70f0 App: Use the legacy macOS version functionality for About FreeCAD dialog (#20858) 2025-04-18 06:41:18 +02:00
bofdahof
09d08593ed Remove unused code: verbosity 2025-04-17 08:38:38 +02:00
Jacob Oursland
5c251e73ac python: apply const method annotations to impls. 2025-04-16 20:32:04 -07:00
Alex Tran
353085d7e3 App: Running FreeCAD in verbose mode information to reflect Gui -> Help -> About Dialog info (#20487) 2025-04-16 08:29:07 +02:00
Benjamin Nauck
f22f3705db Use Base::toDegrees() instead of manually converting 2025-04-15 07:16:39 +02:00
Benjamin Nauck
21fbf8e539 Use Base::toRadians() instead of manually converting 2025-04-15 07:16:36 +02:00
Bas Ruigrok
7b46ac4cd6 Use longest edge in face for horizontal/vertical alignment (#20374)
* App: Add second direction to getCameraAlignmentDirection()

* Part: Find longest face edge for horizontal/vertical alignment

* Gui: Use longest face edge for horizontal/vertical alignment

* App: Improve horizontal/vertical alignment for Datums and LCS
2025-04-14 11:20:49 -05:00
Kacper Donat
77e40b9747 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
Ladislav Michl
3f025585dc App: Expression: rename lexer and parser files
Rename files according 7d233dc ("Gui: Rename generated lexer files
to match core naming pattern"). Note that C space errors (space
before tabs, spaces on blank lines, etc.) still need to be fixed
manually after regenerating lexer file.
2025-04-08 11:10:50 +02:00
PaddleStroke
2f479e3c95 PartDesign: Fix use of App::Planes to create sketches (#20453) 2025-04-07 17:34:13 +02:00
Kacper Donat
9d97d1c895 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
bofdahof
ccaabc46eb App: remove redundant qualifier from Application class 2025-04-07 11:09:04 +02:00
bofdahof
80a382e126 App: constify variables in Application class 2025-04-07 11:09:04 +02:00
Chris Hennes
4e132ec936 App: Change element name warning to log 2025-04-01 23:57:13 +02:00
Benjamin Nauck
7b7e256e4f App: Add #include <limits> where used 2025-03-31 23:50:19 +02:00
Chris Hennes
95fbd95950 Merge pull request #20496 from hyarion/refactor/cppify-constants 2025-03-29 18:43:40 -05:00
Pieter Hijma
c740b7a027 [Doc] Make naming groups consistent in App
The identifier for groups/topics such as "Document" that have a class
with the samen name are suffixed with "Group", so the identifier becomes
"DocumentGroup".  For groups/topics with no ambiguity the identifier
matches the topic name closely, for example "ExpressionFramework" for
topic "Expression Framework".
2025-03-29 15:11:01 -05:00
Pieter Hijma
8ea31acbd2 [Doc] Add links between topics and relevant items
The documentation has topics, for example topic App which contains
namespace App or topic Document that contains class Document.  This
commit makes sure that the topic has a link to the relevant class or
namespace, whereas the relevant class or namespace refers back to the
topic for a more high-level overview.
2025-03-29 15:11:01 -05:00
Pieter Hijma
032cb79301 [Doc] Improve topics within App
- The location of the documentation is improved (not in the cpp file
  anymore but in core-app.dox).  This prevents cluttering source with
  high-level overviews typical of topic documentation.
- The formatting has been made consistent.
2025-03-29 15:11:01 -05:00
Benjamin Nauck
06aaa1515e Update src/App/ExpressionParser.l
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2025-03-29 20:56:55 +01:00
Benjamin Nauck
d63d0ae366 Update src/App/ExpressionParser.l
Fixes issue in expression parser

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2025-03-29 20:56:30 +01:00
Kacper Donat
d7adbe5f3d Merge pull request #20379 from chennes/baseEliminatePy_GetPath
Replace it with a piece of code that replicates the functionality. Also eliminate the round-trip through char * that this function was using (the final variable is stored as a std::string anyway).
2025-03-29 18:13:08 +01:00
Benjamin Nauck
c77de32b78 App: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:37 +01:00
marioalexis
1c19608799 Base: Add volume charge density unit 2025-03-27 21:13:21 +01:00
Pieter Hijma
b74ad193f0 [Doc] Fix Robot kdl documentation issues 2025-03-24 16:33:54 +01:00
Chris Hennes
bfde624c16 App: Prevent exceptions in destructors
Coverity issues 251332 and 356538. These destructors call methods
that could throw exceptions. Catch them and convert to console
print statements to prevent calls to `terminate()`.
2025-03-23 08:52:44 +01:00
Chris Hennes
5941c7e0ba Base: Remove deprecated Py_GetPath call
Replace it with a piece of code that replicates the functionality. Also eliminate the round-trip through char * that this function was using (the final variable is stored as a std::string anyway).
2025-03-22 18:59:05 -05:00
Stefan Tröger
1296bb825a FEM: Make post object placement work 2025-03-22 23:27:10 +01:00
Stefan Tröger
a5e66bf542 FEM: Switch post groups to extension based system 2025-03-22 23:27:10 +01:00
Chris Hennes
2dbe651626 App: Check for an invalid enum before proceeding 2025-03-22 07:15:15 +01:00
Chris Hennes
53e17174c0 App: Don't use std::forward inside loop
std::forward implies that sometimes its argument will be *moved*, leaving it invalid in the calling code. If that call is inside a loop that tries to reuse the data we have undefined behavior.
2025-03-22 07:15:15 +01:00
tritao
c20cc6804f App: Remove XML binding files.
This PR removes the App XML API bindings files now that we have
equivalent Python binding files.
2025-03-21 16:43:59 +01:00
Florian Foinant-Willig
756e3789ce Fix FreeCAD#19588 2025-03-20 20:14:50 +01:00
tritao
a178e3bb71 App: Modernize Python bindings with new API model. 2025-03-20 11:07:27 +01:00
xtemp09
b6a1a15b64 [App] Fix the crash reported in #20212 2025-03-19 00:23:22 -03:00
Chris Hennes
09cdcee1bb App: Coverity fixes 2025-03-18 15:59:22 +01:00
Chris Hennes
eedb743959 Base: Coverity cleanup 2025-03-18 15:59:22 +01:00
Thomas Gimpel
b86c7c4a8f App: reverted commit 8ff4b1b and improved comments in order to fix the MacOS build (#20068) 2025-03-17 20:23:01 +01:00
tritao
cdab9c7837 CMake: Cleanup targets with transitive dependencies 2025-03-17 12:12:06 +00:00
Chris Hennes
9a77120e82 Merge pull request #20142 from bofdahof/ranges
Apply C++20 std::ranges (mainly to std::find)
2025-03-17 03:08:27 -05:00
Chris Hennes
9e0d77d7f4 Merge pull request #19583 from hyarion/refactor/base-type
Refactor Base::Type
2025-03-17 00:03:22 -05:00
Chris Hennes
e0aa5f3c30 Merge pull request #19917 from tritao/refactor-document-recompute
Core: Refactor code around document and feature recompute
2025-03-16 23:59:12 -05:00
bofdahof
59c3bbe5c2 App: apply std::ranges 2025-03-16 17:14:38 -05:00
Chris Hennes
44908ad721 Merge pull request #19428 from tritao/base-tracy-profiler
Base: Add Tracy frame profiling support.
2025-03-14 04:12:05 +00:00