diff options
Diffstat (limited to 'perl-install/install_steps_newt.pm')
-rw-r--r-- | perl-install/install_steps_newt.pm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/perl-install/install_steps_newt.pm b/perl-install/install_steps_newt.pm index 1383ad372..b35d47e9d 100644 --- a/perl-install/install_steps_newt.pm +++ b/perl-install/install_steps_newt.pm @@ -11,6 +11,40 @@ use vars qw(@ISA); #-###################################################################################### use install_steps_interactive; use interactive_newt; +use common qw(:common); + +my $banner = __(); + +sub banner { + my $banner = translate(__("Linux-Mandrake Installation %s")); + my $l = first(Newt::GetScreenSize) - length($banner) - length($_[0]) + 1; + Newt::DrawRootText(0, 0, sprintf($banner, ' ' x $l . $_[0])); +} + +sub new($$) { + my ($type, $o) = @_; + + interactive_newt->new; + + banner(''); + Newt::PushHelpLine(_(" <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen ")); + + $o->{partitioning}{readonly} = 1; #- needed til diskdrake is graphic only... + + (bless {}, ref $type || $type)->SUPER::new($o); +} + +sub enteringStep { + my ($o, $step) = @_; + $o->SUPER::enteringStep($step); + banner(translate($o->{steps}{$step}{text})); +} + +sub exitInstall { + &install_steps_interactive::exitInstall; + interactive_newt::end; +} + 1; |