BUG: Exit current module before closing Slicer

Exiting the current module in the module panel destructor is not enough.
It happens too late, ideally it should happen before the layout manager
is destructed but also before the current layout is saved into settings as
exiting a module can "revert" the current layout.

qSlicerModuleSelectorToolBar::actionSelected was crashing when the QAction
was 0.

Closes #1787

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19518 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: don't remove nodes if the node removed event comes when the scene is closing, as the scene is handling removal of all nodes

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19519 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Some Qt versions don't expose their private headers

Qt that are "installed" not "build" don't come with private headers.
This makes the preset tooltip preview don't work on Qt <4.7

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19520 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Some Qt versions don't expose their private headers (part 2)

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19521 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Add verbosity to vtkMRMLVolumeArchetypeStorageNode::UpdateFileList

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19522 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: vtkMRMLVolumeArchetypeStorageNode doesn't compile on gcc

missing header

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19523 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Don't remove directory that doesn't exist in vtkMRMLVolumeArchetypeStorageNode

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19524 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: closing bug 1783. Don't clear out nodes on scene close as it removes hierarchy display nodes.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19525 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Updated to include BRAINSFitEZ.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19526 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Updated BRAINSTools and ITKv4 and SimpleITK in preparation for the Iowa Training.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19527 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: In CLI modules, if volume type is specified, don't allow subclass as valid node

Example:
Don't allow DTI nodes as output of Diffusion Tensor Scalar Measurements, only Scalar volumes.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19528 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Inconsistent DLL linkage in MeshContourSegmentation

When the module has been renamed (r19175), the EXPORT variable hasn't been renamed accordingly.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19529 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix compilation warnings, loss of precision

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19530 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Subparcellation of final label map did not work

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19531 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Info message was in old qt format which caused the segmenter not to execute correctly

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19532 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Assert when leaving Tractography Fiducial Seeding

For each qSlicerAbstractModuleWidget::enter() must match one
 qSlicerAbstractModuleWidget::exit. Here qSlicerAbstractModuleWidget::enter()
was never called, but qSlicerAbstractModuleWidget::exit() was called.
Closes #1793

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19533 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fixed issue when loading mrml scene in EMSegment without Atlas

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19534 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Word wrap tooltips

Closes #1527

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19535 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add cache manager settings

Default cache directory is $TEMP/Slicer/RemoteIO

vtkCacheManager::SettingsUpdateEvent is not needed, use ModifiedEvent instead.

Warning, the cache manager is not properly configured if the application runs in GUI-less environment

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19536 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Make vtkArchive::extract_tar more verbose

Report error in copy_data()

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