tik_manager4.ui.mcv.version_mcv

UI Layout for work and publish objects.

Attributes

LOG

Classes

Buttons

ElementWidgets

HeaderWidgets

InfoWidgets

TikVersionLayout

Layout for versioning work and publish objects.

VersionComboBox

Custom combo box for version selection.

VersionComboBoxModel

Model for the version combo box.

VersionWidgets

Module Contents

class Buttons
bundle_ingest_btn: tik_manager4.ui.widgets.common.TikButton
import_btn: tik_manager4.ui.widgets.common.TikButton
load_btn: tik_manager4.ui.widgets.common.TikButton
reference_btn: tik_manager4.ui.widgets.common.TikButton
class ElementWidgets
element_combo: tik_manager4.ui.Qt.QtWidgets.QComboBox
element_lbl: tik_manager4.ui.Qt.QtWidgets.QLabel
element_view_btn: tik_manager4.ui.widgets.common.TikIconButton
ingest_with_combo: tik_manager4.ui.Qt.QtWidgets.QComboBox
ingest_with_lbl: tik_manager4.ui.Qt.QtWidgets.QLabel
class HeaderWidgets
label: tik_manager4.ui.Qt.QtWidgets
refresh_btn: tik_manager4.ui.widgets.common.TikIconButton
class InfoWidgets
notes_editor: tik_manager4.ui.widgets.info.NotesEditor
notes_lbl: tik_manager4.ui.Qt.QtWidgets.QLabel
thumbnail: tik_manager4.ui.widgets.info.ImageWidget
class TikVersionLayout(project_object, *args, **kwargs)

Bases: tik_manager4.ui.Qt.QtWidgets.QVBoxLayout

Layout for versioning work and publish objects.

build_ui()

Setup the UI.

button_states(base)

Toggle the buttons depending on the base status.

connect_signals()

Connect the signals.

delete_version()

Delete the selected Work or Publish version.

element_type_changed(element_name)

Update the rest when element type is changed.

get_selected_element_type()

Return the current element.

get_selected_ingestor()

Return the selected ingestor.

get_selected_version()

Return the current version object.

get_selected_version_number()

Return the current version.

on_bundle_ingest()

Launch the bundle ingest dialog.

on_element_view_event()

Emit the selected element’s path.

on_import()

Import the current version.

on_info()

Pop-up a dialog with the version information.

on_load()

Load the current version.

on_promote()

Execute the promote action.

on_reference()

Reference the current version.

on_replace_thumbnail(mode='view')

Replace the thumbnail with the current view or external file.

on_resurrect(version_obj)

Resurrect the selected version.

on_sync_to_origin()

Sync the version to the origin.

open_database_folder()

Open the scene folder in the file manager.

open_scene_folder()

Open the scene folder in the file manager.

populate_versions(base)

Populate the version dropdown with the versions from the base object.

publish_snapshot()

Publish a snapshot of the current work.

refresh()

Refresh the version dropdown.

set_base(base)

Set the base object. This can be work or publish object.

set_purgatory_mode(state)

Set the purgatory mode.

set_version(combo_value)

Set the version dropdown to the given version value.

thumbnail_right_click_menu(position)

Right click menu for the thumbnail.

toggle_sync_state(state, critical=False)

Toggle the path warning.

version_changed()

When the version dropdown is changed, update the notes and thumbnail.

version_right_click_menu(position)

Right click menu for the version dropdown.

element_view_event
property purgatory_mode
Get the purgatory mode.
status_updated
version_resurrected
class VersionComboBox(items=None, parent=None)

Bases: tik_manager4.ui.Qt.QtWidgets.QComboBox

Custom combo box for version selection.

clear()

Clear the items from the combo box.

get_current_item()

Get the current selected item.

get_item(index)

Get the item at the given index.

paintEvent(event)

Override paintEvent to apply the color of the selected item.

set_items(items)

Set the items for the combo box.

class VersionComboBoxModel(items, parent=None)

Bases: tik_manager4.ui.Qt.QtCore.QAbstractListModel

Model for the version combo box.

data(index, role=QtCore.Qt.DisplayRole)

Return the data for the given index and role.

get_item(index)

Method to get the full dictionary item.

rowCount(parent=None)

Return the number of items in the model.

class VersionWidgets
border: tik_manager4.ui.Qt.QtWidgets.QWidget
combo: VersionComboBox
info_btn: tik_manager4.ui.widgets.common.TikIconButton
lbl: tik_manager4.ui.Qt.QtWidgets.QLabel
owner_lbl: tik_manager4.ui.Qt.QtWidgets.QLabel
preview_btn: tik_manager4.ui.widgets.common.TikIconButton
promote_btn: tik_manager4.ui.widgets.common.TikIconButton
sync_btn: tik_manager4.ui.widgets.common.TikButton
LOG