Renard::Curie::App - A document viewing application
version 0.001
Moo::Object
MooX::Role::Logger
Renard::Curie::Component::Role::FromBuilder
Renard::Curie::Component::Role::UIFileFromPackageName
A Gtk3::Window that contains the main window for the application.
A Renard::Curie::Component::PageDrawingArea that holds the currently displayed document.
Predicate: has_page_document_component
has_page_document_component
Clearer: clear_page_document_component
clear_page_document_component
A Renard::Curie::Component::MenuBar for the application's menu-bar.
A Renard::Curie::Component::Outline which makes up the outline sidebar for this window.
A Renard::Curie::Component::LogWindow for the application's logging.
A horizontal Gtk3::Box which is used to split the main application area into two different regions.
The left region contains "outline" and the right region contains "page_document_component".
method setup_window()
Sets up components that make up the window shell for the application including:
"menu_bar"
"content_box"
"log_window"
method run()
Displays "window" and starts the Gtk3 event loop.
method BUILD
Initialises the application and sets up signals.
method process_arguments()
Processes arguments given in @ARGV.
@ARGV
method open_pdf_document( (Path->coercibles) $pdf_filename )
Opens a PDF file stored on the disk.
method open_document( (DocumentModel) $doc )
Sets the document for the application's "page_document_component".
classmethod setup_gtk()
Sets up any of the Glib::Object::Introspection-based libraries needed for the application.
Currently loads nothing, but will load the Gnome Docking Library (libgdl) in the future.
libgdl
fun main()
Application entry point.
fun on_open_file_dialog_cb( $event, $self )
Callback that opens a Renard::Curie::Component::FileChooser component.
fun on_application_quit_cb( $event, $self )
Callback that stops the Gtk3 main loop.
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.