tik_manager4.ui.mcv.task_mcv ============================ .. py:module:: tik_manager4.ui.mcv.task_mcv Attributes ---------- .. autoapisummary:: tik_manager4.ui.mcv.task_mcv.LOG Classes ------- .. autoapisummary:: tik_manager4.ui.mcv.task_mcv.TikTaskColumnItem tik_manager4.ui.mcv.task_mcv.TikTaskItem tik_manager4.ui.mcv.task_mcv.TikTaskModel tik_manager4.ui.mcv.task_mcv.TikTaskView tik_manager4.ui.mcv.task_mcv.TikTaskWidget Module Contents --------------- .. py:class:: TikTaskColumnItem(text) Bases: :py:obj:`tik_manager4.ui.Qt.QtGui.QStandardItem` .. py:class:: TikTaskItem(task_obj) Bases: :py:obj:`tik_manager4.ui.Qt.QtGui.QStandardItem` Item class for the task view .. py:method:: refresh() Refresh the item .. py:method:: set_state(state) Set the state of the item. Args: state (str): State of the task .. py:attribute:: color_dict .. py:class:: TikTaskModel Bases: :py:obj:`tik_manager4.ui.Qt.QtGui.QStandardItemModel` .. py:method:: append_task(task_obj) Append a task to the model .. py:method:: clear() Clear the model .. py:method:: find_item_by_id_column(unique_id) Search entire tree and find the matching item. .. py:method:: is_multi_subproject() Return True if the tasks in the model belong to multiple subprojects. .. py:attribute:: columns :value: ['name', 'id', 'path'] .. py:attribute:: filter_key :value: 'super' .. py:class:: TikTaskView Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QTreeView` .. py:method:: add_tasks(tasks) Add a task to the model .. py:method:: currentChanged(*args, **kwargs) .. py:method:: delete_task(item) .. py:method:: edit_task(item) .. py:method:: expandAll() Expand all the items in the view .. py:method:: get_column_sizes() Return all column sizes in a dictionary. .. py:method:: get_items_count() Return the number of items in the view. .. py:method:: get_selected_item() Return the selected item .. py:method:: get_visible_columns() Returns the visible columns. .. py:method:: header_right_click_menu(position) .. py:method:: hide_columns(columns) If the given column exists in the model, hides it .. py:method:: item_clicked(idx) Emit the item_selected signal when an item is clicked .. py:method:: omit_task(item) .. py:method:: on_resurrect(item) Resurrect the task .. py:method:: open_url(item) .. py:method:: refresh() Re-populate the model. .. py:method:: revive_task(item) .. py:method:: right_click_menu(position) .. py:method:: select_by_id(unique_id) Select the item with the given id .. py:method:: select_first_item() Select the first item in the view. .. py:method:: set_column_sizes(column_sizes) Set the column sizes from the given dictionary. .. py:method:: set_tasks(tasks_gen) Set the data for the model .. py:method:: show_columns(list_of_columns) Shows the given columns. .. py:method:: toggle_column(column, state) If the given column exists in the model, unhides it .. py:method:: unhide_columns(columns) If the given column exists in the model, unhides it .. py:attribute:: item_selected .. py:attribute:: new_task_requested .. py:attribute:: refresh_requested .. py:attribute:: task_resurrected .. py:class:: TikTaskWidget(parent=None) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QWidget` .. py:method:: get_active_task() Get the selected item and return the task object. .. py:method:: refresh() .. py:method:: set_purgatory_mode(value) .. py:property:: purgatory_mode .. py:data:: LOG