Commit Graph

450 Commits

Author SHA1 Message Date
Gaute Lindkvist
bd8e079e24 #5632 Generate PdmChildField and PdmChildArrayField methods 2020-03-05 08:40:46 +01:00
Gaute Lindkvist
508d8806e6 Rename PdmXmlFieldHandle::childClassKeyword to dataTypeName to reflect that it will contain names for built in types 2020-03-05 08:40:46 +01:00
Gaute Lindkvist
554f9a1758 Translate data types to Python data types for Python generation 2020-03-05 08:40:46 +01:00
Gaute Lindkvist
b2f55a3101 Make scriptability a CAF-feature 2020-03-05 08:40:46 +01:00
Gaute Lindkvist
2cea7c0321 Implement proxy field python methods 2020-03-05 08:40:46 +01:00
Gaute Lindkvist
1353835bd8 CAF: Move keyword aliases from PdmXmlFieldHandle to PdmFieldHandle 2020-02-25 16:04:53 +01:00
Gaute Lindkvist
d95f3a349d Move to use a static registry of scriptable classes 2020-02-25 13:57:51 +01: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
83a7ceb204 CAF: expose inheritance stack and make sure we can alias class keywords 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
Magne Sjaastad
2b45a9af7f #5553 AppFwk : Add root in PtrField reference string 2020-02-17 09:11:23 +01:00
Gaute Lindkvist
0d67a179ef #5385 Make QShortenedLabel slightly longer 2020-02-03 10:03:34 +01:00
Gaute Lindkvist
e4ffa5d7b9 #5388 Add a CAF-feature to get the ancestor of a type (but not this) 2020-01-27 13:50:15 +01:00
Magne Sjaastad
4e3a894464 #5370 Unity Build : Add config for AppFwk 2020-01-23 13:37:29 +01:00
Gaute Lindkvist
954bf1e02e Support setting of child fields from Python and pass in WbsParameters if provided
Also fixes #5354
2020-01-22 09:28:46 +01:00
Gaute Lindkvist
6082d0dd2f Add a getter in addition to the () operator for caf::AppEnum
* The operator can be awkward to use currently with class enums
2020-01-16 14:33:33 +01:00
Magne Sjaastad
29e6b09ee9 #5339 AppFwk : Fix robustness for serialization of PdmPtrArrayField 2020-01-15 22:47:02 +01:00
Jacob Støren
e4eea67a4e Fix error in cafFilePath QVariant isEqual operator 2019-12-12 16:09:20 +01:00
Gaute Lindkvist
9c458ec3ba Fixed typo in comment SFINA -> SFINAE 2019-12-06 08:13:31 +01:00
Gaute Lindkvist
c4951a5a03 Enable the use of the C++11 enum class in caf::AppEnum 2019-12-06 08:13:31 +01:00
Magne Sjaastad
1193a9c61e AppFwk : Guard use of front() on empty list 2019-12-02 15:02:10 +01:00
Gaute Lindkvist
85d683634c Further refactoring 2019-11-20 13:14:45 +01:00
Gaute Lindkvist
228810fd05 Refactor view id 2019-11-20 13:14:45 +01:00
Jacob Støren
277f8c8b7a #4969 Fix Well path and annotation draggers not visible and does not work in comparison view 2019-11-06 14:13:01 +01:00
Magne Sjaastad
32128f0bf3 #4924 AppFwk : Add support for editable combo box 2019-10-24 21:03:17 +02:00
Magne Sjaastad
35004ef7b2 #4843 AppFwk : Remove debug output to avoid noise 2019-10-09 13:07:19 +02:00
Gaute Lindkvist
2961782be1 Renamed caf::PdmXmlObjectHandle::isOfClassKeyword to ::inheritsClassWithKeyword 2019-10-09 09:26:30 +02:00
Gaute Lindkvist
11117383db
#4817 #4830 #4832 #4837 #4839 Python commands for WBS creation, well path import and well log file import (#4838)
* Better minimum width for well log tracks

* Fix alignment of scrollbar in Well log plots

* Better Well Log Plot export

* Hide scroll bar before plotting
* Better borders

* Create plots through Python

* #4817 Create WBS plots with Python

* Rebase Summary and WellLogPlot on top of a new RimPlot

* Also Python: Allow setting folder as a parameter to export_snapshots

* #4832 Prepare for well path import command

