Skip to content
Snippets Groups Projects
Commit 34c72d01 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Save method on fsl.data.image.Image class, to be used by SaveImageAction.

parent f4ae881f
No related branches found
No related tags found
No related merge requests found
......@@ -423,6 +423,12 @@ class Image(props.HasProperties):
self.data = data
self.saved = False
def save(self):
"""
"""
pass
def __hash__(self):
......
......@@ -45,4 +45,6 @@ class CopyImageAction(actions.Action):
name = '{}_copy'.format(image.name)
copy = fslimage.Image(data, xform, name)
# TODO copy display properties
self._imageList.insert(imageIdx + 1, copy)
......@@ -39,9 +39,16 @@ class SaveImageAction(actions.Action):
def _imageSaveStateChanged(self, *a):
image = self._displayCtx.getSelectedImage()
self.enabled = image.saved
image = self._displayCtx.getSelectedImage()
if image is None: self.enabled = False
else: self.enabled = not image.saved
def doAction(self):
pass
image = self._displayCtx.getSelectedImage()
if image is None:
return
image.save()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment