---
name: "Zim::GUI::TreeView"
section: "3pm"
platform: "linux"
package: "zim"
version: "0.25-1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Zim::GUI::TreeView"
---

# Zim::GUI::TreeView(3pm)

Page index widgets

## 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) \<pardus@cpan.org\>

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
