Commit Graph
60 Commits
Author SHA1 Message Date
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
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 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 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
Gaute Lindkvist c82a4a5537 #4316 Fix context menu with multiple selected well paths 2019-04-12 09:09:12 +02:00
Gaute Lindkvist 3d3868e29d Fix up keyboard shorcut on < Qt 5.10 2019-03-27 12:01:49 +01:00
Gaute Lindkvist 9306961df4 #4176 Enable Del keyboard shortcut for delete commands 2019-03-27 11:03:10 +01:00
Gaute Lindkvist f066829a0f #4176 Add feature to cafCmdFeatureManager to find commands matching a keyboard shortcut 2019-03-27 10:29:26 +01:00
Magne Sjaastad 288ee59587 #4066 System : Improve cmake macros for cotire 2019-02-11 07:13:08 +01:00
Magne Sjaastad 75833f491a #4061 AppFwk : Remove obsolete code 2019-02-08 12:10:52 +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
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
Gaute Lindkvist ddb546d877 #3754 Upgrade CAF CMake-system to support both Qt4 and Qt5 2018-11-30 09:47:53 +01: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
Magne Sjaastad b584ab905c AppFwk : Activate more warnings 2018-09-27 21:36:52 +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 37cb3e0ab7 caf: Removed obsolete SelectionManager includes 2018-08-21 16:44:20 +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 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
Bjørn Erik Jensen d659b8e853 #2856 Context menus. Fix logical error during menu build-up 2018-05-07 12:24:51 +02:00
Magne Sjaastad 4377ac2a6b AppFwk : Remove sub menu action if sub menu is empty 2018-04-09 11:36:01 +02: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 3239c66f54 AppFwk (clang-tidy) : modernize-use-nullptr 2018-02-18 18:05:08 +01:00
Bjørn Erik Jensen 6028d8fcb3 MenuBuilder. Add query method isCmdFeatureAdded 2017-12-21 14:32:59 +01:00
Bjørn Erik Jensen 506c454059 MenuBuilder. Fix: Menu separator always added to top level menu 2017-12-21 13:17:23 +01:00
Magne Sjaastad a96b65cc7f #2144 Context menu builder : Whitespace cleanup and removed unused includes 2017-12-01 08:33:26 +01:00
Magne Sjaastad 476b96b343 #2144 Context menu : Add support for icons on sub menus 2017-12-01 08:28:41 +01:00
Rebecca Cox d2e590875d AppFwk: Always update userData of actions 2017-11-29 08:51:55 +01:00
Bjørn Erik Jensen ebb726ae0c Replace CVF_ASSERT by CAF_ASSERT 2017-11-20 12:46:13 +01:00
Bjørn Erik Jensen 931bc71deb Submenus. Minor refactoring 2017-11-20 09:44:55 +01:00
Bjørn Erik Jensen e0b6062eca Fix Linux build warning and error 2017-11-20 08:57:20 +01:00
Bjørn Erik Jensen 31a84181e6 #2020 Move LAS files. Support for submenus and command features with custom name and user data 2017-11-20 08:27:38 +01:00
Magne Sjaastad 530400fb28 #1401 Notify model change when feature is activated 2017-04-20 10:17:05 +02:00
Magne Sjaastad 866350756c #1260 Fixed typo in AppFwk 2017-03-13 06:59:42 +01:00
Magne Sjaastad a87ad2e56e Avoid use of CAF_ASSERT in application code 2017-03-10 14:44:00 +01:00
Magne Sjaastad 6791600d03 #1260 Replaced assert() with CAF_ASSERT() in AppFwk 2017-03-08 08:19:51 +01:00
Magne Sjaastad 811f63219c #1292 Fixed CppCheck Issues in AppFwk : Use QPointer 2017-03-07 11:36:29 +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 9179ae2a14 #1292 Fixed CppCheck Issues in AppFwk/cafCommands 2017-03-06 18:33:03 +01:00
Magne Sjaastad 58caac451c AppFwk : Added CmdExecCommandSystemActivator 2016-12-09 14:37:30 +01:00
Magne Sjaastad a70939f1b6 #1000 System : Prepare for handling of copy/paste actions 2016-11-24 08:21:59 +01:00
Magne Sjaastad 454805b9de #922 AppFwk : Introduced PdmUiFieldHandleInterface and made setValueFromUiEditor private 2016-10-20 11:31:11 +02:00
Magne Sjaastad 33c53830f6 [Fwk] Integrated improvements to command mananger 2015-12-22 13:00:13 +01:00
Magne Sjaastad fb55b469a0 System : Replaced tab with four spaces in AppFwk 2015-10-23 15:21:45 +02:00
Magne Sjaastad edc6e427ec [System] Revert test code 2015-10-06 15:26:22 +02:00
Magne Sjaastad 792793b6ed Generalized update 2015-08-26 14:52:35 +02:00