| iPodDB documentation | Contained in the iPodDB distribution. |
iPodDB::Menu::Help - the help menu
my $help = iPodDB::Menu::Help->new( $frame );
This is the Help menu portion of the menu bar.
Creates the menu and sets up the callbacks when menu items are clicked.
When the "About" option is selected this event is triggered. It will popup a dialog with the credits for this application.
Copyright 2004 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| iPodDB documentation | Contained in the iPodDB distribution. |
package iPodDB::Menu::Help;
use base qw( Wx::Menu ); use Wx qw( wxOK wxICON_INFORMATION ); use Wx::Event qw( EVT_MENU ); use strict; use warnings; our $VERSION = '0.02';
sub new { my $class = shift; my $parent = shift; my $self = $class->SUPER::new; bless $self, $class; $self->Append( my $about_id = Wx::NewId, '&About', 'About iPodDB' ); EVT_MENU( $parent, $about_id, \&on_about ); return $self; }
sub on_about { my $self = shift; Wx::MessageBox( "iPodDB Version $iPodDB::VERSION\nCopyright 2004 by Brian Cassidy", 'About iPodDB', wxOK | wxICON_INFORMATION, $self ); }
1;