| iPodDB documentation | Contained in the iPodDB distribution. |
iPodDB::Menu - iPodDB Menu bar
my $menu = iPodDB::Menu->new( $frame );
This adds a menu bar to the main iPodDB window. It has three menus: File, Edit and Help.
Creates the menu bar and adds the File, Edit and Help menus to it.
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;
use base qw( Wx::MenuBar ); use strict; use warnings; use iPodDB::Playlist; use iPodDB::Menu::File; use iPodDB::Menu::Edit; use iPodDB::Menu::Help; our $VERSION = '0.02';
sub new { my $class = shift; my $parent = shift; my $self = $class->SUPER::new; bless $self, $class; $self->Append( iPodDB::Menu::File->new( $parent ), '&File' ); $self->Append( iPodDB::Menu::Edit->new( $parent ), '&Edit' ); $self->Append( iPodDB::Menu::Help->new( $parent ), '&Help' ); $parent->SetMenuBar( $self ); return $self; }
1;