from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class LayoutCls:
"""Layout commands group definition. 4 total commands, 4 Subgroups, 0 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("layout", core, parent)
@property
def identify(self):
"""identify commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_identify'):
from .Identify import IdentifyCls
self._identify = IdentifyCls(self._core, self._cmd_group)
return self._identify
@property
def catalog(self):
"""catalog commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_catalog'):
from .Catalog import CatalogCls
self._catalog = CatalogCls(self._core, self._cmd_group)
return self._catalog
@property
def add(self):
"""add commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_add'):
from .Add import AddCls
self._add = AddCls(self._core, self._cmd_group)
return self._add
@property
def replace(self):
"""replace commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_replace'):
from .Replace import ReplaceCls
self._replace = ReplaceCls(self._core, self._cmd_group)
return self._replace
def clone(self) -> 'LayoutCls':
"""Clones the group by creating new object from it and its whole existing subgroups
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group"""
new_group = LayoutCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group