Jacob Støren
e1fa9aa9f3
Caf: Corrected the spesialization of field of vector and list equality compare, which is supposed to be pr. element
2016-06-16 16:55:02 +02:00
Magne Sjaastad
ef64dc9b62
cotire : Boolean variables are now unique globally in the project
2016-06-10 14:01:41 +02:00
Jacob Støren
c2e62c60ba
caf: Added an option on ui fields to not add their value to the list of options if the option does not exist.
2016-06-09 11:08:12 +02:00
Magne Sjaastad
c046e52aff
cotire : Boolean variables are now unique in the project and not local to file they are defined in
2016-06-08 12:13:49 +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
Jacob Støren
d90a6041aa
caf: Added CAF_PDM_ABSTRACT_SOURCE_INIT alias
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
Jacob Støren
891bce069d
( #587 ) Fixed missing initialization. Will probably fix this issue
2015-12-14 14:37:00 +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
147580e342
Linux fix
2015-11-26 05:54:43 -08: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
1bdb68e3d7
[Fwk] Moved ProjectDataModel unit test
2015-11-26 14:22:50 +01:00
Magne Sjaastad
1f91405c50
[Fwk] Propagate return value from QFile::open in writeFile() to caller
2015-11-20 10:49:23 +01:00
Magne Sjaastad
13c5dbfbd2
[Fwk] Do not show children if object hides children
2015-11-18 15:55:23 +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
Magne Sjaastad
5b99439ed8
( #573 ) Added new copy method for PdmObjects
...
Added copy method to XmlObjectHandle, and use this method from
PasteEclipseCases
2015-10-23 09:00:17 +02:00
Jacob Storen
10046eed4a
Linux fixes
2015-10-14 07:13:45 -07:00
Magne Sjaastad
8698291e7d
( #566 ) Major rewrite of how to build and update PdmUiTreeOrdering items
...
Removed findChildItemIndex() which caused performance issues for large
models. Replaced with a new algorithm using std::map. Added unit tests
2015-10-14 13:32:35 +02:00
Magne Sjaastad
bcc5d636f8
( #566 ) Performance: Use set to detect if an object already has been inserted in UiTreeOrdering
2015-10-14 13:23:54 +02: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
6be5be4746
Added macro for pure virtual classes
2015-09-18 13:46:17 +02:00
Magne Sjaastad
dc7735a67d
Fixed missing code changes related to previous commit
2015-08-27 11:56:52 +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
Jacob Støren
04368bd8a3
( #349 ) Removed updateConnectedUIEditors
2015-08-20 10:43:55 +02:00
Jacob Støren
5cd416ce6b
( #357 ) Renamed PdmUiObjectHandle::owner() to objectHandle()
2015-08-14 16:15:49 +02:00
Jacob Støren
d3b1af3724
firstAnchestorOrThisOfType : Initialize returnvalue to NULL
2015-08-14 15:17:03 +02:00
Jacob Støren
f5d15c19e1
firstAnchestorOfType now considers the object itself as well.
...
It is thus renamed to firstAnchestorOrThisOfType
2015-08-14 14:04:47 +02:00
Magne Sjaastad
9cae0e09ff
Fixed copyOfTypedObjects
2015-08-14 10:17:32 +02:00
Magne Sjaastad
a1ecc50605
Added CopyReferencesToClipboardFeature
2015-08-14 10:17:31 +02:00
Jacob Storen
47819812bf
Fix of Linux compile errors and warnings
2015-08-13 06:23:51 -07:00
Magne Sjaastad
e12a5b62de
Renamed to PdmObjectCollection
2015-08-13 13:06:57 +02:00
Magne Sjaastad
2b47793d68
Integrated fix for undo framework. Added virtual destructors.
2015-08-13 13:06:56 +02:00
Jacob Støren
8ad3f9b8c3
Fixed missing parent = NULL, if parentField() is NULL
2015-08-13 11:47:04 +02:00
Jacob Støren
f8518037fe
cafPdm: Re-Added PdmObjectHandle::firstAncestorOfType()
2015-08-13 11:38:29 +02:00
Magne Sjaastad
c2fe5f3a16
Added PdmGuardedObjects and use this container from UiListView
2015-08-12 18:27:59 +02:00
Magne Sjaastad
711cc16da1
Added firstAncestorOfType
2015-08-12 11:10:20 +02:00
Magne Sjaastad
005114cc3e
Fixed several todo for RimEclipseStatisticsCaseCollection::parentCaseGroup(), removed comments
2015-08-11 18:42:44 +02:00
Magne Sjaastad
c7fca88bdc
Allow invalid PdmUiTreeOrdering objects, and display message in Debug
2015-08-11 11:15:30 +02:00
Magne Sjaastad
e3bfca8174
Revert "Improved default parsing of visible items to establish root items in the tree view"
...
This reverts commit 550eccc521 .
2015-08-10 21:44:50 +02:00
Pål Hagen
319d9a1aa7
Added new method index()
2015-08-10 16:57:16 +02:00
Magne Sjaastad
550eccc521
Improved default parsing of visible items to establish root items in the tree view
2015-08-09 10:56:52 +02:00