ENH: Begin post-4.1.0-rc2 development

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19694 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Do not display "false" error message when loading PythonQt module on windows.

* To illustrate the issue, if we consider a python module named FooBar.pyd,
the build directory would also contain a file named "foobar.idb".

Since on windows the python function 'glob.glob. is case insensitive. The
function importQtClassesFromDirectory was reporting an error while
trying to first load the lower case version of the module. Then, the correct
cased module was successfully imported. Reporting an error that
didn't really occurred was confusing the user.

* The solution consisted in matching the filename using the provided
"filematch" expression.


* Note also that the code has been re-factored, the function
"importClassesFromDirectory" has been introduced.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19695 3bd1e089-480b-0410-8dfb-8563597acbee
BUG 1835. clean display node id in vtkMRMLDisplayableNode::SetNthDisplayNodeID() in case of passing null id. This fixes problem with clearing display node observers when passing NULL.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19696 3bd1e089-480b-0410-8dfb-8563597acbee
ENH:  change radius calculation mode for paint quickset

Per feedback from Ron radius is now set based on
the min spacing dimension.

Also added some tool tips describing the behavior

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19697 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Comply with the documented minimum required version of Qt

See http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.0/Developers/Build_Instructions/Prerequisites#Qt_library_requirements

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19698 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Error printed within 'slicer.util' are now written on stderr

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19699 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Ensure python stderr are not redirected into stdout

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19700 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: qSlicer(Core)PythonManager can now be initialized without qSlicer(Core)Application

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19701 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add unit test for qSlicerScriptedLoadableModuleWidget

* Added method pythonSource()

* Ensure that method setup() of qSlicerScriptedLoadableModuleWidget
can be called if no qSlicerScriptedLoadableModule has been set.

* Prevent crash if setPythonSource is called before python has been initialized.

* Remove commented code

* Improve error message by specifying the class where the error occurs.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19702 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Add test data associated with qSlicerScriptedLoadableModuleWidget unit test

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19703 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add unit test for qSlicerScriptedLoadableModule

* Add method pythonSource()

* Prevent crash if setPythonSource is called before python has been initialized.

* Remove commented code

* Improve error message by specifying the class where the error occurs.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19704 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Syntax error in one scripted module do not prevent other modules from loading.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19705 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Only code passed using '-c' is executed in "shebang" mode.

* Restore the original behavior associated with '--python-code', if this
option is used, all modules will be loaded and Slicer won't exit.

* Code passed using the option '-c' is executed similarly to what's done
with the regular python interpreter. See http://docs.python.org/tutorial/interpreter.html

* Main.cxx has been simplified, function "initializePython" has been
removed and corresponding code has been moved into qSlicerCoreCommandOption.
Commit 19377 make it possible because the "parseArgument" has been moved into
the "init" method of qSlicerCoreApplication pimpl.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19706 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Remove unused code. Revert r16982

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19707 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Consistently name unit test function.

* By convention, unit test function are expected to start with the "test" prefix.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19708 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Display result of python command into the qt console.

* This fix a regression introduced in r19700

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19709 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: working on bug 1812, but point to the 4.0 pages as the 4.1 pages aren't ready yet

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19710 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: bump CTK version to fix issue re-importing DICOM files after delete

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19711 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Prevent confusion bymoving SlicerCompleteBundles.cmake.in in CMake dir.

* Also update SlicerCPack.cmake so that configured files are created within
<Slicer_BINARY_DIR>/CMake

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19712 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Easier maintenance of build system by renaming "SlicerCompleteBundles" into "SlicerCPackBundleFixup"

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