from ui.editor import Editor


class Leak_Step_Editor(Editor):
    def __init__(self, cell_widget=None):
        super().__init__(cell_widget=cell_widget)
        self.spec.update({
            # pre-filling
            "pre_filling_time": self.pre_filling_time_sb,
            "pre_filling_pressure": self.pre_filling_pressure_sb,
            # filling
            "filling_time": self.filling_time_sb,
            "settling_time": self.settling_time_sb,
            "settling_pressure_min_percent": self.settling_pressure_min_percent_sb,
            "settling_pressure_max_percent": self.settling_pressure_max_percent_sb,
            # test
            "test_time": self.test_time_sb,
            "test_pressure_min_delta": self.test_pressure_min_delta_sb,
            "test_pressure": self.test_pressure_sb,
            "test_pressure_max_delta": self.test_pressure_max_delta_sb,
            # flush
            "flush_time": self.flush_time_sb,
            "flush_pressure": self.flush_pressure_sb,
        })
