NAME
Zim::GUI::TreeView - Page index widgets
DESCRIPTION
This module contains the widgets to display the index of a zim notebook as a TreeView.
METHODS
Undefined methods AUTOLOAD to the Gtk2::TreeView widget.
- "new(app =" PARENT)>
-
Simple constructor.
- "init()"
-
Method called by the constructor.
- "page2path(PAGE)"
-
Returns the TreePath corresponding to PAGE.
- "path2page(PATH)"
-
Returns the page name corresponding to a certain TreePath.
- "activate_if_selected(PATH, COLUMN)"
-
Emit the "row_activated" signal if PATH was already selected. This method is used for the single-click navigation of the TreeView.
COLUMN is an optional argument.
- "popup_context_menu(PATH, EVENT)"
-
Show the context menu for TreePath PATH.
EVENT is an optional argument.
- "load_index()"
-
Called the first time the pane is showed to fill the index tree.
Will be DEPRECATED.
- "list_pages(NAMESPACE)"
-
Wrapper around
"Zim::Store->list_pages()"to fill the tree.
- "list_page(REALNAME)"
-
Adds a page to the index tree.
- "unlist_page(REALNAME)"
-
Removes a page from the index unless it has children.
- "select_page(PAGE, TMP)"
-
Update the TreeView to display and highlight a certain page. If TMP is true the page is temporarily added when it did not yet exist.
- "get_selected()"
-
Returns the name of the currently selected page.
AUTHOR
Jaap Karssenberg (Pardus) <[email protected]>
Copyright (c) 2005 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Zim