From 208f2e47af4d003fcec39d5d877ad92717a35fc2 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Fri, 22 Mar 2019 11:26:49 +0100 Subject: [PATCH] [widgets] Freeze all editors --- beat/editor/widgets/algorithmeditor.py | 4 ++++ beat/editor/widgets/databaseeditor.py | 4 ++++ beat/editor/widgets/dataformateditor.py | 4 ++++ beat/editor/widgets/experimenteditor.py | 4 ++++ beat/editor/widgets/libraryeditor.py | 4 ++++ beat/editor/widgets/plottereditor.py | 4 ++++ beat/editor/widgets/plotterparameterseditor.py | 4 ++++ beat/editor/widgets/toolchaineditor.py | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/beat/editor/widgets/algorithmeditor.py b/beat/editor/widgets/algorithmeditor.py index f929a43..6ff9a32 100644 --- a/beat/editor/widgets/algorithmeditor.py +++ b/beat/editor/widgets/algorithmeditor.py @@ -23,12 +23,16 @@ # # ############################################################################### +from ..utils import frozen + from .editor import AbstractAssetEditor +@frozen class AlgorithmEditor(AbstractAssetEditor): def __init__(self, parent=None): super(AlgorithmEditor, self).__init__(parent) + self.setObjectName(self.__class__.__name__) self.set_title(self.tr("Algorithm")) def _load_json(self, json_object): diff --git a/beat/editor/widgets/databaseeditor.py b/beat/editor/widgets/databaseeditor.py index 649a12b..4cb8a34 100644 --- a/beat/editor/widgets/databaseeditor.py +++ b/beat/editor/widgets/databaseeditor.py @@ -23,12 +23,16 @@ # # ############################################################################### +from ..utils import frozen + from .editor import AbstractAssetEditor +@frozen class DatabaseEditor(AbstractAssetEditor): def __init__(self, parent=None): super(DatabaseEditor, self).__init__(parent) + self.setObjectName(self.__class__.__name__) self.set_title(self.tr("Database")) def _load_json(self, json_object): diff --git a/beat/editor/widgets/dataformateditor.py b/beat/editor/widgets/dataformateditor.py index fd03c07..b910d4d 100644 --- a/beat/editor/widgets/dataformateditor.py +++ b/beat/editor/widgets/dataformateditor.py @@ -23,12 +23,16 @@ # # ############################################################################### +from ..utils import frozen + from .editor import AbstractAssetEditor +@frozen class DataformatEditor(AbstractAssetEditor): def __init__(self, parent=None): super(DataformatEditor, self).__init__(parent) + self.setObjectName(self.__class__.__name__) self.set_title(self.tr("Dataformat")) def _load_json(self, json_object): diff --git a/beat/editor/widgets/experimenteditor.py b/beat/editor/widgets/experimenteditor.py index 90dca0a..2427833 100644 --- a/beat/editor/widgets/experimenteditor.py +++ b/beat/editor/widgets/experimenteditor.py @@ -23,12 +23,16 @@ # # ############################################################################### +from ..utils import frozen + from .editor import AbstractAssetEditor +@frozen class ExperimentEditor(AbstractAssetEditor): def __init__(self, parent=None): super(ExperimentEditor, self).__init__(parent) + self.setObjectName(self.__class__.__name__) self.set_title(self.tr("Experiment")) def _load_json(self, json_object): diff --git a/beat/editor/widgets/libraryeditor.py b/beat/editor/widgets/libraryeditor.py index e79a968..931eb7b 100644 --- a/beat/editor/widgets/libraryeditor.py +++ b/beat/editor/widgets/libraryeditor.py @@ -23,12 +23,16 @@ # # ############################################################################### +from ..utils import frozen + from .editor import AbstractAssetEditor +@frozen class LibraryEditor(AbstractAssetEditor): def __init__(self, parent=None): super(LibraryEditor, self).__init__(parent) + self.setObjectName(self.__class__.__name__) self.set_title(self.tr("Library")) def _load_json(self, json_object): diff --git a/beat/editor/widgets/plottereditor.py b/beat/editor/widgets/plottereditor.py index f24aead..fc542b0 100644 --- a/beat/editor/widgets/plottereditor.py +++ b/beat/editor/widgets/plottereditor.py @@ -23,12 +23,16 @@ # # ############################################################################### +from ..utils import frozen + from .editor import AbstractAssetEditor +@frozen class PlotterEditor(AbstractAssetEditor): def __init__(self, parent=None): super(PlotterEditor, self).__init__(parent) + self.setObjectName(self.__class__.__name__) self.set_title(self.tr("Plotter")) def _load_json(self, json_object): diff --git a/beat/editor/widgets/plotterparameterseditor.py b/beat/editor/widgets/plotterparameterseditor.py index 460dd9e..9cd1ac9 100644 --- a/beat/editor/widgets/plotterparameterseditor.py +++ b/beat/editor/widgets/plotterparameterseditor.py @@ -23,12 +23,16 @@ # # ############################################################################### +from ..utils import frozen + from .editor import AbstractAssetEditor +@frozen class PlotterParametersEditor(AbstractAssetEditor): def __init__(self, parent=None): super(PlotterParametersEditor, self).__init__(parent) + self.setObjectName(self.__class__.__name__) self.set_title(self.tr("Plotter Parameters")) def _load_json(self, json_object): diff --git a/beat/editor/widgets/toolchaineditor.py b/beat/editor/widgets/toolchaineditor.py index 7cd7be1..3c704a0 100644 --- a/beat/editor/widgets/toolchaineditor.py +++ b/beat/editor/widgets/toolchaineditor.py @@ -23,12 +23,16 @@ # # ############################################################################### +from ..utils import frozen + from .editor import AbstractAssetEditor +@frozen class ToolchainEditor(AbstractAssetEditor): def __init__(self, parent=None): super(ToolchainEditor, self).__init__(parent) + self.setObjectName(self.__class__.__name__) self.set_title(self.tr("Toolchain")) def _load_json(self, json_object): -- 2.21.0