#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './dmd_nom.ui'
**
** Created: ven aoû 29 18:23:33 2003
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "dmd_nom.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "./dmd_nom.ui.h"

/* 
 *  Constructs a demande_chemin 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.
 */
demande_chemin::demande_chemin( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "demande_chemin" );
    setMinimumSize( QSize( 800, 60 ) );
    setMaximumSize( QSize( 800, 60 ) );

    OK = new QPushButton( this, "OK" );
    OK->setGeometry( QRect( 670, 0, 121, 30 ) );

    chemin = new QLineEdit( this, "chemin" );
    chemin->setGeometry( QRect( 260, 0, 411, 30 ) );

    textLabel1 = new QLabel( this, "textLabel1" );
    textLabel1->setGeometry( QRect( 10, 0, 254, 30 ) );

    textLabel1_2 = new QLabel( this, "textLabel1_2" );
    textLabel1_2->setGeometry( QRect( 0, 30, 791, 30 ) );
    textLabel1_2->setAlignment( int( QLabel::AlignCenter ) );
    languageChange();
    resize( QSize(800, 60).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( OK, SIGNAL( pressed() ), this, SLOT( reject() ) );
    connect( chemin, SIGNAL( textChanged(const QString&) ), this, SLOT( nouveau_chemin() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void demande_chemin::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    OK->setText( tr2i18n( "Validation" ) );
    chemin->setText( tr2i18n( "/etc/X11/XF86Config-4" ) );
    textLabel1->setText( tr2i18n( "Chemin du fichier XF86Config-4 à travailler :" ) );
    textLabel1_2->setText( tr2i18n( "Vous reviendrez à cette fenêtre tant que vous n'aurez pas indiqué un fichier existant." ) );
}

#include "dmd_nom.moc"
