sigurdp
8c8970cec0
Made PdmChildArrayField::index() const, #1873
2017-12-19 11:02:27 +01:00
Jacob Støren
7ddd5ca7d7
Add some reference code to help improve the CAF_ASSERT at a later point in time.
2017-12-08 16:56:42 +01:00
Magne Sjaastad
bd25c9bc9f
AppFwk : Add childObjects() to PdmChildArrayField
2017-11-07 20:20:45 +01:00
Magne Sjaastad
f45d065ac2
AppFwk : Add documentation for how do define OptionItemInfos
2017-09-20 10:06:57 +02:00
Magne Sjaastad
7ebc922541
AppFwk : Return reference to QTextStream for << and >> operator overloads
2017-09-20 10:06:57 +02:00
Magne Sjaastad
59e818f2b8
AppFwk : Guard against null pointer access
2017-09-13 07:08:06 +02:00
Magne Sjaastad
3bbc1c9885
System - Add pthread to unit test link parameters
2017-07-19 16:28:17 +02:00
Magne Sjaastad
ac3abc78da
System - Add missing include on Linux
2017-07-19 16:26:11 +02:00
Magne Sjaastad
5a7755fe0c
System : PdmPtrField - Remove PdmPointer interface and add operator()
2017-06-30 15:06:01 +02:00
Bjørnar Grip Fjær
45f5b5a80a
Make more const accessors available
2017-05-29 12:56:40 +02:00
Magne Sjaastad
c3bf064661
#1260 Use std::abort instead of assert for release asserts
2017-03-10 14:28:22 +01:00
Magne Sjaastad
6791600d03
#1260 Replaced assert() with CAF_ASSERT() in AppFwk
2017-03-08 08:19:51 +01:00
Magne Sjaastad
a16a0a3bb5
#1260 Added assert that will display message in release (in addition to debug)
2017-03-07 15:45:34 +01:00
Magne Sjaastad
914b1fcab6
Replaced tab with four spaces
2017-03-07 15:43:29 +01:00
Magne Sjaastad
63baebc698
#1292 Fixed CppCheck Issues in AppFwk/cafProjectDataModel
2017-03-06 19:03:31 +01:00
Magne Sjaastad
a5ed533c00
Improved unit test so they run correctly in debug
2017-03-06 18:33:03 +01:00
Magne Sjaastad
2b029cbc11
#1280 Use nullptr instead of NULL
2017-03-02 18:30:33 +01:00
Magne Sjaastad
3089abc83d
#1280 Added firstAncestorOrThisOfTypeAsserted
2017-03-02 18:30:33 +01:00
Magne Sjaastad
03adf8f759
#1232 Delete child objects in destructor of ChildField and ChildArrayField
2017-02-17 11:37:26 +01:00
Magne Sjaastad
8c01c23e5e
#1156 Added tristate class and checkbox editor with tristate support
2017-02-01 09:52:01 +01:00
Jacob Støren
8004e766ea
AppFwk: Improved the message when forgetting to delete a child object
2017-01-19 17:58:00 +01:00
Magne Sjaastad
239322ba50
AppFwk : Removed assert guard, to prepare for delete of contained object
2017-01-13 13:32:17 +01:00
Magne Sjaastad
454805b9de
#922 AppFwk : Introduced PdmUiFieldHandleInterface and made setValueFromUiEditor private
2016-10-20 11:31:11 +02:00
Magne Sjaastad
96e532696e
#922 AppFwk : Added setValueWithFieldChanged
2016-10-19 15:04:30 +02:00
Magne Sjaastad
531aaaa445
AppFwk : Fixed typo of firstAncestorOrThisOfType
2016-09-21 13:59:41 +02:00
Magne Sjaastad
59afd14339
AppFwk : Added descendantsIncludingThisOfType
2016-09-21 13:03:55 +02:00
Jacob Støren
1a3d8a13af
Made uiCapability and xmlCapability const
2016-08-24 15:16:34 +02:00
Jacob Støren
eaf6bb6768
Caf: Improved reference parsing by using regexp for splitting an any whitespace
2016-06-20 16:50:47 +02:00
Jacob Støren
4a19589d36
Caf: Linux compile fixes: Missing includes
2016-06-20 00:04:09 +02:00
Jacob Støren
327e8cf64b
Caf: Added PdmPtrArrayField to be used in ResInsight as multi select of summary cases
2016-06-19 21:36:44 +02:00
Jacob Støren
0b7abb0cab
Caf: Added specialization for PdmPointer<T>.
...
Preparations for PtrArrayField. Made isEqual use QVariant::value<T>()
2016-06-19 21:36:44 +02:00
Jacob Støren
f2da9bfea1
Caf: Small Adjustments
2016-06-19 21:36:44 +02:00
Jacob Støren
45cf15a941
Caf: PtrFields must not return any childObjects. Fixed Legend definition Object below EclipseCellColor as a consequence. Discovered due to Summary Plot case pointer
2016-06-16 16:55:02 +02:00
Jacob Støren
286c434d3a
caf: Added assert to guard against forgetting to add the fields using the init field macros
2016-05-31 13:48:22 +02:00
Magne Sjaastad
b9286dcd1d
[AppFwk] Updated destructors in unit tests to make sure memory is released correctly
2015-12-22 11:10:50 +01:00
Magne Sjaastad
a86d24df97
Fwk : Added DEBUG assert to detect when data is present in child fields
...
Added assert for ChildArrayField and ChildField
2015-12-09 13:34:13 +01:00
Magne Sjaastad
3a3d28003b
[Fwk] Use PdmValueFieldSpecialization instead of QVariant constructor
2015-11-26 14:22:52 +01:00
Magne Sjaastad
3e9e5779ab
[Fwk] Updated headers and added unit tests, fixed minor issues related to text stream operator overload
2015-11-26 14:22:51 +01:00
Magne Sjaastad
fb55b469a0
System : Replaced tab with four spaces in AppFwk
2015-10-23 15:21:45 +02:00
Magne Sjaastad
d2b5d7ae92
System : Added iterators and at() to ChildArrayField
2015-10-23 09:45:32 +02:00
Jacob Storen
10046eed4a
Linux fixes
2015-10-14 07:13:45 -07:00
Magne Sjaastad
8e03c38901
Return root if reference is empty
2015-10-06 16:12:17 +02:00
Magne Sjaastad
bbc6fb1511
Minor refactor of ReferenceHelper
...
Removed some asserts
Added more unit tests
2015-10-06 15:03:55 +02:00
Jacob Støren
49ab79219e
Fixed crashes regarding general handling of NULL pointers in Child Arrays
2015-09-25 15:24:21 +02:00
Magne Sjaastad
53f1765fd7
Fixed wrong index guarding
2015-09-18 19:39:17 +02:00
Magne Sjaastad
dcf9ac9b50
Check if index is valid when resolving child objects
2015-09-18 18:49:53 +02:00
Magne Sjaastad
492bf96598
Moved Xml related functions from PdmDocument to XmlObjectHandle
...
Moved and renamed initAfterReadRecursively, setupBeforeSaveRecursively
and resolveReferencesRecursively to XmlObjectHandle. Updated unit tests.
Removed resolveReferences() from PdmPtrField.
2015-08-27 11:43:27 +02:00
Magne Sjaastad
4f5f50fb4f
Fixed up unit tests
2015-08-27 11:00:49 +02:00
Magne Sjaastad
90b6dd44ee
Created infrastructure used to resolve references for ptrFields
2015-08-26 14:48:20 +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