Padre::Wx::Wizard - Padre Wizard Object


Padre documentation Contained in the Padre distribution.

Index


Code Index:

NAME

Top

Padre::Wx::Wizard - Padre Wizard Object

SYNOPSIS

Top

  my $wizard = Padre::Wx::Wizard->new(
	name        => 'perl5.script',
	label       => Wx::gettext('Script'),
	category    => Wx::gettext('Perl 5'),
	comment     => Wx::gettext('Opens the Perl 5 script wizard'),
	class       => 'Padre::Wx::Dialog::Wizard::Perl5Script',
  );

DESCRIPTION

Top

This is the base class for the Padre Wizard API.

PUBLIC API

Top

METHODS

new

A default constructor for wizard objects.

AUTHOR

Top

Ahmad M. Zawawi <ahmad.zawawi at gmail.com>

COPYRIGHT & LICENSE

Top


Padre documentation Contained in the Padre distribution.
package Padre::Wx::Wizard;

use 5.008;
use strict;
use warnings;
use Padre::Config   ();
use Padre::Constant ();
use Padre::Wx       ();

our $VERSION = '0.86';

# Generate faster accessors
use Class::XSAccessor {
	getters => {
		name     => 'name',
		label    => 'label',
		category => 'category',
		comment  => 'comment',
		class    => 'class',
	},
};

sub new {
	my $class   = shift;
	my $wizards = Padre->ide->wizards;
	my $self    = bless { id => -1, @_ }, $class;

	# Save the wizard
	$wizards->{ $self->{name} } = $self;

	return $self;
}

1;

# Copyright 2008-2011 The Padre development team as listed in Padre.pm.
# LICENSE
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl 5 itself.

__END__