/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you wish to add, delete or rename functions respectively slots use
** Qt Designer which will update this file, preserving your code. Create an
** init() function in place of a constructor, and a destroy() function in
** place of a destructor.
*****************************************************************************/


void FormTri::ranger()
{
    QString nom1,nom2;
    nom1=LineEditNom1->text();
    nom2=LineEditNom2->text();
    if (nom2<nom1)
    {
	LineEditNom1->setText(nom2);
	LineEditNom2->setText(nom1);
    }
}


void FormTri::init()
{
    PushButtonRanger->setEnabled(0);
}


void FormTri::examine()
{
    QString nom1,nom2;
    nom1=LineEditNom1->text();
    nom2=LineEditNom2->text();
    if (nom1=="" and nom2=="")
	PushButtonRanger->setEnabled(0);
    else
    {
	if (nom2<nom1 and nom1!="" and nom2!="")
	    PushButtonRanger->setEnabled(1);
	else
	    PushButtonRanger->setEnabled(0);
    }
}