* Well Path import WIP

* #4830 #4832 Import well paths and well log files from file using Python.

* #4837 Implement import of formation names in Python

* Fix debug build issue

* Fix RiaLogging build issue

* Fix warnings

* Yet another RiaLogging.h import added

* #4839 Import exporting of las and ascii files from well log plots
2019-10-09 09:21:28 +02:00
Jacob Støren
bfff15568d #4712 Fix stray widgets in Plot Property Panel
Added comments showing that the reason is mainly deleteLater beeing called outside all event loops
2019-09-25 13:09:47 +02:00
Magne Sjaastad
01c615889b AppFwk : Add accessor functions to xml reference string 2019-09-18 14:17:49 +02:00
Magne Sjaastad
60b4078829 AppFwk : Guard for null pointer access 2019-09-18 14:17:44 +02:00
Gaute Lindkvist
199e119bbf #4662 Fix erratic behaviour in Tree Selection Editor 2019-09-03 14:42:01 +02:00
Gaute Lindkvist
7ab9b2a889 #4654 Fix QVariant comparisons with std::vector<T> data types 2019-09-02 15:12:22 +02:00
Jacob Støren
01921a50ab caf: Create a new CommandFeature libary.
Move Add and Delete command features there.
Implement generic Toggle Commands.
Make library an cmake "OBJECT" library to allow "registering by static initialization".
Add the concept of CurrentContextMenuTargetWidget  into CmdFeatureManager to support the toggle commands.
Updated test application to use the new commands
2019-08-29 11:48:43 +02:00
Jacob Støren
2784f5ce11 caf: notifyFieldChange now uses the QVariant content data when checking for equality 2019-08-28 10:12:54 +02:00
Gaute Lindkvist
e58da136e3
#2082 Support custom date time format (#4594)
* #2082 Support custom date time format

