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
Ladislav Michl
7218e7b030
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
5639728e8a
PartDesign: Fix use of App::Planes to create sketches ( #20453 )
2025-04-07 17:34:13 +02: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
bofdahof
7013f913b6
App: remove redundant qualifier from Application class
2025-04-07 11:09:04 +02:00
bofdahof
6b5030f391
App: constify variables in Application class
2025-04-07 11:09:04 +02:00
Chris Hennes
837f6fa788
App: Change element name warning to log
2025-04-01 23:57:13 +02:00
Benjamin Nauck
27f5699588
App: Add #include <limits> where used
2025-03-31 23:50:19 +02:00
Chris Hennes
e7156aa326
Merge pull request #20496 from hyarion/refactor/cppify-constants
2025-03-29 18:43:40 -05:00
Pieter Hijma
cf1a5c5c18
[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
1ba6a40472
[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
ec4ea7f8d3
[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
8145be8c2b
Update src/App/ExpressionParser.l
...
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org >
2025-03-29 20:56:55 +01:00
Benjamin Nauck
1dc34ffcd4
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
f5199145a4
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
81e0b408fa
App: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:37 +01:00
marioalexis
406a834a6d
Base: Add volume charge density unit
2025-03-27 21:13:21 +01:00
Pieter Hijma
aa768e2a90
[Doc] Fix Robot kdl documentation issues
2025-03-24 16:33:54 +01:00
Chris Hennes
867e4507cc
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
f0fc6ccde1
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
0a1cc21b5c
FEM: Make post object placement work
2025-03-22 23:27:10 +01:00
Stefan Tröger
a65a7feb87
FEM: Switch post groups to extension based system
2025-03-22 23:27:10 +01:00
Chris Hennes
00e648220a
App: Check for an invalid enum before proceeding
2025-03-22 07:15:15 +01:00
Chris Hennes
c252f40b6f
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
176f91eea8
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
7bf1b5d787
Fix FreeCAD#19588
2025-03-20 20:14:50 +01:00
tritao
e1c51becdc
App: Modernize Python bindings with new API model.
2025-03-20 11:07:27 +01:00
xtemp09
6cfec14545
[App] Fix the crash reported in #20212
2025-03-19 00:23:22 -03:00
Chris Hennes
c1ada6bc40
App: Coverity fixes
2025-03-18 15:59:22 +01:00
Chris Hennes
d850e87567
Base: Coverity cleanup
2025-03-18 15:59:22 +01:00
Thomas Gimpel
dbfc0b47b6
App: reverted commit 8ff4b1b and improved comments in order to fix the MacOS build ( #20068 )
2025-03-17 20:23:01 +01:00
tritao
6c2c6847eb
CMake: Cleanup targets with transitive dependencies
2025-03-17 12:12:06 +00:00
Chris Hennes
5f623390fb
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
4fcdac28fb
Merge pull request #19583 from hyarion/refactor/base-type
...
Refactor Base::Type
2025-03-17 00:03:22 -05:00
Chris Hennes
b89ad30bc0
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
4a16ea41a7
App: apply std::ranges
2025-03-16 17:14:38 -05:00
Chris Hennes
dced463dc6
Merge pull request #19428 from tritao/base-tracy-profiler
...
Base: Add Tracy frame profiling support.
2025-03-14 04:12:05 +00:00
Joao Matos
7ae14d6bd5
Base: Add build support and instrumentation for the Tracy profiler.
2025-03-14 03:41:30 +00:00
Chris Hennes
bfd1fa47d8
Merge pull request #20049 from hyarion/fix/ppa
...
Refactor static type checks
2025-03-10 16:53:00 +00:00
Chris Hennes
ae01fcc3de
Merge pull request #20064 from bofdahof/application-remove-some-using-namespace
...
[App] Application remove some using namespace
2025-03-10 16:42:28 +00:00
Benjamin Nauck
ad59054918
Refactor static type checks
2025-03-09 17:50:20 +01:00
bofdahof
2d3f0d714d
cleanup commented lines
2025-03-08 13:37:46 +10:00
bofdahof
ae9eec20a6
remove using namespace Base::FileInfo
2025-03-08 13:37:46 +10:00
bofdahof
65619fae39
remove using namespace boost::program_options
2025-03-08 13:20:32 +10:00
bofdahof
00173ebe02
remove using namespace std
2025-03-08 13:18:06 +10:00
bofdahof
f66561b23a
remove using namespace boost
2025-03-08 13:14:35 +10:00
bofdahof
00ce73dc45
remove using namespace Base
2025-03-08 13:13:38 +10:00
Chris Hennes
50e80f4a03
Merge pull request #20052 from mosfet80/CleanPython
...
removed old python code <3.10
2025-03-08 01:10:58 +00:00
Chris Hennes
a028d8d299
Merge pull request #20058 from tritao/fix-app-document-main-doc-load
...
App: Fix regression for document creation requests coming from the main document.
2025-03-07 23:28:27 +00:00
mos
c70a7933e6
Removed old Python code <3.10
2025-03-07 16:34:08 -06:00