keygenwizard2.cc

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './keygenwizard2.ui'
00005 **
00006 ** Created: Mon Jul 16 17:43:55 2007
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "keygenwizard2.h"
00013 
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qlabel.h>
00017 #include <qlineedit.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a KGWizardPage2 as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 KGWizardPage2::KGWizardPage2( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "KGWizardPage2" );
00031     KGWizardPage2Layout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "KGWizardPage2Layout"); 
00032 
00033     TextLabel4 = new QLabel( this, "TextLabel4" );
00034     TextLabel4->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
00035 
00036     KGWizardPage2Layout->addMultiCellWidget( TextLabel4, 0, 0, 0, 1 );
00037 
00038     TextLabel6 = new QLabel( this, "TextLabel6" );
00039 
00040     KGWizardPage2Layout->addWidget( TextLabel6, 2, 0 );
00041 
00042     TextLabel5 = new QLabel( this, "TextLabel5" );
00043 
00044     KGWizardPage2Layout->addWidget( TextLabel5, 1, 0 );
00045 
00046     _password1 = new QLineEdit( this, "_password1" );
00047     _password1->setEchoMode( QLineEdit::Password );
00048 
00049     KGWizardPage2Layout->addWidget( _password1, 1, 1 );
00050 
00051     _password2 = new QLineEdit( this, "_password2" );
00052     _password2->setEchoMode( QLineEdit::Password );
00053 
00054     KGWizardPage2Layout->addWidget( _password2, 2, 1 );
00055     languageChange();
00056     resize( QSize(343, 155).expandedTo(minimumSizeHint()) );
00057     clearWState( WState_Polished );
00058 
00059     // buddies
00060     TextLabel6->setBuddy( _password2 );
00061     TextLabel5->setBuddy( _password1 );
00062 }
00063 
00064 /*
00065  *  Destroys the object and frees any allocated resources
00066  */
00067 KGWizardPage2::~KGWizardPage2()
00068 {
00069     // no need to delete child widgets, Qt does it all for us
00070 }
00071 
00072 /*
00073  *  Sets the strings of the subwidgets using the current
00074  *  language.
00075  */
00076 void KGWizardPage2::languageChange()
00077 {
00078     TextLabel4->setText( tr2i18n( "You must now provide a password for the certificate request. Please choose a very secure password as this will be used to encrypt your private key." ) );
00079     TextLabel6->setText( tr2i18n( "&Repeat password:" ) );
00080     TextLabel5->setText( tr2i18n( "&Choose password:" ) );
00081 }
00082 
00083 #include "keygenwizard2.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys