tik_manager4.ui.mcv.subproject_mcv
Classes
Module Contents
- class ProxyModel(parent=None)
Bases:
tik_manager4.ui.mcv.filter.FilterModel- filterAcceptsRow(source_row, source_parent)
- class TikColumnItem(name, overridden=False)
Bases:
tik_manager4.ui.Qt.QtGui.QStandardItem- set_overridden(value)
- set_value(value)
- tag_normal()
- tag_overridden()
- class TikSubModel(structure_object)
Bases:
tik_manager4.ui.Qt.QtGui.QStandardItemModel- append_sub(sub_obj, parent)
- find_item_by_id_column(unique_id)
Search entire tree and find the matching item.
- populate()
- set_data(structure_object)
- update_item(item, sub_obj)
Update the item with the new subproject object
- class TikSubProjectLayout(project_obj, recursive_enabled=True, right_click_enabled=True)
Bases:
tik_manager4.ui.Qt.QtWidgets.QVBoxLayout- get_active_subproject()
Get the selected item and return the subproject object
- manual_refresh()
Refresh the layout and the view
- refresh()
Refresh the layout
- set_purgatory_mode(value)
- property purgatory_mode
- class TikSubView(project_obj=None, right_click_enabled=True)
Bases:
tik_manager4.ui.Qt.QtWidgets.QTreeView- static collect_tasks(sub_items, recursive=True, filtered=True)
- delete_sub_project(item)
- edit_sub_project(item)
- expandAll()
- expand_first_item()
Try to expand the first item in the tree
- find_items_in_tree(root_item, text)
- get_column_sizes()
Return all column sizes in a dictionary.
- get_expanded_state()
Returns the subproject ids of the expanded items
- get_items_count()
Return the number of items in the tree under selected one
- get_selected_items()
Return the current item.
- get_tasks(idx=None)
Returns the tasks of the selected subproject
- get_visible_columns()
Returns the visible columns.
Creates a right click menu for the header
- hide_all_columns()
Hides all columns.
- hide_columns(columns)
If the given column exists in the model, hides it
- keyPressEvent(event)
- keyReleaseEvent(event)
- mousePressEvent(event)
- mouseReleaseEvent(event)
- new_sub_project(item)
- new_task()
- on_resurrect(item)
- refresh()
Re-populates the model keeping the expanded state
Create a right click menu for the view.
- Args:
position (QPoint): The position of the right click.
- select_by_id(unique_id, append=False)
Look at the id column and select the subproject item that matched the unique id.
- Args:
unique_id (str): The unique id to search for. append (bool): Whether to append the selection or not.
- select_first_item()
Select the first item in the tree
- selectionChanged(*args, **kwargs)
- set_column_sizes(column_sizes)
Set the column sizes from the given dictionary.
- set_expanded_state(expanded_state)
Sets the expanded state of the items by matching the subproject ids
- set_project(project_obj)
- set_recursive_task_scan(value)
- show_columns(list_of_columns)
Shows the given columns.
- toggle_column(column, state)
Hide/unhide the given column.
- unhide_columns(columns)
If the given column exists in the model, unhides it
- add_item
- item_selected