Ubuntu Manpages

Xacobeo::UI::Window

Main window of Xacobeo.

        use Gtk2 qw(-init);
        use Xacobeo::UI::Window;
        
        my $xacobeo = Xacobeo::UI::Window->new();
        $xacobeo->signal_connect(destroy => sub { Gtk2->main_quit(); });
        $xacobeo->show_all();
        Gtk2->main();

The application's main window. This widget is a Gtk2::Window.

The following properties are defined:

The source view where the document's content is displayed.

The widget displaying the results of a search

The UI Manager used by this widget.

The widget displaying the namespaces of the current document.

The entry where the XPath expression will be edited.

The window's statusbar.

The notbook widget at the bottom of the window.

The button starting a search.

A reference to the main configuration singleton.

The UI Manager used by this widget.

The following methods are available:

Creates a new instance. This is simply the parent's constructor.

Load a new file into the application. The new document will be parsed and displayed in the window.

Parameters:

  • $file

    The file to load.

  • $type

    The type of document to load: xml or html. Defaults to xml if no value is provided.

Load a new document into the application. The document will be parsed and displayed in the window.

Parameters:

  • $document

    The document to load.

Set the XPath expression to display in the XPath text area. The expression is not evaluated.

Parameters:

  • $xpath

    The XPath expression to set

Emmanuel Rodriguez <potyl@cpan.org>.

Copyright (C) 2008,2009 by Emmanuel Rodriguez.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.