cola.views.status – Status view

class cola.views.status.StatusWidget(parent=None)

Provides a git-status-like repository widget.

This widget observes the main model and broadcasts Qt signals.

about_to_update()
add_item(txt, path, hide=False)

Create a new top-level item in the status tree.

expand_items(idx, items)

Expand the top-level category “folder” once and only once.

index_for_item(item)

Given an item, returns the index of the item.

The indexes for unstaged items are grouped such that the index of unmerged[1] = len(modified) + 1, etc.

mode
modified()
modified_item(itemidx)
restore_selection()
selected_indexes()

Returns a list of (category, row) representing the tree selection.

selection()

Return the current selection in the repo status tree.

set_modified(items)

Adds items to the ‘Modified’ subtree.

set_staged(items)

Adds items to the ‘Staged’ subtree.

set_unmerged(items)

Adds items to the ‘Unmerged’ subtree.

set_untracked(items)

Adds items to the ‘Untracked’ subtree.

single_selection()

Scan across staged, modified, etc. and return a single item.

staged()
staged_item(itemidx)
tree_click(column=None)

Called when an item is clicked in the repo status tree.

tree_click_event(event)
tree_context_menu_event(event)

Create context menus for the repo status tree.

tree_context_menu_setup()

Set up the status menu for the repo status tree.

tree_doubleclick(item, column)

Called when an item is double-clicked in the repo status tree.

tree_selection()

Show a data for the selected item.

unmerged()
unstaged()
unstaged_item(itemidx)
untracked()
updated()

Update display from model data.

Previous topic

cola.views.startup – Startup Dialog

Next topic

cola.views.syntax – Syntax highlighting

This Page