Renard::Curie::Component::Outline - Component that provides a list of headings for navigating
version 0.003
Moo::Object
The view manager model for this application.
The Gtk3::TreeView component that displays the interactive tree.
The Gtk3::TreeStore that holds tree data of heading text and page numbers.
When set, triggers an update to the model for "tree_view".
Constructor that sets up the view and model.
This class is a subclass of Gtk3::Revealer which allows the visible state to be toggled.
method update( $doc )
Updates the outline's model to correspond to the outline of the currently displayed document.
method _trigger_model($new_model)
Trigger that updates the model for the underlying tree_view attribute.
method reveal( $should_reveal )
Wrapper around the Gtk3::Revealer::set_reveal_child method that sets the hexpand property for this widget at the same time so that the parent container gives an appropriate amount of width to the widget.
hexpand
Without this, the revealer widget may still expand to take up some space when the child is not visible.
callback on_tree_view_row_activate_cb( $tree_view, $path, $column, $self )
Callback that navigates the current document to the position that corresponds to a row of the tree that has been clicked.
Project Renard
This software is copyright (c) 2016 by Project Renard.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Renard::Curie, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Renard::Curie
CPAN shell
perl -MCPAN -e shell install Renard::Curie
For more information on module installation, please visit the detailed CPAN module installation guide.