The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Renard::Curie::Component::MenuBar - Component that provides a menu bar for the application

VERSION

version 0.005

EXTENDS

CONSUMES

ATTRIBUTES

recent_manager

A lazy attribute that holds the default instance of Gtk3::RecentManager.

recent_chooser

Instance of Gtk3::RecentChooserMenu which is placed under the <File - Recent files>> sub-menu.

view_manager

The view manager model for this application.

METHODS

BUILD

  method BUILD

Initialises the menu bar signals.

CALLBACKS

on_menu_file_open_activate_cb

  callback on_menu_file_open_activate_cb($event, $self)

Callback for the File -> Open menu item.

on_menu_file_properties_activate_cb

  callback on_menu_file_properties_activate_cb($event, $self) {

Callback for the File -> Properties menu item.

on_menu_file_quit_activate_cb

  callback on_menu_file_quit_activate_cb($event, $self)

Callback for the File -> Quit menu item.

on_menu_file_recentfiles_item_activated_cb

  callback on_menu_file_recentfiles_item_activated_cb( (InstanceOf['Gtk3::RecentChooserMenu']) $recent_chooser, $self )

Callback for items under the File -> Recent files sub-menu.

on_menu_help_logwin_activate_cb

  callback on_menu_help_logwin_activate_cb($event, $self)

Callback for Help -> Message log menu item.

Displays the Message log window.

on_menu_view_continuous_cb

Callback for View -> Continuous menu item.

Toggles the view between a continuous page view and single page view.

on_menu_view_sidebar_cb

Callback for the View -> Sidebar menu item.

This toggles whether or not the outline sidebar is visible.

on_menu_view_zoom_item_activate_cb

Callback for zoom level menu items under the View -> Zoom submenu.

  callback on_menu_view_zoom_item_activate_cb($event, $data)

where $data is an ArrayRef that contains [ $self, $zoom_level ].

on_menu_view_column_item_activate_cb

Callback for number of columns menu items under the View -> Columns submenu.

  callback on_menu_view_column_item_activate_cb($event, $data)

where $data is an ArrayRef that contains [ $self, $number_of_columns ].

AUTHOR

Project Renard

COPYRIGHT AND LICENSE

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.