diff options
| author | Manuel Traut <manut@mecka.net> | 2011-04-29 09:09:27 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2011-04-29 09:09:27 +0200 |
| commit | 5238ad5a0c4a9e1c8cd036f5de4055e39bd71297 (patch) | |
| tree | 4407c087b9fb5432b1dc11e70b52dacfa0b99feb /beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde | |
| parent | 60ead65c41afba7e6aa4bbcf507a1d52f7a8fe9f (diff) | |
added debootstrap stuff
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde')
| -rw-r--r-- | beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde/Ui_DebconfWizard.pm | 154 | ||||
| -rw-r--r-- | beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde/Wizard.pm | 80 |
2 files changed, 234 insertions, 0 deletions
diff --git a/beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde/Ui_DebconfWizard.pm b/beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde/Ui_DebconfWizard.pm new file mode 100644 index 0000000..c8caf71 --- /dev/null +++ b/beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde/Ui_DebconfWizard.pm @@ -0,0 +1,154 @@ + + +package Debconf::FrontEnd::Kde::Ui_DebconfWizard; + +use strict; +use warnings; +use utf8; +use QtCore4; + +sub vboxLayout { + return shift->{vboxLayout}; +} + +sub title { + return shift->{title}; +} + +sub line1 { + return shift->{line1}; +} + +sub mainFrame { + return shift->{mainFrame}; +} + +sub hboxLayout { + return shift->{hboxLayout}; +} + +sub bHelp { + return shift->{bHelp}; +} + +sub spacer1 { + return shift->{spacer1}; +} + +sub bBack { + return shift->{bBack}; +} + +sub bNext { + return shift->{bNext}; +} + +sub bCancel { + return shift->{bCancel}; +} + + +sub setupUi { + my ( $class, $debconfWizard ) = @_; + my $self = bless {}, $class; + if ( !defined $debconfWizard->objectName() ) { + $debconfWizard->setObjectName( 'debconfWizard' ); + } + $debconfWizard->resize( 660, 460 ); + my $vboxLayout = Qt::VBoxLayout( $debconfWizard ); + $self->{vboxLayout} = $vboxLayout; + $vboxLayout->setSpacing( 6 ); + $vboxLayout->setMargin( 11 ); + $vboxLayout->setObjectName( 'vboxLayout' ); + my $title = Qt::Label( $debconfWizard ); + $self->{title} = $title; + $title->setObjectName( 'title' ); + my $sizePolicy = Qt::SizePolicy( Qt::SizePolicy::Preferred(), Qt::SizePolicy::Fixed() ); + $self->{$sizePolicy} = $sizePolicy; + $sizePolicy->setHorizontalStretch( 0 ); + $sizePolicy->setVerticalStretch( 0 ); + $sizePolicy->setHeightForWidth( $title->sizePolicy()->hasHeightForWidth() ); + $title->setSizePolicy( $sizePolicy ); + $title->setWordWrap( 0 ); + + $vboxLayout->addWidget( $title ); + + my $line1 = Qt::Frame( $debconfWizard ); + $self->{line1} = $line1; + $line1->setObjectName( 'line1' ); + $sizePolicy->setHeightForWidth( $line1->sizePolicy()->hasHeightForWidth() ); + $line1->setSizePolicy( $sizePolicy ); + $line1->setFrameShape( Qt::Frame::HLine() ); + $line1->setFrameShadow( Qt::Frame::Sunken() ); + + $vboxLayout->addWidget( $line1 ); + + my $mainFrame = Qt::Widget( $debconfWizard ); + $self->{mainFrame} = $mainFrame; + $mainFrame->setObjectName( 'mainFrame' ); + + $vboxLayout->addWidget( $mainFrame ); + + my $hboxLayout = Qt::HBoxLayout( ); + $self->{hboxLayout} = $hboxLayout; + $hboxLayout->setSpacing( 6 ); + $hboxLayout->setObjectName( 'hboxLayout' ); + my $bHelp = Qt::PushButton( $debconfWizard ); + $self->{bHelp} = $bHelp; + $bHelp->setObjectName( 'bHelp' ); + + $hboxLayout->addWidget( $bHelp ); + + my $spacer1 = Qt::SpacerItem( 161, 20, Qt::SizePolicy::Expanding(), Qt::SizePolicy::Minimum() ); + + $hboxLayout->addItem( $spacer1 ); + + my $bBack = Qt::PushButton( $debconfWizard ); + $self->{bBack} = $bBack; + $bBack->setObjectName( 'bBack' ); + + $hboxLayout->addWidget( $bBack ); + + my $bNext = Qt::PushButton( $debconfWizard ); + $self->{bNext} = $bNext; + $bNext->setObjectName( 'bNext' ); + + $hboxLayout->addWidget( $bNext ); + + my $bCancel = Qt::PushButton( $debconfWizard ); + $self->{bCancel} = $bCancel; + $bCancel->setObjectName( 'bCancel' ); + + $hboxLayout->addWidget( $bCancel ); + + + $vboxLayout->addLayout( $hboxLayout ); + + + $self->retranslateUi( $debconfWizard ); + + Qt::MetaObject->connectSlotsByName( $debconfWizard ); + return $self; +} # setupUi + +sub setup_ui { + my ( $debconfWizard ) = @_; + return setupUi( $debconfWizard ); +} + +sub retranslateUi { + my ( $self, $debconfWizard ) = @_; + $debconfWizard->setWindowTitle( Qt::Application::translate( 'DebconfWizard', 'Debconf', undef, Qt::Application::UnicodeUTF8() ) ); + $self->title()->setText( Qt::Application::translate( 'DebconfWizard', 'title', undef, Qt::Application::UnicodeUTF8() ) ); + $self->bHelp()->setText( Qt::Application::translate( 'DebconfWizard', 'Help', undef, Qt::Application::UnicodeUTF8() ) ); + $self->bBack()->setText( Qt::Application::translate( 'DebconfWizard', '< Back', undef, Qt::Application::UnicodeUTF8() ) ); + $self->bNext()->setText( Qt::Application::translate( 'DebconfWizard', 'Next >', undef, Qt::Application::UnicodeUTF8() ) ); + $self->bCancel()->setText( Qt::Application::translate( 'DebconfWizard', 'Cancel', undef, Qt::Application::UnicodeUTF8() ) ); +} # retranslateUi + +sub retranslate_ui { + my ( $debconfWizard ) = @_; + retranslateUi( $debconfWizard ); +} + +1;
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde/Wizard.pm b/beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde/Wizard.pm new file mode 100644 index 0000000..fc1030b --- /dev/null +++ b/beagle/debian-rfs/usr/share/perl5/Debconf/FrontEnd/Kde/Wizard.pm @@ -0,0 +1,80 @@ +#!/usr/bin/perl -w +# This file was preprocessed, do not edit! + + +package Debconf::FrontEnd::Kde::Wizard; +use strict; +use utf8; +use Debconf::Log ':all'; +use QtCore4; +use QtGui4; +use QtCore4::isa qw(Qt::Widget Debconf::FrontEnd::Kde::Ui_DebconfWizard); +use QtCore4::slots 'goNext' => [], 'goBack' => [], 'goBye' => []; +use Debconf::FrontEnd::Kde::Ui_DebconfWizard; + +use Data::Dumper; +sub NEW { + + my ( $class, $parent ) = @_; + $class->SUPER::NEW($parent ); + this->{frontend} = $_[3]; + + my $ui = this->{ui} = $class->setupUi(this); + + my $bNext = $ui->{bNext}; + my $bBack = $ui->{bBack}; + my $bCancel = $ui->{bCancel}; + this->setObjectName("Wizard"); + this->connect($bNext, SIGNAL 'clicked ()', SLOT 'goNext ()'); + this->connect($bBack, SIGNAL 'clicked ()', SLOT 'goBack ()'); + this->connect($bCancel, SIGNAL 'clicked ()', SLOT 'goBye ()'); + + this->{ui}->mainFrame->setObjectName("mainFrame");; +} + + +sub setTitle { + this->{ui}->{title}->setText($_[0]); +} + + +sub setNextEnabled { + this->{ui}->{bNext}->setEnabled(shift); +} + + +sub setBackEnabled { + this->{ui}->{bBack}->setEnabled(shift); +} + + +sub goNext { + debug frontend => "QTF: -- LEAVE EVENTLOOP --------"; + this->{frontend}->goback(0); + this->{frontend}->win->close; +} + + +sub goBack { + debug frontend => "QTF: -- LEAVE EVENTLOOP --------"; + this->{frontend}->goback(1); + this->{frontend}->win->close; +} + +sub setMainFrameLayout { + debug frontend => "QTF: -- SET MAIN LAYOUT --------"; + if(this->{ui}->mainFrame->layout) { + this->{ui}->mainFrame->layout->DESTROY; + } + this->{ui}->mainFrame->setLayout(shift); +} + + +sub goBye { + debug developer => "QTF: -- LEAVE EVENTLOOP --------"; + this->{frontend}->cancelled(1); + this->{frontend}->win->close; +} + + +1; |
