Commit 2cf64b7e authored by payno's avatar payno

[orange add-on][shiftcorrection] add Setting

parent 5e8f4e6a
Pipeline #6691 passed with stage
in 2 minutes and 46 seconds
......@@ -33,7 +33,7 @@ from silx.gui import qt
from Orange.canvas.registry.description import InputSignal, OutputSignal
from Orange.widgets import gui
from Orange.widgets.widget import OWWidget
from Orange.widgets.settings import Setting
from id06workflow.core.experiment import Experiment
from id06workflow.core.types import _Image
from id06workflow.gui.shifcorrection import ShiftCorrectionWidget
......@@ -64,6 +64,10 @@ class ShiftCorrectionOW(OWWidget):
resizing_enabled = True
compress_signal = False
_dx = Setting(int())
_dy = Setting(int())
_dz = Setting(int())
def __init__(self):
super().__init__()
self._editedExperiment = None
......@@ -90,6 +94,8 @@ class ShiftCorrectionOW(OWWidget):
# expose API
self.setShift = self._widget.setShift
self._widget.setShift(dx=self._dx, dy=self._dy, dz=self._dz)
def _setProgressValue(self, value):
self._progress.widget.progressBarSet(value)
......@@ -122,3 +128,6 @@ class ShiftCorrectionOW(OWWidget):
image)
# TODO: clear widget to avoid reprocessing ?
OWWidget.accept(self)
def updateProperties(self):
self._dx, self._dy, self._dz = self._widget.getShift()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment