class PageTreeView(BrowserTreeView): (source)
Known subclasses: zim.plugins.tags.TagsPageTreeView
TreeView widget to show a list of pages.
This view is intended to show a PageTreeStore model, but it can also handle filtered models and subclasses that have the same columns. (The "tags" plugin uses this same view with alternative models.)
| Unknown Field: signal | |
| page-activated (path): emitted when a page is clicked | |
| populate-popup (menu): hook to populate the context menu | |
| copy (): copy the current selection to the clipboard | |
| insert-link (path): called when the user pressed <Ctrl>L on page |
| Method | __init__ |
Constructor, all arguments are passed to Gtk.TreeView |
| Method | disconnect_index |
No summary |
| Method | do_drag_data_get |
Undocumented |
| Method | do_drag_data_received |
Undocumented |
| Method | do_initialize_popup |
No summary |
| Method | do_key_press_event |
Undocumented |
| Method | do_page_activated |
Undocumented |
| Method | do_row_activated |
Undocumented |
| Method | get_expanded_path |
Return the lowest expanded path towards path |
| Method | get_selected_path |
Get the selected notebook path |
| Method | get_selected_treepath |
Undocumented |
| Method | restore_autoexpanded_path |
Undocumented |
| Method | select_treepath |
Select a gtk TreePath in the view |
| Method | set_autoexpand |
Undocumented |
| Method | set_current_page |
Select a page in the treeview |
| Method | set_use_drag_and_drop |
Undocumented |
| Method | set_use_ellipsize |
Set whether to use ellipsize ("...") for page names that are longer than the window size. If disabled the horizontal scrollbar will take over |
| Method | set_use_tooltip |
Undocumented |
| Class Variable | __gsignals__ |
Undocumented |
| Instance Variable | navigation |
Undocumented |
| Instance Variable | notebook |
Undocumented |
| Method | _restore_expanded_path |
Collaps path between path and expanded_path |
| Method | _store_expanded_path |
Undocumented |
| Instance Variable | _autocollapse |
Undocumented |
| Instance Variable | _autoexpand |
Undocumented |
| Instance Variable | _autoexpanded |
Undocumented |
| Instance Variable | _cr1 |
Undocumented |
Inherited from SingleClickTreeView (via BrowserTreeView):
| Method | do_button_press_event |
Undocumented |
| Method | do_button_release_event |
Undocumented |
| Method | get_cell_renderer_number_of_items |
No summary |
| Method | get_popup |
No summary |
| Method | populate_popup_expand_collapse |
No summary |
| Class Variable | mask |
Undocumented |
zim.gui.widgets.BrowserTreeView.__init__set_model() to get the view in sync with the index again.| Parameters | |
| menu | the Gtk.Menu object for the popup |
| Unknown Field: implementation | |
can be implemented by sub-classes. Default implementation calls populate_popup_expand_collapse() if the model is a Gtk.TreeStore. Otherwise it does nothing. | |
zim.plugins.tags.TagsPageTreeView| Parameters | |
| path | a notebook Path object for the page |
| vivificate | when True the path is created temporarily when it did not yet exist |
| Returns | |
| a gtk TreePath (tuple of intergers) or None | |