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.001

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.

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.