iPodDB::Menu::Help - the help menu


iPodDB documentation Contained in the iPodDB distribution.

Index


Code Index:

NAME

Top

iPodDB::Menu::Help - the help menu

SYNOPSIS

Top

    my $help = iPodDB::Menu::Help->new( $frame );

DESCRIPTION

Top

This is the Help menu portion of the menu bar.

METHODS

Top

new( $frame )

Creates the menu and sets up the callbacks when menu items are clicked.

EVENTS

Top

on_about( )

When the "About" option is selected this event is triggered. It will popup a dialog with the credits for this application.

AUTHOR

Top

* Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


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;