ovui-widgets-layers 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,97 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: LicenseRef-NvidiaProprietary
3
+ #
4
+ # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
5
+ # property and proprietary rights in and to this material, related
6
+ # documentation and any modifications thereto. Any use, reproduction,
7
+ # disclosure or distribution of this material and related documentation
8
+ # without an express license agreement from NVIDIA CORPORATION or
9
+ # its affiliates is strictly prohibited.
10
+
11
+ """ovui_widgets.layers: USD layer-stack window package.
12
+
13
+ Public surface:
14
+
15
+ - :class:`LayerWindow` — dockable panel shell (LAYERS-PLAN Step 8).
16
+ - :class:`LayerItem` — per-row data object for the Layers tree
17
+ (LAYERS-PLAN Step 12).
18
+ - :class:`LayerModel` — :class:`ui.AbstractItemModel` for the tree
19
+ (LAYERS-PLAN Step 13).
20
+ - :class:`LayerDelegate` — per-cell renderer for the seven-column
21
+ tree (LAYERS-PLAN Step 17).
22
+ - :class:`PrimSpecItem` — per-row data object for a single prim spec
23
+ rendered under its layer (LAYERS-PLAN Step 48).
24
+ - :class:`LayerSelectionWatch` — observes tree-view selection and fires
25
+ listeners on focused-layer changes (LAYERS-PLAN Step 55).
26
+ - :class:`LayerNameValueModel` — name-column value model with suffix
27
+ and color-role state (LAYERS-PLAN Step 18).
28
+ - :class:`SaveValueModel` — column-2 dirty-and-saveable value model
29
+ with click-to-save write surface (LAYERS-PLAN Step 19).
30
+ - :class:`LocalMuteValueModel` — column-3 local-mute value model
31
+ with click-toggle write surface (LAYERS-PLAN Step 20).
32
+ - :class:`LockValueModel` — column-6 lock value model with
33
+ click-toggle write surface (LAYERS-PLAN Step 21).
34
+ - :class:`AbstractLayerCommand` — common base class for every
35
+ undoable layer mutation (LAYERS-PLAN Step 28). Individual concrete
36
+ commands (Steps 29+) live in :mod:`ovui_widgets.layers.commands` and are
37
+ imported from there.
38
+
39
+ The USD-backed adapter (:class:`UsdLayerStackAdapter`) is not
40
+ re-exported here — import it from
41
+ :mod:`ovui_data_adapters.openusd` directly when ``pxr`` is available
42
+ (Step 15 of the data-adapters refactor relocated it out of widgets).
43
+ The :class:`LayerStackAdapter` ABC lives in
44
+ :mod:`ovui_data_adapters.common` (issue #38).
45
+ """
46
+
47
+ from ovui_widgets.layers.commands import AbstractLayerCommand
48
+ from ovui_widgets.layers.context_menu import (
49
+ ContextMenuBuilder,
50
+ ContextMenuEntry,
51
+ MenuContext,
52
+ )
53
+ from ovui_widgets.layers.drop_visual_controller import DropVisualController
54
+ from ovui_widgets.layers.layer_delegate import LayerDelegate
55
+ from ovui_widgets.layers.layer_item import LayerItem
56
+ from ovui_widgets.layers.layer_model import DefaultLayerSettings, LayerModel
57
+ from ovui_widgets.layers.layer_settings import LAYER_SETTINGS_KEYS, LayerSettings
58
+ from ovui_widgets.layers.models import (
59
+ LayerNameValueModel,
60
+ LocalMuteValueModel,
61
+ LockValueModel,
62
+ SaveAllValueModel,
63
+ SaveValueModel,
64
+ )
65
+ from ovui_widgets.layers.options_button import MENU_ITEMS as OPTIONS_MENU_ITEMS
66
+ from ovui_widgets.layers.options_button import OptionsButton
67
+ from ovui_widgets.layers.prim_spec_item import PrimSpecItem
68
+ from ovui_widgets.layers.selection_watch import (
69
+ LAYERS_SELECT_SOURCE,
70
+ LayerSelectionWatch,
71
+ )
72
+ from ovui_widgets.layers.window import LayerWindow
73
+
74
+ __all__ = [
75
+ "AbstractLayerCommand",
76
+ "ContextMenuBuilder",
77
+ "ContextMenuEntry",
78
+ "DefaultLayerSettings",
79
+ "DropVisualController",
80
+ "LAYERS_SELECT_SOURCE",
81
+ "LAYER_SETTINGS_KEYS",
82
+ "LayerDelegate",
83
+ "LayerItem",
84
+ "LayerModel",
85
+ "LayerNameValueModel",
86
+ "LayerSelectionWatch",
87
+ "LayerSettings",
88
+ "LayerWindow",
89
+ "LocalMuteValueModel",
90
+ "LockValueModel",
91
+ "MenuContext",
92
+ "OPTIONS_MENU_ITEMS",
93
+ "OptionsButton",
94
+ "PrimSpecItem",
95
+ "SaveAllValueModel",
96
+ "SaveValueModel",
97
+ ]
@@ -0,0 +1,55 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: LicenseRef-NvidiaProprietary
3
+ #
4
+ # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
5
+ # property and proprietary rights in and to this material, related
6
+ # documentation and any modifications thereto. Any use, reproduction,
7
+ # disclosure or distribution of this material and related documentation
8
+ # without an express license agreement from NVIDIA CORPORATION or
9
+ # its affiliates is strictly prohibited.
10
+
11
+ """Compatibility exports for layer operation commands.
12
+
13
+ The canonical frontend-neutral implementation lives in
14
+ ``ovui_data_adapters.services.layers.commands``.
15
+ """
16
+
17
+ from ovui_data_adapters.services.layers.commands import (
18
+ AbstractLayerCommand,
19
+ CreateSublayerCommand,
20
+ FlattenSublayersCommand,
21
+ InsertSublayerCommand,
22
+ LAYERS_COMMAND_SOURCE,
23
+ LAYERS_UNDO_SOURCE,
24
+ MergeDownCommand,
25
+ MoveSublayerCommand,
26
+ ReloadLayerCommand,
27
+ RemovePrimSpecsCommand,
28
+ RemoveSublayerCommand,
29
+ ReplaceSublayerCommand,
30
+ SaveLayerAsCommand,
31
+ SaveLayerCommand,
32
+ SetEditTargetCommand,
33
+ SetLayerLockCommand,
34
+ SetLayerMutenessCommand,
35
+ )
36
+
37
+ __all__ = [
38
+ "AbstractLayerCommand",
39
+ "CreateSublayerCommand",
40
+ "FlattenSublayersCommand",
41
+ "InsertSublayerCommand",
42
+ "LAYERS_COMMAND_SOURCE",
43
+ "LAYERS_UNDO_SOURCE",
44
+ "MergeDownCommand",
45
+ "MoveSublayerCommand",
46
+ "ReloadLayerCommand",
47
+ "RemovePrimSpecsCommand",
48
+ "RemoveSublayerCommand",
49
+ "ReplaceSublayerCommand",
50
+ "SaveLayerAsCommand",
51
+ "SaveLayerCommand",
52
+ "SetEditTargetCommand",
53
+ "SetLayerLockCommand",
54
+ "SetLayerMutenessCommand",
55
+ ]
@@ -0,0 +1,23 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: LicenseRef-NvidiaProprietary
3
+ #
4
+ # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
5
+ # property and proprietary rights in and to this material, related
6
+ # documentation and any modifications thereto. Any use, reproduction,
7
+ # disclosure or distribution of this material and related documentation
8
+ # without an express license agreement from NVIDIA CORPORATION or
9
+ # its affiliates is strictly prohibited.
10
+
11
+ """Compatibility exports for layer command base behavior."""
12
+
13
+ from ovui_data_adapters.services.layers.commands.base import (
14
+ LAYERS_COMMAND_SOURCE,
15
+ LAYERS_UNDO_SOURCE,
16
+ AbstractLayerCommand,
17
+ )
18
+
19
+ __all__ = [
20
+ "AbstractLayerCommand",
21
+ "LAYERS_COMMAND_SOURCE",
22
+ "LAYERS_UNDO_SOURCE",
23
+ ]
@@ -0,0 +1,23 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: LicenseRef-NvidiaProprietary
3
+ #
4
+ # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
5
+ # property and proprietary rights in and to this material, related
6
+ # documentation and any modifications thereto. Any use, reproduction,
7
+ # disclosure or distribution of this material and related documentation
8
+ # without an express license agreement from NVIDIA CORPORATION or
9
+ # its affiliates is strictly prohibited.
10
+
11
+ """Compatibility exports for layer file I/O commands."""
12
+
13
+ from ovui_data_adapters.services.layers.commands.file_io_commands import (
14
+ ReloadLayerCommand,
15
+ SaveLayerAsCommand,
16
+ SaveLayerCommand,
17
+ )
18
+
19
+ __all__ = [
20
+ "ReloadLayerCommand",
21
+ "SaveLayerAsCommand",
22
+ "SaveLayerCommand",
23
+ ]
@@ -0,0 +1,23 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: LicenseRef-NvidiaProprietary
3
+ #
4
+ # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
5
+ # property and proprietary rights in and to this material, related
6
+ # documentation and any modifications thereto. Any use, reproduction,
7
+ # disclosure or distribution of this material and related documentation
8
+ # without an express license agreement from NVIDIA CORPORATION or
9
+ # its affiliates is strictly prohibited.
10
+
11
+ """Compatibility exports for layer setter commands."""
12
+
13
+ from ovui_data_adapters.services.layers.commands.layer_commands import (
14
+ SetEditTargetCommand,
15
+ SetLayerLockCommand,
16
+ SetLayerMutenessCommand,
17
+ )
18
+
19
+ __all__ = [
20
+ "SetEditTargetCommand",
21
+ "SetLayerLockCommand",
22
+ "SetLayerMutenessCommand",
23
+ ]
@@ -0,0 +1,21 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: LicenseRef-NvidiaProprietary
3
+ #
4
+ # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
5
+ # property and proprietary rights in and to this material, related
6
+ # documentation and any modifications thereto. Any use, reproduction,
7
+ # disclosure or distribution of this material and related documentation
8
+ # without an express license agreement from NVIDIA CORPORATION or
9
+ # its affiliates is strictly prohibited.
10
+
11
+ """Compatibility exports for merge and flatten layer commands."""
12
+
13
+ from ovui_data_adapters.services.layers.commands.merge_flatten_commands import (
14
+ FlattenSublayersCommand,
15
+ MergeDownCommand,
16
+ )
17
+
18
+ __all__ = [
19
+ "FlattenSublayersCommand",
20
+ "MergeDownCommand",
21
+ ]
@@ -0,0 +1,29 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: LicenseRef-NvidiaProprietary
3
+ #
4
+ # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
5
+ # property and proprietary rights in and to this material, related
6
+ # documentation and any modifications thereto. Any use, reproduction,
7
+ # disclosure or distribution of this material and related documentation
8
+ # without an express license agreement from NVIDIA CORPORATION or
9
+ # its affiliates is strictly prohibited.
10
+
11
+ """Compatibility exports for sublayer operation commands."""
12
+
13
+ from ovui_data_adapters.services.layers.commands.sublayer_commands import (
14
+ CreateSublayerCommand,
15
+ InsertSublayerCommand,
16
+ MoveSublayerCommand,
17
+ RemovePrimSpecsCommand,
18
+ RemoveSublayerCommand,
19
+ ReplaceSublayerCommand,
20
+ )
21
+
22
+ __all__ = [
23
+ "CreateSublayerCommand",
24
+ "InsertSublayerCommand",
25
+ "MoveSublayerCommand",
26
+ "RemovePrimSpecsCommand",
27
+ "RemoveSublayerCommand",
28
+ "ReplaceSublayerCommand",
29
+ ]