* Clang-format
2019-08-19 09:37:42 +02:00
Gaute Lindkvist
439913b7b1 #4423 First implementation of PdmObject exchange 2019-07-15 12:30:31 +02:00
Jacob Støren
b802937657 Fwk: Added the variable CEE_USE_QT5 as an option in pdmCore and LibGuiQt, to make it visible in the Cmake Gui. 2019-06-25 16:51:45 +02:00
Jacob Støren
ce91cc3cc2 AppFwk: PdmSettings: Added methods that reads and writes (only) valuefields of an object properly 2019-06-25 16:50:03 +02:00
Gaute Lindkvist
5365f4dd7d Caf build fixes for CEE_USE_QT5 2019-05-31 11:00:32 +02:00
Gaute Lindkvist
10afe4987b #4448 Clean up CAF Qt5-enabling/detection 2019-05-28 15:58:49 +02:00
Gaute Lindkvist
0544b19afe Fix carriage return difference in CafPdmModel_UnitTests 2019-05-28 15:58:48 +02:00
Gaute Lindkvist
8f3eb6a748 Add Qt5 test to AppFwk main CMakeLists.txt and update CAF to use CEE_USE_QT5 2019-05-28 15:58:48 +02:00
Gaute Lindkvist
af1a5790a2 Fix crash in some unit tests from constructing a QPixmap without a QApplication 2019-05-06 13:35:05 +02:00
Magne Sjaastad
911b69b56f #4388 AppFwk : Make sure context menu policy is set correctly in all use cases 2019-05-06 11:58:06 +02:00
Magne Sjaastad
a852d1a50e #4388 AppFwk : Rename and rewrite of PdmUiFieldHandle::notifyFieldChanged 2019-05-06 11:58:06 +02:00
Jacob Støren
01ac756314 AppFwk: Added a parent editor concept, and adjusted the update regime to make embedded editors trigger update of the containing editor. Removed the update of the fields owner object, which causes trouble for table editors and some derived object editors. 2019-05-06 11:58:06 +02:00
Gaute Lindkvist
30769d7f2a Rename caf::PdmUiItem::setUiIcon(QString) to setUiIconFromResourceString 2019-05-06 11:08:59 +02:00
Gaute Lindkvist
57b33b0d4c
First implementation of Headless (#4392)
* Revert "#4377 Octave : Use RiaLogging for error messages instead of QErrorMessage "

This reverts commit f758a8edb2.

* Revert "#4380 Preferences : Changing scene font size when geo mech view is open causes crash"

This reverts commit df62a41397.

* Revert "#4379 Documentation : Update command line parser for import of summary files"

This reverts commit d0b5357ed4.

* Unfinished WIP

* Builds but crashes

* Refactored code now builds and runs

* ResInsight can now run the unittests headless

* Can run some command files successfully

* Build on Linux

* Extra headless hack header

* Moved PdmUiItem hack to cpp file

* Fix headless crash in RimWellAllocationPlot

* Handle error gracefully if ExportSnapshots command is executed from console

* Add caf::QIconProvider and remove some hacks

* Also made the greying out of disabled icons work for a couple of cases where it didn't.

* Linux build fix

* #4380 Reimplement fix df62a41397 by @magnesj on top of Headless code changes

* #4379 Reintroduce kode from d0b5357ed4 by @magnesj

* #4377 Restore f758a8edb2 in new Headless code
2019-05-06 10:36:05 +02:00
Magne Sjaastad
4c46573fc9 Reintroduce "#4308 System : Add virtual function childFieldChangedByUi"
This reverts commit 91022a7535.
2019-05-03 12:13:11 +02:00
Magne Sjaastad
91022a7535 Revert "#4308 System : Add virtual function childFieldChangedByUi"
This reverts commit fbf9308e2b.
2019-05-03 11:16:09 +02:00
Magne Sjaastad
fbf9308e2b #4308 System : Add virtual function childFieldChangedByUi 2019-04-10 13:55:44 +02:00
Gaute Lindkvist
72052377dc #4305 Adjust size of layouts and labels if the sizeHint has changed 2019-04-09 13:53:33 +02:00
Gaute Lindkvist
c0f3258f19 Work in progress 2019-04-09 10:30:15 +02:00
Magne Sjaastad
387d7cf7c2 System : Use appropriate mode when displaying a cmake message 2019-04-08 12:32:14 +02:00
Gaute Lindkvist
0110e9a0c3 #4282 Make Editor labels use preferred size rather than maximum for expansion. 2019-04-05 13:05:48 +02:00
Gaute Lindkvist
6a2e81ca4b #4282 Add a new cafShortenedQLabel class that provides a label that shortens itself when space is limited 2019-04-05 13:05:14 +02:00
Gaute Lindkvist
038d7a7676 #4097 Implement stretch factors for editors 2019-04-04 11:19:35 +02:00
Gaute Lindkvist
117731a24a #4192 Add swap axis and update property editor 2019-03-12 14:34:22 +01:00
Gaute Lindkvist
fac9870c76 Rework caf Layout to work better when number of columns isn't fully specified 2019-02-11 15:48:01 +01:00
Magne Sjaastad
288ee59587 #4066 System : Improve cmake macros for cotire 2019-02-11 07:13:08 +01:00
Magne Sjaastad
9a88c33de0 #4061 VizFwk : Use variable CAF_USE_QT5 2019-02-08 11:28:14 +01:00
Magne Sjaastad
bd6bbe9da9 #4020 System : Use ri_apply_cotire() 2019-02-01 06:56:11 +01:00
Magne Sjaastad
65ee55c96d #3944 clang-tidy : Apply clang-tidy on caf 2019-01-11 08:14:53 +01:00
Magne Sjaastad
98da255772 System : Remove TR1 warnings from gtest 2019-01-07 14:32:29 +01:00
Gaute Lindkvist
17e12a92a0 Update CMake to only look for Qt5 if RESINSIGHT_BUILD_WITH_QT5 is set 2018-12-10 15:10:46 +01:00
Bjørn Erik Jensen
c0b7b5d87e caf. Make method const 2018-12-07 12:42:42 +01:00
Bjørn Erik Jensen
b4482d20b0 #3723 Annotations. User editable polyline, both in in view and in property editor 2018-12-07 09:11:19 +01:00
Magne Sjaastad
aa19715c40 #3822 AppFwk : Improve resolve of PtrField, unit test 2018-12-04 14:10:54 +01:00
Magne Sjaastad
90550fe561 #3822 AppFwk : Improve resolve of PtrField 2018-12-04 14:10:18 +01:00
Gaute Lindkvist
b06097862f Fix Linux build of caf unit tests 2018-12-03 15:00:53 +01:00
Gaute Lindkvist
8cd2d37b92 Quieten Qt5 check in caf unittests 2018-12-03 15:00:53 +01:00
Gaute Lindkvist
ddb546d877 #3754 Upgrade CAF CMake-system to support both Qt4 and Qt5 2018-11-30 09:47:53 +01:00
Gaute Lindkvist
cc7269c717 #3752 CAF code changes to build on both Qt4 and Qt5 2018-11-30 09:47:53 +01:00
Jacob Støren
08de39f15a AppFwk: Update some plantuml docs 2018-11-27 14:59:30 +01:00
Jacob Støren
7a0fcaa2ec AppFwk: Remove obsolete plantuml documentation stuff 2018-11-27 14:59:30 +01:00
Jacob Støren
3c32595e25 AppFwk: Moved PdmUi3dObjectEditorHandle and PdmUiSelection3dEditorVisualizer into correct place in PdmUiCore 2018-11-27 10:31:54 +01:00
Jacob Støren
318cd76b64 AppFwk: Split PdmUiObjectEditorHandle into PdmUiWidgetObjectEditorHandle
making PdmUiObjectEditorHandle  a cleaner interface for PdmUi3dObjectEditorHandle
2018-11-27 09:31:33 +01:00
Jacob Støren
b4572fd9a2 AppFwk: Remove som unused code 2018-11-26 21:51:05 +01:00
Jacob Støren
fb93ad7ca7 AppFwk: Make PdmUiSelection3dEditorVisualizer generic, ready to be moved to a separate file 2018-11-26 21:50:46 +01:00
Gaute Lindkvist
f80472ffa6 #3540 Create seperate 2d view with parallel, look down and linked views 2018-10-24 15:21:53 +02:00
Magne Sjaastad
758598df0e clang-tidy : Use nullptr 2018-10-18 16:36:11 +02:00
Magne Sjaastad
764fb65e8e clang-tidy : Remove redundant 'virtual' and add 'override'
clang-tidy : Remove redundant 'virtual' and add 'override'
2018-10-18 16:35:51 +02:00
Gaute Lindkvist
fcda0b9755 Remove padding to the left in TreeSelectionEditor if the tree doesn't have grand children. 2018-10-02 08:46:24 +02:00
Magne Sjaastad
b584ab905c AppFwk : Activate more warnings 2018-09-27 21:36:52 +02:00
Gaute Lindkvist
8c5e538f01 Implement a way for editors to fit the label to the field. 2018-09-27 16:07:35 +02:00
Magne Sjaastad
a3d8fc1fb3 #3421 Text File Export : Open file as text file when required 2018-09-27 12:42:28 +02:00
Gaute Lindkvist
e8a1d30f2d #3404 Side by side editors, first implementation. 2018-09-26 14:30:50 +02:00
Jacob Støren
10b031fa6d #3353 AppFwk: Add contentTextColor to PdmUiItem 2018-09-24 15:49:16 +02:00
Magne Sjaastad
cb218965c5 #3340 Do not use same variable name twice 2018-09-10 10:27:54 +02:00
Gaute Lindkvist
ac8a11c813 Make caf::PdmPtrField inherit caf::PdmValueField and make it support QVariant. 2018-09-05 11:03:41 +02:00
Jacob Støren
e26a57011d #3296 caf::SelectionManager: Refactoring to avoid sending multiple selection changes
Must be considered if using the CmdSelectionGangeExec
2018-08-31 16:13:46 +02:00
Jacob Støren
99bdece40e #3249 caf: Add isSelected method to selection manager 2018-08-29 16:04:08 +02:00
Gaute Lindkvist
92bcae2805 Add not equals operator to PdmDataValueField 2018-08-27 11:33:02 +02:00
Gaute Lindkvist
208505ee5f Fix Linux build issue with cafSelectionManager 2018-08-22 13:10:18 +02:00
Gaute Lindkvist
12202fe4e6 #3255 Add convenience methods to caf::SelectionManager 2018-08-22 13:04:00 +02:00
Jacob Støren
296854d749 caf: Rename of SelectionRole to SelectionLevel and
CURRENT to FIRST_LEVEL
Replace use of SelectionLevel enum as argument with int
2018-08-21 16:44:19 +02:00
Jacob Støren
0e92c1d594 caf: Replace selection role with selectionLevel.
Use std::map for storage of the different selections
Started to remove the SelectionRole Enum
2018-08-21 16:44:19 +02:00
Jacob Støren
e10754cffb #2607 caf: Add selection level to the "notify selection changed" system 2018-08-21 16:44:19 +02:00
Magne Sjaastad
56bf2ede7d #3222 AppFwk : Improve robustness/maintainability (3) 2018-08-20 08:56:35 +02:00
Magne Sjaastad
26f6eb1dd4 #3222 AppFwk : Improve robustness/maintainability (2) 2018-08-20 08:24:24 +02:00
Magne Sjaastad
cd63332514 #3222 AppFwk : Improve robustness/maintainability 2018-08-20 08:02:36 +02:00
Magne Sjaastad
37369cb0fb AppFwk : Add const 2018-08-20 08:02:36 +02:00
Jacob Støren
096536a341 caf: Use caf::Factory macro for factory registration in field editors. Removed obsolete code 2018-08-17 12:32:40 +02:00
Magne Sjaastad
97c3b9efea #3214 AppFwk : Add function to get referencing objects of specified type 2018-08-15 13:01:11 +02:00
Magne Sjaastad
8425ea96ad #3185 Remove FixedArray 2018-08-07 10:37:52 +02:00
Bjørn Erik Jensen
13e5a3214b #3087 Show plot data. Display tabbed dialog for summary data 2018-07-02 11:45:14 +02:00
Magne Sjaastad
e45ac4d705 AppFwk : Add include 2018-06-29 17:15:28 +02:00
Jacob Støren
99565f62f2 AppFwk: Fix missing type guard in multi select field edit code. Added Assert in updateUI to prevent accidental recursive calling. 2018-06-29 16:23:26 +02:00
Jacob Støren
8e53e2a3cf AppFwk: Remove NotificationCenter from SelectionManager 2018-06-28 09:58:51 +02:00
Jacob Støren
08c78471c3 AppFwk: Introduce SelectionChangedReceiver as a slimmer replacement for NotificationCenter 2018-06-27 17:24:05 +02:00
Jacob Støren
66cec70718 AppFwk: Support field changed on multiple objects in general.
Not only inside the command framework on CURRENT selection
2018-06-27 13:13:24 +02:00
Jacob Støren
ad709d76a2 AppFwk: Change interface of uiOrder insertion to direct insert
Instead of find + insert
2018-06-25 12:57:11 +02:00
Jacob Støren
73a52c4929 AppFwk: Index based uiordering insertion. 2018-06-25 12:57:11 +02:00
Magne Sjaastad
17ee25d0b2 AppFwk : Rename to uiField() and setUiField() 2018-06-15 14:22:03 +02:00
Magne Sjaastad
d7037acedf #3048 AppFwk : Wire up functions for custom context menu
Add PdmUiObjectHandle ::defineCustomContextMenu()
2018-06-15 12:53:32 +02:00
Magne Sjaastad
e8204465f9 #3048 AppFwk : Add setCustomContextMenuEnabled to PdmUiItem 2018-06-15 12:53:32 +02:00
Magne Sjaastad
e370dee3b0 #3037 Rename using Q for table view model and tree view model 2018-06-11 11:16:39 +02:00
Gaute Lindkvist
68f965f6bb Fix Linux build problem with cafAsyncObjectDeleter 2018-06-08 13:18:30 +02: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
Bjørn Erik Jensen
73c49b4ce9 Fwk. Fix missing config name bug 2018-05-31 10:24:16 +02:00
Gaute Lindkvist
743993718c #2873 New AsyncPointerVectorDeleter-classes to handle memory deletion in separate thread. 2018-05-23 14:38:25 +02:00
Gaute Lindkvist
772e7ec7e6 Revert "#2873 Delegate deletion of summary cases to separate thread."
This reverts commit 0089e0c218.

Didn't intend this to go into dev now
2018-05-22 09:22:12 +02:00
Gaute Lindkvist
0089e0c218 #2873 Delegate deletion of summary cases to separate thread. 2018-05-22 09:21:40 +02:00
Bjørn Erik Jensen
0e8eae33db #2818 Selection manager. Add strict method variant 2018-05-07 09:46:45 +02:00
Magne Sjaastad
2e122d2ab3 #2554 Regression Test : Move serialization code into RiaRegressionTest 2018-03-07 09:30:15 +01:00
Magne Sjaastad
3fbce58fa5 #2536 Build System AppFwk : Several updates
Simplified automoc
Use target_include_directories and target_link_libraries
Use CMake 2.8.12
2018-02-27 18:37:11 +01:00
Magne Sjaastad
65c3d6ff12 #2536 Build System AppFwk : Use target_include_directories 2018-02-27 17:19:23 +01:00
Magne Sjaastad
309b1f0749 AppFwk Clang : Reorder initialization order to match declaration order 2018-02-23 19:43:48 +01:00
Magne Sjaastad
3239c66f54 AppFwk (clang-tidy) : modernize-use-nullptr 2018-02-18 18:05:08 +01:00
Magne Sjaastad
950617af96 AppFwk : Fix assignment of float value 2018-02-18 17:42:28 +01:00
Magne Sjaastad
2ff5842f28 Clang : Avoid special template helper on Windows 2018-02-12 20:12:04 +01:00
Magne Sjaastad
1419865b89 #2411 AppFwk : Increase precision when writing real numbers to XML 2018-01-26 15:08:40 +01:00
Magne Sjaastad
76b84cbb17 #2361 AppFwk : Make sure field of FilePath supports space, add more tests 2018-01-17 14:32:47 +01:00
Magne Sjaastad
c0d9ef67fa #2361 AppFwk : Make sure identical strings are separated by semicolon 2018-01-17 14:32:47 +01:00
Magne Sjaastad
bf1b755dc8 #2361 AppFwk : Improve robustness of load and save of FilePath 2018-01-12 14:56:05 +01:00
Jacob Støren
57b521c6d9 AppFwk: Add a guarded interface pointer class 2018-01-12 12:01:04 +01:00
Magne Sjaastad
97822cbd2c #2361 AppFwk : Template specialization of stream operator for vector of FilePath 2018-01-11 13:50:26 +01:00
Magne Sjaastad
f86b13adc8 #2361 AppFwk : Add cafFilePath and conversion to QVariant 2018-01-11 13:50:26 +01:00
sigurdp
8c8970cec0 Made PdmChildArrayField::index() const, #1873 2017-12-19 11:02:27 +01:00
Magne Sjaastad
d15808efe6 AppFwk : Add support for output of object and field keywords 2017-12-15 17:01:33 +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
13ac632350 AppFwk : Show field tooltip info if debug info is available 2017-12-08 12:47:38 +01:00
Magne Sjaastad
e6805d947b #2098 AppFwk : Add optional display of field keyword in tooltip text 2017-11-08 11:29:41 +01:00
Magne Sjaastad
bd25c9bc9f AppFwk : Add childObjects() to PdmChildArrayField 2017-11-07 20:20:45 +01:00
Magne Sjaastad
257a5c18d2 #2083 AppFwk : Add notification when widgets are created 2017-11-02 08:50:07 +01:00
Bjørn Erik Jensen
f229ce5c23 PdmStreamOperator. Set timespec to UTC for QDateTime fields during project load 2017-10-27 09:35:38 +02:00
Magne Sjaastad
58b062cbdf #2037 AppFwk : Add support for calling updateUi on all object editors
This function is intended to be called when an object is created or deleted to make sure object editors holds valid data
2017-10-27 08:22:14 +02:00
Magne Sjaastad
22159a1c63 System : Simplify access to selected objects 2017-10-19 10:11:14 +02:00
Magne Sjaastad
64a8a07f6a AppFwk : Add disableIO() to PdmXmlFieldHandle 2017-10-03 15:23:44 +02:00
Jacob Støren
f4eadc5cef AppFwk: Addjust default implementation of equal comparisons for QVariant encapsuled field content types that are not directly supported by Qt.
Should now work in most cases, where as it always returned "false" before this fix
2017-09-23 08:26:21 +02: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
9d7dcefc78 (#1883) AppFwk : Refactor of WidgetBasedObjectEditor and friends 2017-09-13 07:16:18 +02:00
Magne Sjaastad
d40a7f11c6 #1883 AppFwk : Add const access functions 2017-09-13 07:08:58 +02:00
Magne Sjaastad
59e818f2b8 AppFwk : Guard against null pointer access 2017-09-13 07:08:06 +02:00
Magne Sjaastad
33e94c447b #1830 AppFwk : Rename to isReadOnly and disable these items in tree view 2017-09-08 07:47:23 +02:00
Magne Sjaastad
2f22f82ba1 #1867 AppFwk : Add PdmUiFieldEditorHandle::updateLabelFromField 2017-09-07 14:56:10 +02:00
Magne Sjaastad
aef886a26e #1830 AppFwk : Add heading concept 2017-09-07 14:56:09 +02:00
Magne Sjaastad
9eab559272 #1830 AppFwk : Add level to PdmOptionItemInfo 2017-09-07 14:56:09 +02:00
Magne Sjaastad
5e6547c0c5 #1830 AppFwk : Move members to private and use getter functions 2017-09-07 09:33:33 +02:00
Magne Sjaastad
7181584657 #1830 AppFwk : Add const to constructors 2017-09-07 09:33:05 +02:00
Jacob Støren
0af879d20e Add simplified UML diagrams for Pdm 2017-09-05 12:31:16 +02:00
Magne Sjaastad
c18e9c1293 #1833 AppFwk: Add support for dynamic labels on group-boxes 2017-08-28 15:14:15 +02:00
Magne Sjaastad
83e663ae13 System : Add caf namespace prefix 2017-08-17 14:06:57 +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
530400fb28 #1401 Notify model change when feature is activated 2017-04-20 10:17:05 +02:00
Magne Sjaastad
82b6e4b8f2 #1401 Add ModelChangeDetector 2017-04-19 22:25:31 +02:00
Jacob Støren
cde71ef07a #1344 AppFwk: Renamed methods in uiTreeOrdering to align with uiOrdering 2017-03-22 15:57:04 +01:00
Jacob Støren
c77e674601 #1344 AppFwk: Cleaning up in PdmUiOrdering 2017-03-22 15:02:06 +01:00
Magne Sjaastad
df3ef7106d #1340 AppFwk : Improve how defineUiOrdering handles remaining fields 2017-03-21 13:47:53 +01:00
Jacob Støren
888db49d6c #1337 Caf: Preserve the user collapse settings for each object type within session.
Provide means to set groups collapsed by default in the defineUiOrdering method, and to force the setting disregrding the user actions
2017-03-20 22:12:07 +01: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
6a3f3e3670 Revert "#1292 Fixed CppCheck Issues in ProjectDataModel : Added assert"
This reverts commit cff588f166.
2017-03-07 12:24:35 +01:00
Magne Sjaastad
cff588f166 #1292 Fixed CppCheck Issues in ProjectDataModel : Added assert
Access the variable to silence CppCheck
2017-03-07 12:09:26 +01:00
Magne Sjaastad
b365834923 #1292 Fixed CppCheck Issues in AppFwk : Removed assign/copy operators 2017-03-07 11:14: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
38485fd96d Added caf prefix to virtual methods 2017-02-22 13:02:05 +01:00
Magne Sjaastad
03adf8f759 #1232 Delete child objects in destructor of ChildField and ChildArrayField 2017-02-17 11:37:26 +01:00
Jacob Støren
392dfac190 AppFwk: Made updateUiIconFromState handle dynamically assigned icons, and become uiConfigName aware. 2017-02-15 18:29:01 +01:00
Magne Sjaastad
8c01c23e5e #1156 Added tristate class and checkbox editor with tristate support 2017-02-01 09:52:01 +01:00
Magne Sjaastad
6528d243fe AppFwk : Use namespace prefix for parameters
When using Visual Assist for automatic implementation of virtual functions, the namespace must be included to be able to compile the generated code without any changes.
2017-01-26 11:51:52 +01:00
Magne Sjaastad
0a00f15e5d Removed whitespace 2017-01-26 11:31:04 +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
5d9fd5ddeb #1064 Use constexpr to verify keywords for pdmObject and pdmFields 2017-01-07 08:59:19 +01:00
Jacob Støren
8562d0e98b Merge with Flow Gui additions 2016-12-14 11:16:08 +01:00
Jacob Støren
c555f77a71 AppFwk: Added a convenince constructor to PdmOptionItemInfo to make it easier to use PdmPtrField 2016-12-14 09:12:27 +01:00
Magne Sjaastad
0f630c1f22 System : Added const to functions related to write of field data 2016-12-09 21:17:06 +01:00
Magne Sjaastad
a70939f1b6 #1000 System : Prepare for handling of copy/paste actions 2016-11-24 08:21:59 +01:00
Magne Sjaastad
07a38b6eaf #967 AppFwk : Improved performance of PdmOptionItemInfo::findValues 2016-11-10 08:46:54 +01:00