#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/usr/src/ports/kdelibs3/kdelibs3-3.5.10-11.i686/src/kdelibs-3.5.10/kio/kssl/keygenwizard2.ui'
**
** Created by User Interface Compiler
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "keygenwizard2.h"

#include <qvariant.h>
#include <kdialog.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a KGWizardPage2 as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KGWizardPage2::KGWizardPage2( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "KGWizardPage2" );
    KGWizardPage2Layout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "KGWizardPage2Layout"); 

    TextLabel4 = new QLabel( this, "TextLabel4" );
    TextLabel4->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );

    KGWizardPage2Layout->addMultiCellWidget( TextLabel4, 0, 0, 0, 1 );

    TextLabel6 = new QLabel( this, "TextLabel6" );

    KGWizardPage2Layout->addWidget( TextLabel6, 2, 0 );

    TextLabel5 = new QLabel( this, "TextLabel5" );

    KGWizardPage2Layout->addWidget( TextLabel5, 1, 0 );

    _password1 = new QLineEdit( this, "_password1" );
    _password1->setEchoMode( QLineEdit::Password );

    KGWizardPage2Layout->addWidget( _password1, 1, 1 );

    _password2 = new QLineEdit( this, "_password2" );
    _password2->setEchoMode( QLineEdit::Password );

    KGWizardPage2Layout->addWidget( _password2, 2, 1 );
    languageChange();
    resize( QSize(343, 155).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    TextLabel6->setBuddy( _password2 );
    TextLabel5->setBuddy( _password1 );
}

/*
 *  Destroys the object and frees any allocated resources
 */
KGWizardPage2::~KGWizardPage2()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KGWizardPage2::languageChange()
{
    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." ) );
    TextLabel6->setText( tr2i18n( "&Repeat password:" ) );
    TextLabel5->setText( tr2i18n( "&Choose password:" ) );
}

#include "keygenwizard2.moc"
