/****************************************************************************
** Form interface generated from reading ui file 'RubIdentite.ui'
**
** Created: Tue Jun 9 19:15:47 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!
****************************************************************************/

#ifndef FORMRUBIDENT_H
#define FORMRUBIDENT_H

#include <qvariant.h>
#include <qpixmap.h>
#include <qwidget.h>
#include <qsqldatabase.h>
#include <qsqlcursor.h>
#include <qeventloop.h>
#include <qpopupmenu.h>
#include <qlistbox.h>
#include "../../drtux/src/CMoteur_Base.h"
#include "Dlg_Appartenance.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class CMaskedLineEdit;
class QLabel;
class QFrame;
class QGroupBox;
class QLineEdit;
class QComboBox;
class QPushButton;
class QTextEdit;
class QTabWidget;
class QSplitter;
class QListView;
class QListViewItem;
class QTextBrowser;

class FormRubIdent : public QWidget
{
    Q_OBJECT

public:
    FormRubIdent( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~FormRubIdent();

    QLabel* textLabelCreation;
    QFrame* lineCreation;
    QGroupBox* groupBoxUser;
    QLineEdit* lineEdit_NumOrdinal;
    QLabel* textLabel2_2_2;
    QLineEdit* lineEdit_UserTitre;
    QLabel* textLabel3_2;
    QLineEdit* lineEdit_Login;
    QLineEdit* lineEdit_Nom;
    QLabel* textLabel2_2;
    QLabel* textLabel1_2_3;
    QLineEdit* lineEdit_Qualif;
    QLabel* textLabel1_2;
    QComboBox* comboBoxSexe;
    QPushButton* pushButtonPassWord;
    QLabel* textLabel1_2_2_3_2;
    QLabel* textLabel2;
    QLineEdit* lineEdit_Convention;
    QLineEdit* lineEdit_Prenom;
    QLabel* textLabel1_2_2_3;
    QLabel* textLabel1_2_2_2;
    QPushButton* pushButtonAddDroit;
    QPushButton* pushButtonRemoveDroit;
    QTextEdit* lineEdit_Droits;
    QPushButton* pushButtonAppartenance;
    QTabWidget* tabWidgetUser;
    QWidget* Tab_Adresse;
    QFrame* frameEtablissement;
    QLabel* textLabel4_2;
    QLabel* textLabel5_2_2;
    QLabel* textLabel6_2;
    QLabel* textLabel5_2_2_2;
    QLabel* textLabel5_2;
    QLabel* textLabel5_2_2_3;
    QLineEdit* lineEdit_Ets_Name;
    QTextEdit* textEdit_Ets_Adresse;
    QLineEdit* lineEdit_Ets_CdPostal;
    QLineEdit* lineEdit_Ets_Ville;
    QLineEdit* lineEdit_Ets_Tel;
    QLineEdit* lineEdit_Ets_Fax;
    QLineEdit* lineEdit_Ets_Poste;
    QFrame* frame3;
    QTextEdit* textEdit_Adresse;
    QLabel* textLabel4;
    QLabel* textLabel5;
    QLabel* textLabel6;
    QLineEdit* lineEdit_CdPostal;
    QLineEdit* lineEdit_Ville;
    QLabel* textLabel_Email;
    QLabel* textLabel_Tel_3;
    CMaskedLineEdit* lineEdit_Tel_3;
    CMaskedLineEdit* lineEdit_Code_3;
    QComboBox* comboBoxTelTyp_3;
    QLabel* textLabel_Tel_2;
    CMaskedLineEdit* lineEdit_Tel_2;
    CMaskedLineEdit* lineEdit_Code_2;
    QComboBox* comboBoxTelTyp_2;
    QLabel* textLabel_Tel_1;
    CMaskedLineEdit* lineEdit_Tel_1;
    CMaskedLineEdit* lineEdit_Code_1;
    QComboBox* comboBoxTelTyp_1;
    QLineEdit* lineEdit_Email;
    QWidget* Tab_FriendUser;
    QSplitter* splitter2;
    QListView* listViewFriendUserList;
    QPushButton* pushButtonAddPermsUser;
    QPushButton* pushButtonRemovePermsUser;
    QTextBrowser* textBrowserInfoPerms;
    QPushButton* pushButtonSaveNew;
    QPushButton* pushButtonAnnulerCreation;

    QString m_CriptedPassWord;
    CMoteurBase* m_pCMoteurBase;
    QString m_DossNom;
    QString m_NumGUID;
    QString m_ID_Doss;
    QString m_DossPrenom;

    virtual int getCurrentPageID_ByTitle( QTabWidget * pQTabWidget, const QString & title );
    virtual int GetUserIdentiteFromPrimKey( QString & primKey );
    virtual int UpdateUserDataRecord( int keepMedUser );
    virtual QString DoPopupList( QStringList & list );
    virtual bool DoAssistantDroits( QString & droits, int mode );

public slots:
    virtual void On_listViewFriendUserList_mouseButtonClicked( int button, QListViewItem * pQListViewItem, const QPoint &, int c );
    virtual void On_ComboBoxLostFocus_TelTyp_1();
    virtual void On_ComboBoxLostFocus_TelTyp_2();
    virtual void On_ComboBoxLostFocus_TelTyp_3();
    virtual void InitAllComboTelType();
    virtual void AddThisItemIfNotExist( QComboBox * pQComboBox, const QString & str );
    virtual void OnTextChanged_lineEdit_Tel_1( const QString & );
    virtual void OnTextChanged_lineEdit_Tel_2( const QString & );
    virtual void OnTextChanged_lineEdit_Tel_3( const QString & );
    virtual void OnTextChanged_lineEdit_Code_1( const QString & );
    virtual void OnTextChanged_lineEdit_Code_2( const QString & );
    virtual void OnTextChanged_lineEdit_Code_3( const QString & );
    virtual void OnTextChanged_lineEdit_Email( const QString & );
    virtual void OnTextChanged_comboBoxTelTyp_1( const QString & );
    virtual void OnTextChanged_comboBoxTelTyp_2( const QString & );
    virtual void OnTextChanged_comboBoxTelTyp_3( const QString & );
    virtual void OnTextChanged_lineEdit_UserTitre( const QString & );
    virtual void OnTextChanged_lineEdit_Nom( const QString & );
    virtual void OnTextChanged_lineEdit_Prenom( const QString & );
    virtual void OnTextChanged_lineEdit_Login( const QString & );
    virtual void OnTextChanged_comboBoxSexe( const QString & );
    virtual void OnTextChanged_lineEdit_Qualif( const QString & );
    virtual void OnTextChanged_lineEdit_NumOrdinal( const QString & );
    virtual void OnTextChanged_lineEdit_Convention( const QString & );
    virtual void OnTextChanged_lineEdit_Droits();
    virtual void OnTextChanged_textEdit_Adresse();
    virtual void OnTextChanged_lineEdit_CdPostal( const QString & );
    virtual void OnTextChanged_lineEdit_Ville( const QString & );
    virtual void NotifyIdentChangedToGestUser( const QString & );
    virtual void listViewFriendUserList_contextMenuRequested( QListViewItem * pQListViewItem, const QPoint &, int pos );
    virtual void pushButtonAddPermsUser_clicked();
    virtual void SavePermsUserList( QString signGUID );
    virtual void SetPermsUserListDroits( const QString & droits );
    virtual void pushButtonRemovePermsUser_clicked();
    virtual void lineEdit_Droits_textChanged( const QString & droits );
    virtual void setPermsInterfaceOnDroits( QString droits );
    virtual void OnLineEdit_Login_lostFocus();
    virtual void pushButtonAnnulerCreation_clicked();
    virtual void pushButtonSaveNew_clicked();
    virtual void SetData();
    virtual void SetPassWord( const char * password );
    virtual void FormulaireToQSqlRecord( QSqlRecord * buffer, int keepMedUser );
    virtual void clearData();
    virtual void pushButtonPassWord_clicked();
    virtual void exeAssistantUserChoice();
    virtual void pushButtonAddDroit_clicked();
    virtual void pushButtonRemoveDroit_clicked();
    virtual void OnMenuActivated( int id );
    virtual void GetPopupItem();
    virtual void pushButtonAppartenance_clicked();
    virtual void OutSQL_error( QSqlQuery & cur, const char * messFunc, const char * requete );

signals:
    void Sign_PassWordChanged(const char* password);
    void Sign_SaveButtonClicked();
    void Sign_CancelButtonClicked();
    void Sign_RubChanged();

protected:
    QPixmap m_PixMapMoins;
    QPixmap m_PixMapPlus;
    QString m_RetPopupItem;
    QString m_CurrentPopupItem;
    QPopupMenu *m_pQPopupMenu;

    QGridLayout* FormRubIdentLayout;
    QGridLayout* layout2;
    QGridLayout* groupBoxUserLayout;
    QGridLayout* layout7;
    QGridLayout* layout13;
    QGridLayout* layout12;
    QSpacerItem* spacer1;
    QGridLayout* layout12_2;
    QHBoxLayout* layout9;
    QGridLayout* Tab_AdresseLayout;
    QGridLayout* frameEtablissementLayout;
    QGridLayout* frame3Layout;
    QVBoxLayout* layout19;
    QGridLayout* layout18;
    QVBoxLayout* layout16;
    QHBoxLayout* layout14;
    QHBoxLayout* layout15;
    QGridLayout* layout25;
    QHBoxLayout* layout24;
    QHBoxLayout* layout23;
    QHBoxLayout* layout22;
    QGridLayout* Tab_FriendUserLayout;
    QGridLayout* layout10;
    QHBoxLayout* layout9_2;
    QHBoxLayout* layout1;

protected slots:
    virtual void languageChange();

private:
    QPixmap image0;

    void init();

};

#endif // FORMRUBIDENT_H
