tik_manager4.ui.dialog.work_dialog ================================== .. py:module:: tik_manager4.ui.dialog.work_dialog .. autoapi-nested-parse:: Dialogs for creating work files and versions of them. Attributes ---------- .. autoapisummary:: tik_manager4.ui.dialog.work_dialog.app Classes ------- .. autoapisummary:: tik_manager4.ui.dialog.work_dialog.NewVersionDialog tik_manager4.ui.dialog.work_dialog.NewWorkDialog tik_manager4.ui.dialog.work_dialog.SaveAnyFileDialog tik_manager4.ui.dialog.work_dialog.WidgetsData tik_manager4.ui.dialog.work_dialog.WorkFromSelectionDialog tik_manager4.ui.dialog.work_dialog.WorkFromTemplateDialog Module Contents --------------- .. py:class:: NewVersionDialog(work_object, ingest=False, *args, **kwargs) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QDialog` .. py:method:: build_ui() .. py:method:: on_create_version() .. py:method:: on_format_changed(file_format) .. py:class:: NewWorkDialog(main_object, subproject=None, task_object=None, category_object=None, subproject_id=None, task_id=None, category_index=None, *args, **kwargs) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QDialog` Dialog for creating new work files. .. py:method:: build_layouts() Create the layouts and split the UI into left and right. .. py:method:: build_ui() Build the UI elements .. py:method:: define_primary_ui() Define the primary UI elements with settings layout .. py:method:: on_create_work() Create the work file. .. py:method:: refresh_categories(categories) Refresh the categories. .. py:method:: refresh_subproject(subproject) Refresh the subproject and below. .. py:method:: refresh_tasks(tasks) Refresh the task and below. .. py:method:: resolve_objects(subproject_id=None, task_id=None, category_index=None) Try to resolve the objects from the given data or last state. .. py:method:: set_category(category_name) Set the category from the index. .. py:method:: set_task(task_name) Set the task from the index. .. py:method:: update_labels(validation_status) Update the path and name labels. .. py:class:: SaveAnyFileDialog(main_object, file_or_folder_path=None, *args, **kwargs) Bases: :py:obj:`NewWorkDialog` Dialog to save any file or folder to the tik manager 4 project. .. py:method:: define_primary_ui() Define the primary UI elements with settings layout .. py:method:: on_create_work() Create the work file. .. py:method:: on_direct_publish_changed(state) Handle the direct publish checkbox state change. .. py:class:: WidgetsData Data for the widgets .. py:attribute:: cancel_btn :type: tik_manager4.ui.Qt.QtWidgets.QPushButton :value: None .. py:attribute:: categories_combo :type: tik_manager4.ui.Qt.QtWidgets.QComboBox :value: None .. py:attribute:: create_btn :type: tik_manager4.ui.Qt.QtWidgets.QPushButton :value: None .. py:attribute:: header_lbl :type: tik_manager4.ui.Qt.QtWidgets.QLabel :value: None .. py:attribute:: name_le :type: tik_manager4.ui.Qt.QtWidgets.QLineEdit :value: None .. py:attribute:: notes_lbl :type: tik_manager4.ui.Qt.QtWidgets.QLabel :value: None .. py:attribute:: notes_te :type: tik_manager4.ui.Qt.QtWidgets.QPlainTextEdit :value: None .. py:attribute:: resolved_name_lbl :type: tik_manager4.ui.widgets.common.ResolvedText :value: None .. py:attribute:: resolved_path_lbl :type: tik_manager4.ui.widgets.common.ResolvedText :value: None .. py:attribute:: subproject_widget :type: tik_manager4.ui.Qt.QtWidgets.QWidget :value: None .. py:attribute:: tasks_combo :type: tik_manager4.ui.Qt.QtWidgets.QComboBox :value: None .. py:class:: WorkFromSelectionDialog(*args, **kwargs) Bases: :py:obj:`NewWorkDialog` Dialog to create a work file from a selection. .. py:method:: on_create_work() Create the work file. .. py:class:: WorkFromTemplateDialog(main_object, template_names=None, *args, **kwargs) Bases: :py:obj:`NewWorkDialog` Dialog to create a work file from a template file. .. py:method:: define_primary_ui() Define the primary UI elements with settings layout .. py:method:: on_create_work() Create the work file. .. py:data:: app