Magne Sjaastad
a0ebb6e496
Add copyObject to PdmObjectHandle
...
New syntax to copy an object
auto curveCopy = curve->copyObject<RimSummaryCurve>();
Previous deprecated syntax
RimColorLegend* customLegend = dynamic_cast<RimColorLegend*>(
standardLegend->xmlCapability()->copyByXmlSerialization( caf::PdmDefaultObjectFactory::instance() ) );
2024-06-14 17:18:28 +02:00
Magne Sjaastad
f1823da6d7
Performance: Cache the uiCapability to costly dynamic_cast
2023-10-13 16:31:14 +02:00
Magne Sjaastad
69b513bcb1
#10713 Add flag used to detect if resolveReferences is called from initAfterRead
2023-10-13 16:31:14 +02:00
Magne Sjaastad
0c90f67dcc
Change API for PdmObjectHandle and PdmFieldHandle
...
* Refactor interface to PdmObjectHandle and PdmFieldHandle
Return objects instead of passing in structures as parameters
* Add nodiscard to several functions
* Remove redundant this->
* Rename to ptrReferencedObjectsByType
2023-05-12 21:41:34 +02:00
magnesj
62eb603ed2
Fixes by clang-format
2020-12-08 21:45:26 +01:00
Gaute Lindkvist
c65157277a
Disconnect field owner from all signals when removing from ptr field
2020-09-17 08:22:00 +02:00
Gaute Lindkvist
15ae290f1d
Disconnect parent from all signals when detaching from parent
2020-09-17 08:22:00 +02:00
Gaute Lindkvist
d3152f5030
Get rid of caf::DeleteSignal
2020-09-17 08:22:00 +02:00
Gaute Lindkvist
d08444ec77
#6437 Fix Signal crash and improve signal code
...
* The crash fix is ensuring we don't loop through m_disconnectCallbacks
in DeleteSignal::send()
* This is because the callback will end up calling disconnect
which in turn erases the entry from m_disconnectCallbacks,
invalidating the iterators used in the loop.
2020-09-04 19:37:45 +02:00
Magne Sjaastad
bdc536dfc4
#6106 Apply clang-format on AppFwk
2020-06-19 08:00:01 +02:00
Kristian Bendiksen
c366e85682
Refactor delete operations for pdm objects.
2020-05-22 07:02:53 +02:00
Gaute Lindkvist
c63c7f2eac
CAF: Support class keyword aliases and a scriptable feature
...
* Also store class keyword in fields so they can be assigned to the correct Python object
even if the class itself is abstract.
2020-02-25 13:57:51 +01:00
Gaute Lindkvist
82cf721ae8
CAF: support aliases for keywords in case of renaming
2020-02-25 13:57:51 +01:00
Gaute Lindkvist
5f766e5228
#3013 Make sure all existing connections for PdmObjects are removed before async delete
...
* Clear all PdmPointer connections (including selection manager)
* Send all threads to the new caf::AsyncWorkerManager which can join the threads
before program exit if the caller has asked for that.
2018-06-08 12:58:59 +02:00
Magne Sjaastad
3239c66f54
AppFwk (clang-tidy) : modernize-use-nullptr
2018-02-18 18:05:08 +01:00
Magne Sjaastad
6791600d03
#1260 Replaced assert() with CAF_ASSERT() in AppFwk
2017-03-08 08:19:51 +01:00
Magne Sjaastad
63baebc698
#1292 Fixed CppCheck Issues in AppFwk/cafProjectDataModel
2017-03-06 19:03:31 +01:00
Magne Sjaastad
fb55b469a0
System : Replaced tab with four spaces in AppFwk
2015-10-23 15:21:45 +02:00
Jacob Støren
0ac86aeff3
Fwk: Added convenience methods to access the ui/xml capabilities in objects
2015-08-20 15:22:43 +02:00
Magne Sjaastad
28aee8ef0d
Reintroduced asserts
2015-08-07 12:41:03 +02:00
Magne Sjaastad
392876dcaa
Intermediate fix for fields with multiple parents. Asserts must be reintroduced later.
2015-08-04 14:32:18 +02:00
Magne Sjaastad
58149cbdb9
Copied in RPM/Fwk/AppFwk
...
Commented out use of stipple line, as VizFwk is not update yet
2015-07-29 14:19:43 +02:00