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

#include <qvariant.h>
#include <stdlib.h>
#include <qpushbutton.h>
#include <qdatetimeedit.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "DlgDateNom.ui.h"

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

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

    DlgDateNomLayout->addWidget( pushButtonOK, 2, 2 );

    dateTimeEdit1 = new QDateTimeEdit( this, "dateTimeEdit1" );

    DlgDateNomLayout->addWidget( dateTimeEdit1, 2, 1 );

    textLabelDate = new QLabel( this, "textLabelDate" );
    textLabelDate->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    DlgDateNomLayout->addWidget( textLabelDate, 2, 0 );

    textLabelNom = new QLabel( this, "textLabelNom" );
    textLabelNom->setProperty( "textFormat", "AutoText" );
    textLabelNom->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    DlgDateNomLayout->addWidget( textLabelNom, 0, 0 );

    lineEdit_SubType = new QLineEdit( this, "lineEdit_SubType" );
    lineEdit_SubType->setProperty( "maxLength", 40 );

    DlgDateNomLayout->addMultiCellWidget( lineEdit_SubType, 1, 1, 1, 2 );

    lineEditNom = new QLineEdit( this, "lineEditNom" );
    lineEditNom->setProperty( "maxLength", 40 );

    DlgDateNomLayout->addMultiCellWidget( lineEditNom, 0, 0, 1, 2 );

    textLabelNom_2 = new QLabel( this, "textLabelNom_2" );
    textLabelNom_2->setProperty( "textFormat", "AutoText" );
    textLabelNom_2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    DlgDateNomLayout->addWidget( textLabelNom_2, 1, 0 );
    languageChange();
    resize( QSize(436, 112).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pushButtonOK, SIGNAL( clicked() ), this, SLOT( pushButtonOK_clicked() ) );

    // tab order
    setTabOrder( lineEditNom, dateTimeEdit1 );
    setTabOrder( dateTimeEdit1, pushButtonOK );

    // buddies
    textLabelDate->setBuddy( dateTimeEdit1 );
    textLabelNom->setBuddy( lineEditNom );
    textLabelNom_2->setBuddy( lineEditNom );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DlgDateNom::languageChange()
{
    setProperty( "caption", trUtf8( "\x53\x61\x69\x73\x69\x65\x20\x64\x65\x20\x6c\x61\x20\x64\x61\x74\x65\x20\x65\x74\x20"
    "\x64\x65\x20\x6c\x27\x69\x6e\x74\x69\x74\x75\x6c\xc3\xa9\x20\x64\x65\x20\x6c\x61"
    "\x20\x72\x75\x62\x72\x69\x71\x75\x65" ) );
    pushButtonOK->setProperty( "text", tr( "&Valider" ) );
    pushButtonOK->setProperty( "accel", QKeySequence( tr( "Alt+V" ) ) );
    textLabelDate->setProperty( "text", tr( "&Date :" ) );
    textLabelNom->setProperty( "text", trUtf8( "\x26\x49\x6e\x74\x69\x74\x75\x6c\xc3\xa9\x20\x3a" ) );
    QToolTip::add( lineEdit_SubType, trUtf8( "\x49\x63\x69\x20\x70\x6c\x61\x63\x65\x72\x20\x6c\x65\x20\x73\x6f\x75\x73\x20\x74\x79"
    "\x70\x65\x20\x64\x65\x20\x6c\x61\x20\x72\x75\x62\x72\x69\x71\x75\x65\x2c\x20\x70"
    "\x6f\x75\x72\x20\x6c\x61\x20\x6c\x69\x65\x72\x20\xc3\xa0\x20\x75\x6e\x20\x6d\x6f"
    "\x64\xc3\xa8\x6c\x65\x20\x64\x27\x69\x6d\x70\x72\x65\x73\x73\x69\x6f\x6e\x2e", "\x49\x63\x69\x20\x70\x6c\x61\x63\x65\x72\x20\x6c\x65\x20\x73\x6f\x75\x73\x20\x74\x79"
    "\x70\x65\x20\x64\x65\x20\x6c\x61\x20\x72\x75\x62\x72\x69\x71\x75\x65\x2c\x20\x70"
    "\x6f\x75\x72\x20\x6c\x61\x20\x6c\x69\x65\x72\x20\xc3\xa0\x20\x75\x6e\x20\x6d\x6f"
    "\x64\xc3\xa8\x6c\x65\x20\x64\x27\x69\x6d\x70\x72\x65\x73\x73\x69\x6f\x6e\x2e" ) );
    QToolTip::add( lineEditNom, trUtf8( "\x49\x63\x69\x20\x70\x6c\x61\x63\x65\x72\x20\x6c\x65\x20\x74\x69\x74\x72\x65\x20\x64"
    "\x65\x20\x6c\x61\x20\x72\x75\x62\x72\x69\x71\x75\x65\x20\x28\x63\x65\x6c\x75\x69"
    "\x20\x61\x66\x66\x69\x63\x68\xc3\xa9\x20\x64\x61\x6e\x73\x20\x6c\x61\x20\x6c\x69"
    "\x73\x74\x65\x20\x64\xc3\xa9\x72\x6f\x75\x6c\x61\x6e\x74\x65\x20\x64\x65\x73\x20"
    "\x72\x75\x62\x72\x69\x71\x75\x65\x73\x29\x2e" ) );
    QWhatsThis::add( lineEditNom, trUtf8( "\x49\x63\x69\x20\x70\x6c\x61\x63\x65\x72\x20\x6c\x65\x20\x74\x69\x74\x72\x65\x20\x64"
    "\x65\x20\x6c\x61\x20\x72\x75\x62\x72\x69\x71\x75\x65\x20\x28\x63\x65\x6c\x75\x69"
    "\x20\x61\x66\x66\x69\x63\x68\xc3\xa9\x20\x64\x61\x6e\x73\x20\x6c\x61\x20\x6c\x69"
    "\x73\x74\x65\x20\x64\xc3\xa9\x72\x6f\x75\x6c\x61\x6e\x74\x65\x20\x64\x65\x73\x20"
    "\x72\x75\x62\x72\x69\x71\x75\x65\x73\x29\x2e" ) );
    textLabelNom_2->setProperty( "text", tr( "Sous &type :" ) );
}

