COMP: Provide a mechanism to overwrite the auto-discovered Slicer_WC_REVISION

Such mechanism allows to overwrite the discovered Slicer_WC_REVISION
and build extensions against an expected revision associated with
a Slicer release.

While the core functionality (API/ABI) of slicer wouldn't be modified by a
newer Slicer revision, the extension build system could be improved or
fixed by a more recent set of patches. In that specific case, the option
Slicer_FORCED_WC_REVISION could be used.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19971 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Make sure more than one PythonQt module could be loaded in a given directory.

In case the regular expression doesn't match, the other filename should
be considered.

This is a follow up of r19695

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19972 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix qtTesting tests when slicer use qtTesting.

Bug fix in CTK, commit:
8b399aea484ef6fca0eef26b7f59f0d00f6a7b05

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19973 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Ensure that QtTesting project is found when building extensions

This will fix link issue associated with extension:

//--------
Scanning dependencies of target ConfigureAdditionalLauncherSettings
[  4%] Configuring: AdditionalLauncherSettings.ini
[  4%] Built target ConfigureAdditionalLauncherSettings
Scanning dependencies of target vtkSlicerLoadableExtensionTemplateModuleLogic
[  8%] Building CXX object Logic/CMakeFiles/vtkSlicerLoadableExtensionTemplateModuleLogic.dir/vtkSlicerLoadableExtensionTemplateLogic.cxx.o
c++: --no-undefined: linker input file unused because linking not done
Linking CXX shared library ../lib/Slicer-4.1/qt-loadable-modules/libvtkSlicerLoadableExtensionTemplateModuleLogic.so
/usr/bin/ld: cannot find -lQtTesting
//--------

See http://slicer.cdash.org/viewBuildError.php?buildid=17278

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19974 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add option in settings to enable QtTesting. Off by default

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19975 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Remove empty directory. Using git-svn option --rmdir would avoid this commit.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19976 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix bugs in vtkMRMLDisplayableNode

Previous version of vtkMRMLDisplayableNode didn't handle correctly:
 - DisplayNodes list synchronization with DisplayNodeIDs list
   - sometimes the ID could removed from the DisplayNodeIDs list but not in DisplayNodes list
 - DisplayModifiedEvent was not fired every time a display node was set
 - Some methods where clearing the display node list for no good reason (e.g. UpdateScene)
 - Too many ModifiedEvent could be fired when processing each node ID in a loop (solution is to use Start/EndModify())
 - Code was not factorized (AddReferencedNodeID was called at multiple locations, clear() and erase() were done at different locations)
 - ...

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19977 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Adding test for the module

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19978 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Exclude TclTk .SVN files (36MB, 1600 files) from the installation package. It slightly decreases the installer package size and installation time.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19979 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix QtTesting unit tests, but not the serialize issue.

Please note that those tests can failed because they are not serialized
yet.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19980 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Ensure extension template dashboard script downloads driver script

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19981 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Continuous extension build system also consider Slicer revision updates.

To summarize, the continuous build system now consider two possible updates:
 1) Update associated with ExtensionsIndex git repository
 2) Change of version associated with Slicer itself

The task (2) is achieved by extracting the revision from vtkSlicerConfigure.h
header file.

moving forward a mechanism preventing the build of extension if Slicer itself
isn't fully build should probably be implemented.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19982 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Serialized qttesting unit test to provide potentials failed.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19983 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: vtkMRMLDisplayableNode intermediate state was caught by Model displayable manager

When a null node ID was set to the displayable node, the DisplayNodeIDs had its element erased, and while unobserving the display node (vtkMRMLDisplayableNode::SetAndObserveNthDisplayNode(n,0)), DisplayModifiedEvent was fired and caught by the model displayable manager before the DisplayNodes element was erased from the list.
In the displayable manager, GetDisplayNodes() was called which fired an assert as the lists DisplayNodeIDs and DisplayNodes had a different size.
For the sake of testing, GetInternalDisplayNodes is exposed to check the internal values of the displayable node.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19984 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix compilation warnings and typo

* unused variable
* signed vs unsigned comparison
* old copy paste settings label

Closes #1970

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19985 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Don't pass a potentially deleted node in OnDisplayNodeAdded

Some derived class (e.g. vtkMRMLVolumeNode::OnDisplayNodeAdded) can use that pointer.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19986 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix unused variable warning in qSlicerSettingsQtTestingPanel

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19987 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Further refine the behavior of vtkMRMLDisplayableNode

When a displayable node is removed from the scene, its display nodes shall be 0 as they can't be found from the scene which is 0.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19988 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: bug 1593, take out the view transform mode action, update the test

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19989 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: make the fiducial annotation the default when it gets added

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