NAME
Renard::Curie::Component::MenuBar - Component that provides a menu bar for the application
VERSION
version 0.001_01
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.
METHODS
BUILD
method BUILD
Initialises the menu bar signals.
CLASS METHODS
FOREIGNBUILDARGS
classmethod FOREIGNBUILDARGS(@)
Builds the Gtk3::Bin super-class.
CALLBACKS
on_menu_file_open_activate_cb
fun on_menu_file_open_activate_cb($event, $self)
Callback for the File -> Open
menu item.
on_menu_file_quit_activate_cb
fun on_menu_file_quit_activate_cb($event, $self)
Callback for the File -> Quit
menu item.
on_menu_file_recentfiles_item_activated_cb
fun 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
fun on_menu_help_logwin_activate_cb($event, $self)
Callback for Help -> Message log
menu item.
Displays the Message log window.
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.
fun on_menu_view_zoom_item_activate_cb($event, $data)
where $data
is an ArrayRef
that contains [ $self, $zoom_level ]
.
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.