delegate
SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- class omni.flux.validator.mass.queue.widget.setup_ui.MassQueueTreeWidget(tree_model: Optional[omni.flux.validator.mass.queue.widget.tree.model.Model] = None, tree_delegate: Optional[omni.flux.validator.mass.queue.widget.tree.delegate.Delegate] = None, use_global_style: bool = False, style: Optional[Dict[str, Any]] = None)
Bases:
object
- __init__(tree_model: Optional[omni.flux.validator.mass.queue.widget.tree.model.Model] = None, tree_delegate: Optional[omni.flux.validator.mass.queue.widget.tree.delegate.Delegate] = None, use_global_style: bool = False, style: Optional[Dict[str, Any]] = None)
Panel outliner widget
- Parameters
tree_model – model that will feed the outliner (that is already initialized)
tree_delegate – custom delegate (that should not be initialized)
use_global_style – use the global style or the one from the extension
style – if use_global_style is False, we use this dict
- add_items(cores: List[_ManagerCore])
- destroy()
- get_queue_id()
- show(value: bool)
This function tell us if the widget is shown or not. When not, we pause any update of the items in the tree. When widget is shown, we update the items
- Parameters
value – value that tell us if we see the widget or not
- subscribe_item_changed(function: Callable[[omni.flux.validator.mass.queue.widget.tree.model.Model, List[omni.flux.validator.mass.queue.widget.tree.model.Item]], Any])
- subscribe_selection_changed(callback: Callable[[List[omni.flux.validator.mass.queue.widget.tree.model.Item]], Any])
Return the object that will automatically unsubscribe when destroyed. Subscription that will let the plugin re-run a validation by itself.
- property tree_model: omni.flux.validator.mass.queue.widget.tree.model.Model