diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-04-25 12:26:16 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-04-25 12:26:16 +0000 |
commit | 126777bc019a54afb4ec51299f2cf9d2841698aa (patch) | |
tree | 97f76e571902ead55ba138f1156a4b4f00b9b779 /perl-install/install_steps_newt.pm | |
parent | f1f67448efc714873378dfeb8279fae68054a90a (diff) | |
download | drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.gz drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.bz2 drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.xz drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.zip |
re-sync after the big svn loss
Diffstat (limited to 'perl-install/install_steps_newt.pm')
-rw-r--r-- | perl-install/install_steps_newt.pm | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/perl-install/install_steps_newt.pm b/perl-install/install_steps_newt.pm deleted file mode 100644 index 66a9accb0..000000000 --- a/perl-install/install_steps_newt.pm +++ /dev/null @@ -1,59 +0,0 @@ -package install_steps_newt; # $Id$ - -use diagnostics; -use strict; -use vars qw(@ISA); - -@ISA = qw(install_steps_interactive interactive::newt); - -#-###################################################################################### -#- misc imports -#-###################################################################################### -use install_steps_interactive; -use interactive::newt; -use install_any; -use devices; -use lang; -use common; - -sub banner { - my $banner = translate(N_("Mandriva Linux Installation %s")); - my $l = first(Newt::GetScreenSize()) - length($banner) - length($_[0]) + 1; - Newt::DrawRootText(0, 0, sprintf($banner, ' ' x $l . $_[0])); - Newt::Refresh(); -} - -sub new { - my ($type, $o) = @_; - - interactive::newt->new; - - #- unset DISPLAY so that code testing wether DISPLAY is set can know we don't have or use X - delete $ENV{DISPLAY}; - - banner(''); - Newt::PushHelpLine( - #-PO: This string must fit in a 80-char wide text screen - N(" <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen ")); - - (bless {}, ref($type) || $type)->SUPER::new($o); -} - -sub charsetChanged { - my ($o) = @_; - lang::load_console_font($o->{locale}); -} - -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; - |