class documentation

class TagsTreeModelBase(PagesTreeModelMixin): (source)

Known subclasses: zim.notebook.index.tags.TaggedPagesTreeModelMixin, zim.notebook.index.tags.TagsTreeModelMixin

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method connect_to_updateiter Connect to a new IndexUpdateIter
Method on_tag_removed_from_page Undocumented
Method on_tag_row_deleted Undocumented
Method on_tag_row_inserted Undocumented
Instance Variable tags Undocumented
Method _emit_children_inserted Undocumented
Method _update_ids Undocumented
Instance Variable _deleted_tag_path Undocumented
Instance Variable _tagids Undocumented
Instance Variable _tagquery Undocumented

Inherited from PagesTreeModelMixin:

Method find Returns the Gtk.TreePath for a notebook page Path If the Path appears multiple times returns the first occurrence @raises IndexNotFoundError: if path not found
Method find_all Returns a list of Gtk.TreePath for a notebook page Path Returns all occurrences in the treeview @raises IndexNotFoundError: if path not found
Method get_mytreeiter Returns a treeiter object for treepath or None @implementation: must be implemented by a subclass
Method n_children_top Return the number of items in the top level of the model
Method on_page_row_changed Undocumented
Method on_page_row_delete Undocumented
Method on_page_row_deleted Undocumented
Method on_page_row_inserted Undocumented
Method _check_parent_has_child_toggled Undocumented
Method _find_all_pages Undocumented
Method _set_root_id Undocumented
Instance Variable _deleted_paths Undocumented
Instance Variable _MY_ROOT_ID Undocumented
Instance Variable _MY_ROOT_NAME Undocumented
Instance Variable _MY_ROOT_NAME_C Undocumented
Instance Variable _REVERSE Undocumented

Inherited from TreeModelMixinBase (via PagesTreeModelMixin):

Method teardown Undocumented
Instance Variable cache Undocumented
Instance Variable db Undocumented
Instance Variable index Undocumented

Inherited from ConnectorMixin (via PagesTreeModelMixin, TreeModelMixinBase):

Method connectto Connect to signals of another object E.g.:
Method connectto_all Convenience method to combine multiple calls to connectto().
Method disconnect_all Disconnect all signals that have been connected with connectto and friends. Typically called when you want to destroy this object.
Method disconnect_from Disc all signals that have been connected with connectto and friends to a specific object.
Method _disconnect_from Undocumented
Instance Variable _connected_signals Undocumented
def connect_to_updateiter(self, index, update_iter): (source)

Connect to a new IndexUpdateIter

The following signals must be implemented:

  • row-inserted (treepath, treeiter)
  • row-changed (treepath, treeiter)
  • row-has-child-toggled (treepath, treeiter)
  • row-deleted (treepath)

Typically each signal should also flush the cache using self.cache.clear().

Unknown Field: implementation
must be implemented by a subclass
def on_tag_removed_from_page(self, o, row, pagerow): (source)

Undocumented

def on_tag_row_deleted(self, o, row): (source)

Undocumented

def on_tag_row_inserted(self, o, row): (source)

Undocumented

tags = (source)

Undocumented

def _emit_children_inserted(self, pageid, treepath): (source)

Undocumented

def _update_ids(self): (source)

Undocumented

_tagids = (source)

Undocumented

_tagquery = (source)

Undocumented