kio Library API Documentation

keygenwizard2.cc

00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './keygenwizard2.ui'
00004 **
00005 ** Created: Sun Feb 27 21:53:16 2005
00006 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
00007 **
00008 ** WARNING! All changes made in this file will be lost!
00009 ****************************************************************************/
00010 
00011 #include "keygenwizard2.h"
00012 
00013 #include <qvariant.h>
00014 #include <qlabel.h>
00015 #include <qlineedit.h>
00016 #include <qlayout.h>
00017 #include <qtooltip.h>
00018 #include <qwhatsthis.h>
00019 
00020 /* 
00021  *  Constructs a KGWizardPage2 as a child of 'parent', with the 
00022  *  name 'name' and widget flags set to 'f'.
00023  */
00024 KGWizardPage2::KGWizardPage2( QWidget* parent, const char* name, WFlags fl )
00025     : QWidget( parent, name, fl )
00026 {
00027     if ( !name )
00028     setName( "KGWizardPage2" );
00029     KGWizardPage2Layout = new QGridLayout( this, 1, 1, 11, 6, "KGWizardPage2Layout"); 
00030 
00031     TextLabel4 = new QLabel( this, "TextLabel4" );
00032     TextLabel4->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
00033 
00034     KGWizardPage2Layout->addMultiCellWidget( TextLabel4, 0, 0, 0, 1 );
00035 
00036     TextLabel6 = new QLabel( this, "TextLabel6" );
00037 
00038     KGWizardPage2Layout->addWidget( TextLabel6, 2, 0 );
00039 
00040     TextLabel5 = new QLabel( this, "TextLabel5" );
00041 
00042     KGWizardPage2Layout->addWidget( TextLabel5, 1, 0 );
00043 
00044     _password1 = new QLineEdit( this, "_password1" );
00045     _password1->setEchoMode( QLineEdit::Password );
00046 
00047     KGWizardPage2Layout->addWidget( _password1, 1, 1 );
00048 
00049     _password2 = new QLineEdit( this, "_password2" );
00050     _password2->setEchoMode( QLineEdit::Password );
00051 
00052     KGWizardPage2Layout->addWidget( _password2, 2, 1 );
00053     languageChange();
00054     resize( QSize(343, 155).expandedTo(minimumSizeHint()) );
00055     clearWState( WState_Polished );
00056 
00057     // buddies
00058     TextLabel6->setBuddy( _password2 );
00059     TextLabel5->setBuddy( _password1 );
00060 }
00061 
00062 /*
00063  *  Destroys the object and frees any allocated resources
00064  */
00065 KGWizardPage2::~KGWizardPage2()
00066 {
00067     // no need to delete child widgets, Qt does it all for us
00068 }
00069 
00070 /*
00071  *  Sets the strings of the subwidgets using the current
00072  *  language.
00073  */
00074 void KGWizardPage2::languageChange()
00075 {
00076     setCaption( tr2i18n( "Form3" ) );
00077     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." ) );
00078     TextLabel6->setText( tr2i18n( "&Repeat password:" ) );
00079     TextLabel5->setText( tr2i18n( "&Choose password:" ) );
00080 }
00081 
00082 #include "keygenwizard2.moc"
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:15:29 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001