Commit Graph

268 Commits

Author SHA1 Message Date
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