Xacobeo::UI::Window(3pm)

Xacobeo::UI::Window3pm

Main window of xacobeo.

Usage

        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();

Overview

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

Properties

The following properties are defined:

source-view

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

dom-view

The widget displaying the results of a search

results-view

The UI Manager used by this widget.

namespaces-view

The widget displaying the namespaces of the current document.

xpath-entry

The entry where the XPath expression will be edited.

statusbar

The window's statusbar.

notebook

The notbook widget at the bottom of the window.

evaluate-button

The button starting a search.

conf

A reference to the main configuration singleton.

ui-manager

The UI Manager used by this widget.

Methods

The following methods are available:

new

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

load_file

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_document

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

Parameters:

•

$document

The document to load.

set_xpath

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

Parameters:

•

$xpath

The XPath expression to set

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

Authors

Emmanuel Rodriguez <[email protected]>.

From xacobeo 0.15-3+b2 in Debian 9 (Stretch). Parsed by carta from the page's man source.