/****************************************************************************
** Form interface generated from reading ui file 'RubIdentite.ui'
**
** Created: mer nov 19 01:43:42 2008
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
**
** 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 <qimage.h>
#include <qiconset.h>
#include <qdir.h>
#include "CMoteur_Base.h"
#include "CApp.h"
#include "../../MedinTuxTools/ThemePopup.h"
#include "../../MedinTuxTools/Theme.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class CMaskedLineEdit;
class QPushButton;
class QTabWidget;
class QListView;
class QListViewItem;
class QTextEdit;
class QLabel;
class QGroupBox;
class QLineEdit;
class QCheckBox;

class FormRubIdent : public QWidget
{
    Q_OBJECT

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

    QPushButton* pushButtonCreate;
    QPushButton* pushButtonSavModif;
    QPushButton* pushButtonCancel;
    QTabWidget* tabWidgetNotes;
    QWidget* tab;
    QListView* listView_Praticiens;
    QPushButton* pushButton_AddMedTTT;
    QPushButton* pushButton_DelMedTTT;
    QWidget* tab_2;
    QTextEdit* textEdit_Note;
    QPushButton* pushButton_ViewNotes;
    QLabel* textLabel_NumDoss;
    QLabel* textLabelNumeroDoss;
    QGroupBox* groupBox1;
    QLabel* textLabel10;
    QLineEdit* lineEdit_Email;
    QLabel* textLabel5;
    CMaskedLineEdit* lineEdit_CdPostal;
    QLabel* textLabel6;
    CMaskedLineEdit* lineEditVille;
    QLabel* textLabel2;
    CMaskedLineEdit* lineEdit_NomDossier;
    CMaskedLineEdit* lineEdit_PremomDossier;
    QLabel* textLabel2_2;
    QLabel* textLabel4;
    QTextEdit* textEdit_Adresse;
    CMaskedLineEdit* lineEdit_Tel3;
    CMaskedLineEdit* lineEdit_Tel1;
    QLabel* textLabel3_2_2_2;
    QLabel* textLabel3_2_2_3;
    CMaskedLineEdit* lineEdit_Tel2;
    QLabel* textLabel3_2_2;
    CMaskedLineEdit* lineEdit_DtNss;
    QLabel* textLabel3_3;
    QLabel* textLabel3;
    CMaskedLineEdit* lineEdit_Sexe;
    QLabel* textLabel1_2;
    CMaskedLineEdit* lineEdit_Profession;
    QLabel* textLabel2_2_2;
    CMaskedLineEdit* lineEdit_NomDeNss;
    QLabel* textLabel2_2_2_2;
    CMaskedLineEdit* lineEdit_Titre;
    QGroupBox* groupBox2;
    QCheckBox* checkBox_IsNotPatient;
    QLabel* textLabel8;
    CMaskedLineEdit* lineEdit_NomAssure;
    QLabel* textLabel9;
    CMaskedLineEdit* lineEdit_PrenomAssure;
    QLabel* textLabel7;
    CMaskedLineEdit* lineEdit_NumSecu;
    QLabel* lineEdit_NssClef;

    int m_IsModifiable;
    QIconSet m_IconIsNoteHide;
    CMoteurBase* m_pCMoteurBase;
    QString m_DossNom;
    QString m_NumGUID;
    QString m_ID_Doss;
    QString m_DossPrenom;
    QString m_User;
    QIconSet m_IconIsNoteShow;

    virtual QString DoPopupList( QStringList & list, int x, int y );
    virtual QString ComputeClef_Secu( const char * txt );
    virtual int DataToFormulaire( QString & refToPrimkeyDoss );
    virtual QString ToNum( QString in );

public slots:
    virtual void SetInterfaceOnDroits( const QString & droits );
    virtual void OnOutFocuslineEdit_DtNss();
    virtual void SetModifiableState( int state );
    virtual void OnInFocusNumSecu();
    virtual void OnOutFocusNumSecu();
    virtual void checkBox_IsNotPatient_clicked();
    virtual void OnOutFocusVille();
    virtual void OnOutFocusCodePostal();
    virtual void OnMenuActivated( int id );
    virtual void GetPopupItem();
    virtual void OnCharEventCodePostal( QEvent * );
    virtual void OnCharEventNumSecu( QEvent * );
    virtual void SetData();
    virtual void SetData( int flag );
    virtual void ClearDialog();
    virtual void pushButtonCreate_clicked();
    virtual void pushButtonSavModif_clicked();
    virtual void SetFieldListData( PtrListIdentFieldData & list_field );
    virtual void pushButtonCancel_clicked();
    virtual void listView_Praticiens_doubleClicked( QListViewItem * pQListViewItem );
    virtual void pushButton_AddMedTTT_clicked();
    virtual void exeAnnuaire( QString idInterv );
    virtual void pushButton_DelMedTTT_clicked();
    virtual void pushButton_ViewNotes_clicked();
    virtual void synchronizeNoteWith( const char * txt );
    virtual void textEdit_Note_textChanged();

signals:
    void Sign_IdentChange(const char*, const char*, const char*, const char* );
    void Sign_IdentModified(const char*, const char*, const char*, const char* );
    void Sign_PatientListMustBeUpdated(const char*, const char*, const char*, const char* );
    void Sign_Ident_KillMe();
    void Sign_NoteToBeSynchronized(int, const char* );

protected:
    int m_Contacts_Run;
    int m_NoteViewState;
    QString m_CurrentPopupItem;
    QString m_RetPopupItem;
    ThemePopup *m_pThemePopup;

    QGridLayout* FormRubIdentLayout;
    QHBoxLayout* layout36;
    QGridLayout* tabLayout;
    QVBoxLayout* layout14;
    QGridLayout* tabLayout_2;
    QGridLayout* layout17;
    QGridLayout* groupBox1Layout;
    QHBoxLayout* layout33;
    QSpacerItem* spacer1;
    QHBoxLayout* layout32;
    QGridLayout* layout16;
    QHBoxLayout* layout31;
    QHBoxLayout* layout30;
    QGridLayout* layout29;
    QGridLayout* layout15;
    QHBoxLayout* layout15_2;
    QGridLayout* groupBox2Layout;
    QHBoxLayout* layout34;
    QHBoxLayout* layout35;
    QSpacerItem* spacer3;
    QHBoxLayout* layout11;
    QSpacerItem* spacer2;

protected slots:
    virtual void languageChange();

private:
    QPixmap image0;

    void init();

};

#endif // FORMRUBIDENT_H
