/****************************************************************************
** Form implementation generated from reading ui file 'Dlg_NewUser.ui'
**
** Created: Tue Jun 9 19:17:34 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 "Dlg_NewUser.h"

#include <qvariant.h>
#include <qdir.h>
#include <qmessagebox.h>
#include <qpushbutton.h>
#include <qtextedit.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "Dlg_NewUser.ui.h"

/*
 *  Constructs a Dlg_NewUser 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.
 */
Dlg_NewUser::Dlg_NewUser( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setProperty( "name", "Dlg_NewUser" );
    Dlg_NewUserLayout = new QGridLayout( this, 1, 1, 11, 6, "Dlg_NewUserLayout"); 

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

    pushButtonCancel = new QPushButton( this, "pushButtonCancel" );

    layout1->addWidget( pushButtonCancel, 0, 1 );

    pushButtonOk = new QPushButton( this, "pushButtonOk" );
    pushButtonOk->setProperty( "autoDefault", QVariant( TRUE, 0 ) );
    pushButtonOk->setProperty( "default", QVariant( TRUE, 0 ) );

    layout1->addWidget( pushButtonOk, 0, 0 );

    Dlg_NewUserLayout->addMultiCellLayout( layout1, 1, 1, 0, 1 );

    textEdit_infos = new QTextEdit( this, "textEdit_infos" );
    textEdit_infos->setProperty( "readOnly", QVariant( TRUE, 0 ) );

    Dlg_NewUserLayout->addWidget( textEdit_infos, 0, 1 );

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

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

    lineEdit_Login = new QLineEdit( this, "lineEdit_Login" );

    layout7->addWidget( lineEdit_Login, 0, 1 );

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

    layout7->addWidget( textLabel2_3, 0, 0 );

    layout8->addLayout( layout7, 1, 0 );

    labelIconePs = new QLabel( this, "labelIconePs" );
    labelIconePs->setProperty( "minimumSize", QSize( 242, 153 ) );
    labelIconePs->setProperty( "maximumSize", QSize( 242, 153 ) );

    layout8->addWidget( labelIconePs, 0, 0 );

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

    textLabel2_3_2_2 = new QLabel( this, "textLabel2_3_2_2" );
    layout4->addWidget( textLabel2_3_2_2 );

    lineEdit_Pass_conf = new QLineEdit( this, "lineEdit_Pass_conf" );
    lineEdit_Pass_conf->setProperty( "echoMode", "Password" );
    layout4->addWidget( lineEdit_Pass_conf );

    layout8->addLayout( layout4, 3, 0 );

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

    textLabel2_3_2 = new QLabel( this, "textLabel2_3_2" );
    layout3->addWidget( textLabel2_3_2 );

    lineEdit_Pass_one = new QLineEdit( this, "lineEdit_Pass_one" );
    lineEdit_Pass_one->setProperty( "echoMode", "Password" );
    layout3->addWidget( lineEdit_Pass_one );

    layout8->addLayout( layout3, 2, 0 );

    Dlg_NewUserLayout->addLayout( layout8, 0, 0 );
    languageChange();
    resize( QSize(515, 337).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pushButtonOk, SIGNAL( clicked() ), this, SLOT( pushButtonOk_clicked() ) );
    connect( pushButtonCancel, SIGNAL( clicked() ), this, SLOT( pushButtonCancel_clicked() ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Dlg_NewUser::languageChange()
{
    setProperty( "caption", trUtf8( "\x43\x72\xc3\xa9\x65\x72\x20\x75\x6e\x20\x75\x74\x69\x6c\x69\x73\x61\x74\x65\x75\x72"
    "" ) );
    pushButtonCancel->setProperty( "text", tr( "Annuler" ) );
    pushButtonOk->setProperty( "text", tr( "Confirmer" ) );
    textLabel2_3->setProperty( "text", tr( "Login" ) );
    labelIconePs->setProperty( "text", QString::null );
    textLabel2_3_2_2->setProperty( "text", tr( "Confirmation" ) );
    textLabel2_3_2->setProperty( "text", tr( "Mot de passe" ) );
}

