drwho495
3ee1e3335f
Toponaming: Remove updateElementReferences call in PropertyLinkSub ( #23263 )
...
* remove updateElementReferences call in PropertyLinkSub
* Retrigger checks
* update element refs after the document has restored
2025-08-25 21:39:40 -05:00
drwho495
a43e712700
Toponaming: Update element references of PropertyLinks everytime the program needs to access the values ( #22785 )
2025-08-18 11:11:49 -05:00
Chris Hennes
952485dcbb
Merge pull request #19907 from benj5378/getAttribute
...
Base: make getAttribute template
2025-05-12 10:39:55 -05:00
Benjamin Bræstrup Sayoc
2b6e73c29d
Everywhere: clean up getAttribute conversions
2025-05-09 15:54:57 +02:00
Benjamin Bræstrup Sayoc
2b1aec0041
Base: make getAttribute template
2025-05-09 15:54:57 +02:00
Pieter Hijma
9cbea91d60
Doc: Improve App::ObjectIdentifier docs
2025-05-07 13:34:25 +02:00
bofdahof
ba2c2ca5ad
Console: rename PascalCase named methods to camelCase
2025-05-06 17:50:21 +02:00
Ladislav Michl
9683cf1e4f
Base: rename Exception's PascalCase methods to camelCase
2025-05-05 23:50:01 +02:00
Benjamin Nauck
02d095f6e2
App: use contains() instead of count() where possible
2025-05-03 22:19:51 +02:00
Kacper Donat
ad3420e126
App: Use freecad_cast whenever possible
2025-04-26 14:23:25 +02: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
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
Chris Hennes
4e132ec936
App: Change element name warning to log
2025-04-01 23:57:13 +02: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
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
xtemp09
b6a1a15b64
[App] Fix the crash reported in #20212
2025-03-19 00:23:22 -03:00
Joao Matos
6797cfdfbe
App: Remove old DAG implementation.
2025-02-28 14:32:32 +00:00
Kacper Donat
cc2efa90f8
Base: Add isNullOrEmpty string helper
...
This adds isNullOrEmpty string helper that cheks if string is... well
null or empty. It is done to improve readability of the code and better
express intent.
2025-02-21 15:04:43 +01:00
Benjamin Nauck
6f535f19fb
Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
...
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
wmayer
fadfc7e270
App: Apply clang format (part 2)
2024-11-21 21:17:42 +01:00
bgbsww
e0e1cb565a
Correctly build reference from selection subname
2024-09-24 22:01:14 -04:00
bgbsww
e4a509cc77
Toponaming: Remove all FC_USE_TNP_FIX protected old code
2024-08-26 11:12:48 -05:00
bgbsww
077f3b3ab4
Toponaming: Clean code, apply remark recommendations and Tweak tests
2024-07-22 12:55:23 -04:00
bgbsww
ee72afc51d
Refactor all element name pairs into clearer struct names - renames
2024-07-21 20:32:58 -04:00
bgbsww
678f35fda2
Toponaming: Cleanup
2024-07-21 17:40:42 -04:00
bgbsww
19e450a667
Refactor all element name pairs into clearer struct names - renames
2024-07-20 16:32:12 -04:00
bgbsww
e07d940f5b
Toponaming: Process mapped names during selection
2024-07-15 10:45:43 -05:00
PaddleStroke
8ed26133ab
Core: Add App::PropertyXLinkSubHidden
2024-07-10 10:29:03 +02:00
bgbsww
53ad95b382
Toponaming: bring in missing code fragments in App
2024-05-12 17:21:49 -04:00
bgbsww
920032c5a0
Lint corrections
2024-05-03 12:07:02 -04:00
bgbsww
b80d628c69
Merge branch 'main' into bgbsww-toponamingMissingAppMethods
2024-05-02 22:43:36 -04:00
bgbsww
4a0df0ea6d
Test for changed Sketches avoiding TNP
2024-05-01 20:29:26 -04:00
Zheng, Lei
56e32b9c98
Methods to support Toponaming element maps
2024-05-01 18:02:04 -04:00
André Caldas
89dbab9b0e
Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
...
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.
The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).
Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".
The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
Florian Foinant-Willig
741296b82e
Core: modernize type checking
2023-10-23 18:07:07 +02:00
wmayer
1cf1a90a17
App: modernize C++: use default member init
2023-08-23 19:51:44 +02:00
wmayer
af8c05c507
App: modernize C++: return braced init list
2023-08-18 00:36:24 +02:00
wmayer
4991475341
App: modernize C++: use range-based for loop
2023-08-14 16:40:25 +02:00
wmayer
948cbfccd9
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
52e1c7c33b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
ec73caa40e
modernize C++: make unique
2023-08-07 19:51:30 -06:00
wmayer
3f2fe95308
App: [skip ci] fix memory leak
2022-11-14 19:42:33 +01:00
Uwe
a25bdf15b9
use explicit prefix std:: for vectors
...
- also add potentially missing include
- this commit is an attempt to fix #7585
2022-10-11 01:44:24 +02:00
marioalexis
7aa200b965
App: Check Python types using Base::PyTypeCheck
2022-09-24 05:10:34 +02:00
marioalexis
209c78d43e
App: Replace C cast
2022-09-18 11:06:51 -05:00
wmayer
656890be38
App: modernize C++: replace 'typedef' with 'using'
2022-08-29 12:58:39 +02:00
berniev
d2babf0eb5
App: Single arg ctors must be explicit
2022-08-24 07:20:57 +02:00
berniev
22dcf5866f
App: use empty
2022-08-06 19:29:59 +02:00
berniev
ac81a8380f
App: use emplace_back
2022-08-05 10:31:51 +02:00
berniev
b6cae3bfdf
App: Modernise ctors dtors defs etc
2022-08-01 00:34:46 +02:00