| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # -*- perl -*- | 
| 2 |  |  |  |  |  |  | # | 
| 3 |  |  |  |  |  |  | #   Wizard - A Perl package for implementing system administration | 
| 4 |  |  |  |  |  |  | #            applications in the style of Windows wizards. | 
| 5 |  |  |  |  |  |  | # | 
| 6 |  |  |  |  |  |  | # | 
| 7 |  |  |  |  |  |  | #   This module is | 
| 8 |  |  |  |  |  |  | # | 
| 9 |  |  |  |  |  |  | #           Copyright (C) 1999     Jochen Wiedmann | 
| 10 |  |  |  |  |  |  | #                                  Am Eisteich 9 | 
| 11 |  |  |  |  |  |  | #                                  72555 Metzingen | 
| 12 |  |  |  |  |  |  | #                                  Germany | 
| 13 |  |  |  |  |  |  | # | 
| 14 |  |  |  |  |  |  | #                                  Email: joe@ispsoft.de | 
| 15 |  |  |  |  |  |  | #                                  Phone: +49 7123 14887 | 
| 16 |  |  |  |  |  |  | # | 
| 17 |  |  |  |  |  |  | #                          and     Amarendran R. Subramanian | 
| 18 |  |  |  |  |  |  | #                                  Grundstr. 32 | 
| 19 |  |  |  |  |  |  | #                                  72810 Gomaringen | 
| 20 |  |  |  |  |  |  | #                                  Germany | 
| 21 |  |  |  |  |  |  | # | 
| 22 |  |  |  |  |  |  | #                                  Email: amar@ispsoft.de | 
| 23 |  |  |  |  |  |  | #                                  Phone: +49 7072 920696 | 
| 24 |  |  |  |  |  |  | # | 
| 25 |  |  |  |  |  |  | #   All Rights Reserved. | 
| 26 |  |  |  |  |  |  | # | 
| 27 |  |  |  |  |  |  | #   You may distribute under the terms of either the GNU General Public | 
| 28 |  |  |  |  |  |  | #   License or the Artistic License, as specified in the Perl README file. | 
| 29 |  |  |  |  |  |  | # | 
| 30 |  |  |  |  |  |  | #   $Id$ | 
| 31 |  |  |  |  |  |  | # | 
| 32 |  |  |  |  |  |  |  | 
| 33 | 1 |  |  | 1 |  | 5 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 237 |  | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | package Wizard::Form; | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | sub new { | 
| 39 | 0 |  |  | 0 | 0 |  | my $proto = shift;  my $wiz = shift; | 
|  | 0 |  |  |  |  |  |  | 
| 40 | 0 |  |  |  |  |  | my $extension = $proto; | 
| 41 | 0 |  |  |  |  |  | $extension =~ s/.*\:\://; | 
| 42 | 0 |  |  |  |  |  | my $self = { @_ }; | 
| 43 | 0 |  | 0 |  |  |  | bless($self, (ref($proto) || $proto)); | 
| 44 | 0 |  |  |  |  |  | @{$self->{'elems'}} = map { | 
| 45 | 0 | 0 |  |  |  |  | if (ref($_) eq 'ARRAY') { | 
|  | 0 |  |  |  |  |  |  | 
| 46 | 0 |  |  |  |  |  | my $c = shift @$_; | 
| 47 | 0 |  |  |  |  |  | $c .= "::$extension"; | 
| 48 | 0 |  |  |  |  |  | my $c_class = $c; | 
| 49 | 0 |  |  |  |  |  | $c_class =~ s/\:\:/\//g; | 
| 50 | 0 |  |  |  |  |  | require "$c_class.pm"; | 
| 51 | 0 |  |  |  |  |  | $c->new($self, @$_); | 
| 52 |  |  |  |  |  |  | } else { | 
| 53 | 0 |  |  |  |  |  | $_; | 
| 54 |  |  |  |  |  |  | } | 
| 55 | 0 |  |  |  |  |  | } @{$self->{'elems'}}; | 
| 56 | 0 |  |  |  |  |  | $self; | 
| 57 |  |  |  |  |  |  | } | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | 1; |