- Page principale
- Classes
- Fichiers
- Pages associées

# /home/eric/Bureau/MedinTux-V-2.00/Plug/Compta2/compta/ui/FormLinkTux.ui.h

    00001 /****************************************************************************
    00002 ** ui.h extension file, included from the uic-generated form implementation.
    00003 **
    00004 ** If you want to add, delete, or rename functions or slots, use
    00005 ** Qt Designer to update this file, preserving your code.
    00006 **
    00007 ** You should not define a constructor or destructor in this file.
    00008 ** Instead, write your code in functions called init() and destroy().
    00009 ** These will automatically be called by the form's constructor and
    00010 ** destructor.
    00011 *****************************************************************************/
    00012
    00013 #include <qmessagebox.h>
    00014
    00015 void FormLinkTux::init()
    00016 { selectedUsrId = 0;
    00017 //   setWFlags(Qt::WDestructiveClose);
    00018 }
    00019
    00020 void FormLinkTux::destroy()
    00021 { //delete tux_usr;
    00022 }
    00023
    00024
    00025 void FormLinkTux::setUsersList( UTILISATEURS_LISTE* ul )
    00026 { UTILISATEURS_LISTE::iterator it;
    00027    tux_usr = ul;
    00028   for (it = ul->begin() ; it != ul->end(); ++it)
    00029    { usersList->insertItem( (*it).getNom() ); }
    00030 }
    00031
    00032
    00033 void FormLinkTux::usersList_selected( int id )
    00034 { UTILISATEURS_LISTE::iterator it = tux_usr->at( id );
    00035    selectedUsrId = id;
    00036    nomUsr->setText( (*it).getNom() );
    00037    loginUsr->setText( (*it).getLogin() );
    00038    passUsr->setFocus();
    00039 }
    00040
    00041
    00042 void FormLinkTux::butValider_clicked()
    00043 { emit (signal_FormLinkTux_butValider_clicked() ); }
    00044
    00045
    00046 int FormLinkTux::getSelectedUsr( )
    00047 { return selectedUsrId;;}
    00048
    00049 QString FormLinkTux::getPassword( )
    00050 { return passUsr->text();}
    00051
    00052 QString FormLinkTux::getLogin( )
    00053 { return loginUsr->text();}
    00054
    00055 UTILISATEURS_LISTE* FormLinkTux::getTuxUsr()
    00056 { return tux_usr; }
    00057
    00058 void FormLinkTux::valide() { close(); }
    00059
    00060