Commit 208f2e47 authored by Samuel GAIST's avatar Samuel GAIST

[widgets] Freeze all editors

parent c78684b3
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
# # # #
############################################################################### ###############################################################################
from ..utils import frozen
from .editor import AbstractAssetEditor from .editor import AbstractAssetEditor
@frozen
class AlgorithmEditor(AbstractAssetEditor): class AlgorithmEditor(AbstractAssetEditor):
def __init__(self, parent=None): def __init__(self, parent=None):
super(AlgorithmEditor, self).__init__(parent) super(AlgorithmEditor, self).__init__(parent)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Algorithm")) self.set_title(self.tr("Algorithm"))
def _load_json(self, json_object): def _load_json(self, json_object):
......
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
# # # #
############################################################################### ###############################################################################
from ..utils import frozen
from .editor import AbstractAssetEditor from .editor import AbstractAssetEditor
@frozen
class DatabaseEditor(AbstractAssetEditor): class DatabaseEditor(AbstractAssetEditor):
def __init__(self, parent=None): def __init__(self, parent=None):
super(DatabaseEditor, self).__init__(parent) super(DatabaseEditor, self).__init__(parent)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Database")) self.set_title(self.tr("Database"))
def _load_json(self, json_object): def _load_json(self, json_object):
......
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
# # # #
############################################################################### ###############################################################################
from ..utils import frozen
from .editor import AbstractAssetEditor from .editor import AbstractAssetEditor
@frozen
class DataformatEditor(AbstractAssetEditor): class DataformatEditor(AbstractAssetEditor):
def __init__(self, parent=None): def __init__(self, parent=None):
super(DataformatEditor, self).__init__(parent) super(DataformatEditor, self).__init__(parent)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Dataformat")) self.set_title(self.tr("Dataformat"))
def _load_json(self, json_object): def _load_json(self, json_object):
......
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
# # # #
############################################################################### ###############################################################################
from ..utils import frozen
from .editor import AbstractAssetEditor from .editor import AbstractAssetEditor
@frozen
class ExperimentEditor(AbstractAssetEditor): class ExperimentEditor(AbstractAssetEditor):
def __init__(self, parent=None): def __init__(self, parent=None):
super(ExperimentEditor, self).__init__(parent) super(ExperimentEditor, self).__init__(parent)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Experiment")) self.set_title(self.tr("Experiment"))
def _load_json(self, json_object): def _load_json(self, json_object):
......
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
# # # #
############################################################################### ###############################################################################
from ..utils import frozen
from .editor import AbstractAssetEditor from .editor import AbstractAssetEditor
@frozen
class LibraryEditor(AbstractAssetEditor): class LibraryEditor(AbstractAssetEditor):
def __init__(self, parent=None): def __init__(self, parent=None):
super(LibraryEditor, self).__init__(parent) super(LibraryEditor, self).__init__(parent)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Library")) self.set_title(self.tr("Library"))
def _load_json(self, json_object): def _load_json(self, json_object):
......
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
# # # #
############################################################################### ###############################################################################
from ..utils import frozen
from .editor import AbstractAssetEditor from .editor import AbstractAssetEditor
@frozen
class PlotterEditor(AbstractAssetEditor): class PlotterEditor(AbstractAssetEditor):
def __init__(self, parent=None): def __init__(self, parent=None):
super(PlotterEditor, self).__init__(parent) super(PlotterEditor, self).__init__(parent)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Plotter")) self.set_title(self.tr("Plotter"))
def _load_json(self, json_object): def _load_json(self, json_object):
......
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
# # # #
############################################################################### ###############################################################################
from ..utils import frozen
from .editor import AbstractAssetEditor from .editor import AbstractAssetEditor
@frozen
class PlotterParametersEditor(AbstractAssetEditor): class PlotterParametersEditor(AbstractAssetEditor):
def __init__(self, parent=None): def __init__(self, parent=None):
super(PlotterParametersEditor, self).__init__(parent) super(PlotterParametersEditor, self).__init__(parent)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Plotter Parameters")) self.set_title(self.tr("Plotter Parameters"))
def _load_json(self, json_object): def _load_json(self, json_object):
......
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
# # # #
############################################################################### ###############################################################################
from ..utils import frozen
from .editor import AbstractAssetEditor from .editor import AbstractAssetEditor
@frozen
class ToolchainEditor(AbstractAssetEditor): class ToolchainEditor(AbstractAssetEditor):
def __init__(self, parent=None): def __init__(self, parent=None):
super(ToolchainEditor, self).__init__(parent) super(ToolchainEditor, self).__init__(parent)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Toolchain")) self.set_title(self.tr("Toolchain"))
def _load_json(self, json_object): def _load_json(self, json_object):
......
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