Zim::GUI::DiagramEditor.3pm

Langue: en

Version: 2009-03-16 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Zim::GUI::DiagramEditor - Diagram editor for Zim

DESCRIPTION

This module provides the diagram editor dialog for Zim. It requires dot to generate the actual diagram image.

METHODS

"show(PATH)"
Open the diagram editor. If PATH is given it is the ``src'' path to an exiting image (the corresponding .dot file is also assumed to exit). This path is resolved relative to the current page.
"save(PATH)"
Compile the diagram and save it to the namespace for the current page. PATH is an optional argument which is given in case we are editing an already existing diagram. Returns the path for the image.
"compile()"
Compiles the diagram in the tmp dir and shows a preview in the dialog.
"view_log()"
Open a dialog with a TextView showing the dot log file.
"populate_popup(MENU, PIXBUF)"
Add menu items for editing diagrams. PIXBUF is the image object passed on by Zim::PageView.

AUTHOR

Jaap Karssenberg (Pardus) <pardus@cpan.org>

Copyright (c) 2007 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