/****************************************************************************
** Form implementation generated from reading ui file 'DlgPassChange.ui'
**
** Created: Tue Jun 9 19:16:04 2009
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "DlgPassChange.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "DlgPassChange.ui.h"

/*
 *  Constructs a DlgPassChange as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
DlgPassChange::DlgPassChange( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setProperty( "name", "DlgPassChange" );
    setProperty( "enabled", QVariant( TRUE, 0 ) );
    DlgPassChangeLayout = new QGridLayout( this, 1, 1, 11, 6, "DlgPassChangeLayout"); 

    layout3 = new QGridLayout( 0, 1, 1, 0, 6, "layout3"); 

    layout1 = new QVBoxLayout( 0, 0, 6, "layout1"); 

    lineEditPass1 = new QLineEdit( this, "lineEditPass1" );
    lineEditPass1->setProperty( "frameShape", "LineEditPanel" );
    lineEditPass1->setProperty( "frameShadow", "Sunken" );
    lineEditPass1->setProperty( "maxLength", 8 );
    lineEditPass1->setProperty( "echoMode", "Password" );
    layout1->addWidget( lineEditPass1 );

    lineEditPass2 = new QLineEdit( this, "lineEditPass2" );
    lineEditPass2->setProperty( "maxLength", 8 );
    lineEditPass2->setProperty( "echoMode", "Password" );
    layout1->addWidget( lineEditPass2 );

    textLabel2_2 = new QLabel( this, "textLabel2_2" );
    textLabel2_2->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignCenter ) );
    layout1->addWidget( textLabel2_2 );

    layout3->addLayout( layout1, 0, 1 );

    layout2 = new QVBoxLayout( 0, 0, 6, "layout2"); 

    textLabel1 = new QLabel( this, "textLabel1" );
    textLabel1->setProperty( "frameShape", "NoFrame" );
    textLabel1->setProperty( "frameShadow", "Plain" );
    layout2->addWidget( textLabel1 );

    textLabel2 = new QLabel( this, "textLabel2" );
    layout2->addWidget( textLabel2 );

    textLabel2_3 = new QLabel( this, "textLabel2_3" );
    layout2->addWidget( textLabel2_3 );

    layout3->addLayout( layout2, 0, 0 );

    DlgPassChangeLayout->addLayout( layout3, 0, 0 );

    layout4 = new QHBoxLayout( 0, 0, 6, "layout4"); 

    checkBoxMemorise = new QCheckBox( this, "checkBoxMemorise" );
    layout4->addWidget( checkBoxMemorise );

    pushButtonOK = new QPushButton( this, "pushButtonOK" );
    pushButtonOK->setProperty( "enabled", QVariant( TRUE, 0 ) );
    layout4->addWidget( pushButtonOK );

    DlgPassChangeLayout->addLayout( layout4, 1, 0 );
    languageChange();
    resize( QSize(335, 129).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( lineEditPass1, SIGNAL( textChanged(const QString&) ), this, SLOT( lineEditPass1_textChanged(const QString&) ) );
    connect( lineEditPass2, SIGNAL( textChanged(const QString&) ), this, SLOT( lineEditPass2_textChanged(const QString&) ) );
    connect( pushButtonOK, SIGNAL( clicked() ), this, SLOT( pushButtonOK_clicked() ) );

    // buddies
    textLabel2_2->setBuddy( lineEditPass2 );
    textLabel1->setBuddy( lineEditPass1 );
    textLabel2->setBuddy( lineEditPass2 );
    textLabel2_3->setBuddy( lineEditPass2 );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DlgPassChange::languageChange()
{
    setProperty( "caption", tr( "Saisie du mot de passe" ) );
    textLabel2_2->setProperty( "text", trUtf8( "\x3c\x62\x3e\x3c\x69\x3e\x28\x68\x75\x69\x74\x20\x63\x61\x72\x61\x63\x74\xc3\xa8\x72"
    "\x65\x73\x20\x6d\x61\x78\x69\x6d\x75\x6d\x29\x3c\x2f\x69\x3e\x3c\x2f\x62\x3e" ) );
    textLabel1->setProperty( "text", tr( "Mot de &passe" ) );
    textLabel2->setProperty( "text", tr( "&Confirmation" ) );
    textLabel2_3->setProperty( "text", QString::null );
    checkBoxMemorise->setProperty( "text", trUtf8( "\x26\x4d\xc3\xa9\x6d\x6f\x72\x69\x73\x65\x72\x20\x6c\x65\x20\x6d\x6f\x74\x20\x64\x65"
    "\x20\x70\x61\x73\x73\x65" ) );
    checkBoxMemorise->setProperty( "accel", QKeySequence( tr( "Alt+M" ) ) );
    pushButtonOK->setProperty( "text", tr( "&Valider" ) );
    pushButtonOK->setProperty( "accel", QKeySequence( tr( "Alt+V" ) ) );
}

