Jacob Støren
296dac48d3
Removed a call to uiValue() that was not preceeded with valueOptions().
...
Understood that this is an inherent problem with those two methods, and made a comment on that.
2016-11-04 08:03:22 +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
Jacob Støren
c3eb692afe
Merge with branch 'dev'
2016-10-13 12:44:44 +02:00
Jacob Støren
eb066a71b0
caf: Finally removed the enum-index-based communication used in the optionValueLists for AppEnums. Now custom option menues based on AppEnums can use the enum values naturally instead of the enum index.
2016-10-13 12:11:32 +02:00
Magne Sjaastad
8ae75b5f27
AppFwk : Added concept of isUiTreeHidden and isUiTreeChildrenHidden
2016-10-12 10:08:08 +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
Magne Sjaastad
e031f89dcc
Merged from maintenance branch
2016-08-05 12:13:13 +02:00
Magne Sjaastad
c5d4519eb1
#282 Added category list if category values are present
2016-08-05 10:26:47 +02:00
Jacob Støren
80cdb9dbaf
Caf: Adjusted output of references from PtrArrayField
2016-06-20 16:51:36 +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
214f013499
Caf: Fixed issues regarding custom type in fields with multi selection
2016-06-16 16:55:02 +02:00
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