STYLE: Avoid confusion creating enum for custom SaveDataDialog role.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22686 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Properly support extension

Revert commit r22148 that was setting the path to saved MRB as MRMLScene URL.
The MRML scene URL knows remains associated with the mrml file after either
a read or save to mrml, or even export (MRB, Kiwi.zip, ...) operation.

To be able to properly switch between different available file formats
while supporting filename containing dots. The extension of a filename
needs to be removed based on a list of known extensions. For that purpose,
the following two functions have been introduced:
  - extractKnownExtension
  - stripKnownExtension

These functions rely on the existing IOManager function "fileWriterExtensions"
able to return a list of name filters associated with either a storage node
or a mrml scene.

For any fileName item, in order to get the associated storage node or mrml scene,
a new role named "UIDRole" has been introduced. For a given fileName item,
if a nodeID is set with the "UIDRole", it is understood that it will
be the nodeID of the corresponding storage node. If it is not set, it means
the fileName item is associated the scene.

See #2948

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22687 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: In Slicer session, keep track of Scene file format used to save

Within a given a Slicer session, the selected Scene file format will
be remembered if the scene could be successfully saved/exported.
Note that the corresponding value won't be saved into the settings.

See #2948

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22688 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: dicom header viewer added to DICOMLib using ctkDICOMObjectListWidget

ENH: update DICOM module for Table View

New interface to support better searching and header display.

Now plugins are selectable to avoid wasting time on unneeded plugins.

Plugins are now evaluated on-demand, to simplify the workflow.

http://www.commontk.org/index.php/CTK-Hackfest-May-2013#DICOM_Database_and_Networking

https://github.com/commontk/CTK/pull/361

ENH: update to latest CTK for header widget

Also fix lingering rebase issue (stray variable).

BUG: Give header popup independent geometry setting

Also fix incorrect end of line character

ENH: examine button diabled until needed

STYLE: remove tabs in code

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