tik_manager4.ui.mcv.version_mcv =============================== .. py:module:: tik_manager4.ui.mcv.version_mcv .. autoapi-nested-parse:: UI Layout for work and publish objects. Attributes ---------- .. autoapisummary:: tik_manager4.ui.mcv.version_mcv.LOG Classes ------- .. autoapisummary:: tik_manager4.ui.mcv.version_mcv.Buttons tik_manager4.ui.mcv.version_mcv.ElementWidgets tik_manager4.ui.mcv.version_mcv.HeaderWidgets tik_manager4.ui.mcv.version_mcv.InfoWidgets tik_manager4.ui.mcv.version_mcv.TikVersionWidget tik_manager4.ui.mcv.version_mcv.VersionComboBox tik_manager4.ui.mcv.version_mcv.VersionComboBoxModel tik_manager4.ui.mcv.version_mcv.VersionWidgets Module Contents --------------- .. py:class:: Buttons .. py:attribute:: bundle_ingest_btn :type: tik_manager4.ui.widgets.common.TikButton .. py:attribute:: import_btn :type: tik_manager4.ui.widgets.common.TikButton .. py:attribute:: load_btn :type: tik_manager4.ui.widgets.common.TikButton .. py:attribute:: reference_btn :type: tik_manager4.ui.widgets.common.TikButton .. py:class:: ElementWidgets .. py:attribute:: element_combo :type: tik_manager4.ui.Qt.QtWidgets.QComboBox .. py:attribute:: element_lbl :type: tik_manager4.ui.Qt.QtWidgets.QLabel .. py:attribute:: element_view_btn :type: tik_manager4.ui.widgets.common.TikIconButton .. py:attribute:: ingest_with_combo :type: tik_manager4.ui.Qt.QtWidgets.QComboBox .. py:attribute:: ingest_with_lbl :type: tik_manager4.ui.Qt.QtWidgets.QLabel .. py:class:: HeaderWidgets .. py:attribute:: label :type: tik_manager4.ui.Qt.QtWidgets .. py:attribute:: refresh_btn :type: tik_manager4.ui.widgets.common.TikIconButton .. py:class:: InfoWidgets .. py:attribute:: notes_editor :type: tik_manager4.ui.widgets.info.NotesEditor .. py:attribute:: notes_lbl :type: tik_manager4.ui.Qt.QtWidgets.QLabel .. py:attribute:: thumbnail :type: tik_manager4.ui.widgets.info.ImageWidget .. py:class:: TikVersionWidget(project_object, *args, **kwargs) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QWidget` Layout for versioning work and publish objects. .. py:method:: build_ui() Setup the UI. .. py:method:: button_states(base) Toggle the buttons depending on the base status. .. py:method:: clear_version_info() Clear the version info widgets. .. py:method:: connect_signals() Connect the signals. .. py:method:: delete_version() Delete the selected Work or Publish version. .. py:method:: element_type_changed(element_name) Update the rest when element type is changed. .. py:method:: get_selected_element_type() Return the current element. .. py:method:: get_selected_ingestor() Return the selected ingestor. .. py:method:: get_selected_version() Return the current version object. .. py:method:: get_selected_version_number() Return the current version. .. py:method:: on_bundle_ingest() Launch the bundle ingest dialog. .. py:method:: on_element_view_event() Emit the selected element's path. .. py:method:: on_import() Import the current version. .. py:method:: on_info() Pop-up a dialog with the version information. .. py:method:: on_load() Load the current version. .. py:method:: on_promote() Execute the promote action. .. py:method:: on_reference() Reference the current version. .. py:method:: on_replace_thumbnail(mode='view') Replace the thumbnail with the current view or external file. .. py:method:: on_resurrect(version_obj) Resurrect the selected version. .. py:method:: on_sync_to_origin() Sync the version to the origin. .. py:method:: open_database_folder() Open the scene folder in the file manager. .. py:method:: open_scene_folder() Open the scene folder in the file manager. .. py:method:: populate_versions(base) Populate the version dropdown with the versions from the base object. .. py:method:: publish_snapshot() Publish a snapshot of the current work. .. py:method:: refresh() Refresh the version layout. .. py:method:: set_base(base) Set the base object. This can be work or publish object. .. py:method:: set_purgatory_mode(state) Set the purgatory mode. .. py:method:: set_version(combo_value) Set the version dropdown to the given version value. .. py:method:: thumbnail_right_click_menu(position) Right click menu for the thumbnail. .. py:method:: toggle_sync_state(state, critical=False) Toggle the path warning. .. py:method:: update_preview_settings() Update the preview settings. .. py:method:: version_changed() When the version dropdown is changed, update the notes and thumbnail. .. py:method:: version_right_click_menu(position) Right click menu for the version dropdown. .. py:attribute:: element_view_event .. py:property:: purgatory_mode Get the purgatory mode. .. py:attribute:: status_updated .. py:attribute:: version_resurrected .. py:class:: VersionComboBox(items=None, parent=None) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QComboBox` Custom combo box for version selection. .. py:method:: clear() Clear the items from the combo box. .. py:method:: get_current_item() Get the current selected item. .. py:method:: get_item(index) Get the item at the given index. .. py:method:: paintEvent(event) Override paintEvent to apply the color of the selected item. .. py:method:: set_items(items) Set the items for the combo box. .. py:class:: VersionComboBoxModel(items, parent=None) Bases: :py:obj:`tik_manager4.ui.Qt.QtCore.QAbstractListModel` Model for the version combo box. .. py:method:: data(index, role=QtCore.Qt.DisplayRole) Return the data for the given index and role. .. py:method:: get_item(index) Method to get the full dictionary item. .. py:method:: rowCount(parent=None) Return the number of items in the model. .. py:class:: VersionWidgets .. py:attribute:: border :type: tik_manager4.ui.Qt.QtWidgets.QWidget .. py:attribute:: combo :type: VersionComboBox .. py:attribute:: info_btn :type: tik_manager4.ui.widgets.common.TikIconButton .. py:attribute:: last_modified_lbl :type: tik_manager4.ui.Qt.QtWidgets.QLabel .. py:attribute:: lbl :type: tik_manager4.ui.Qt.QtWidgets.QLabel .. py:attribute:: owner_lbl :type: tik_manager4.ui.Qt.QtWidgets.QLabel .. py:attribute:: preview_btn :type: tik_manager4.ui.widgets.common.TikIconButton .. py:attribute:: promote_btn :type: tik_manager4.ui.widgets.common.TikIconButton .. py:attribute:: sync_btn :type: tik_manager4.ui.widgets.common.TikButton .. py:data:: LOG