Import 2017-06-07 23:51:09: master fb0da667

Author Committer Branch Timestamp Parent
naucoin naucoin master 2014-05-13 11:30:42 master 0c151a5d
Affected Issues 0001299: Facelift for Sceneviews Module
Changeset

ENH: html facelift for SceneViews

Implemented a Qt web view and populated it with HTML to allow
viewing, editing, restoring, creating scene views with the
layout requested.

The scene view thumbnail is being written to disk in a temp dir.
To get the Edit, Delete, Restore and Capture funtionality I'm capturing the
clicks on the links and parsing specially formatted urls
(Edit/Restore/Delete mrmlNodeID/Create)

Clear out the temp files on scene close and clear the memory cache, now
don't have to write them out all the time. Resize the images before
writing to disk so that the web view doesn't have to handle resizing.
Added in support for VTK6
Created new MRML web view based on the qMRMLChartView.
It allows better resizing (returns an invalid size hint,
sets size policy to expanding/expanding) so that the web
view doesn't keep getting reset to width = 800.
Added a plug in for the designer.
Save and restore the scroll position so user goes back
to the scene view node that they were previously viewing after
adding a new scene view.

Running on a mac, you can't see the scroll bar
on the data store page nor on the scene views
module widget, but it is visible on a linux build.
You can scroll using the trackpad and it is consistent,
so only show the scroll bar as needed.
The dialog superclass disables capturing a new
thumbnail on review/edit so don't resave the thumbnail type nor the image data.

Issue 0001299

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23160 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Libs/MRML/Widgets/CMakeLists.txt Diff File
mod - Libs/MRML/Widgets/DesignerPlugins/CMakeLists.txt Diff File
add - Libs/MRML/Widgets/DesignerPlugins/qMRMLExpandingWebViewPlugin.cxx Diff File
add - Libs/MRML/Widgets/DesignerPlugins/qMRMLExpandingWebViewPlugin.h Diff File
mod - Libs/MRML/Widgets/DesignerPlugins/qMRMLWidgetsPlugin.h Diff File
add - Libs/MRML/Widgets/qMRMLExpandingWebView.cxx Diff File
add - Libs/MRML/Widgets/qMRMLExpandingWebView.h Diff File
add - Libs/MRML/Widgets/qMRMLExpandingWebView_p.h Diff File
mod - Modules/Loadable/SceneViews/CMakeLists.txt Diff File
rm - Modules/Loadable/SceneViews/GUI/qMRMLSceneViewsModel.cxx Diff File
rm - Modules/Loadable/SceneViews/GUI/qMRMLSceneViewsModel.h Diff File
rm - Modules/Loadable/SceneViews/GUI/qMRMLSceneViewsTreeView.cxx Diff File
rm - Modules/Loadable/SceneViews/GUI/qMRMLSceneViewsTreeView.h Diff File
mod - Modules/Loadable/SceneViews/GUI/qSlicerSceneViewsModuleWidget.cxx Diff File
mod - Modules/Loadable/SceneViews/GUI/qSlicerSceneViewsModuleWidget.h Diff File
mod - Modules/Loadable/SceneViews/Logic/vtkSlicerSceneViewsModuleLogic.cxx Diff File
mod - Modules/Loadable/SceneViews/Logic/vtkSlicerSceneViewsModuleLogic.h Diff File
mod - Modules/Loadable/SceneViews/Resources/UI/qSlicerSceneViewsModuleWidget.ui Diff File
mod - Modules/Loadable/SceneViews/qSlicerSceneViewsModule.cxx Diff File