/****************************************************************************
** Form interface generated from reading ui file 'Wdg_Central.ui'
**
** Created: Tue Jun 9 19:17:02 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 WDG_CENTRAL_H
#define WDG_CENTRAL_H

#include <qvariant.h>
#include <qpixmap.h>
#include <qwidget.h>
#include <math.h>
#include <qprocess.h>
#include <qdir.h>
#include <qiconset.h>
#include <qtimer.h>
#include "CApp.h"
#include "../../MedinTuxTools/GestRPU.h"
#include "Wdg_RendezVous.h"

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

class Wdg_Central : public QWidget
{
    Q_OBJECT

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

    QTabWidget* tabWidget_Central;
    QWidget* tabRecherchePatient;
    QSplitter* splitter7;
    QPushButton* pushButtonNew;
    QPushButton* pushButtonVitale;
    QPushButton* pushButtonDetruire;
    QPushButton* pushButtonInfo;
    QLabel* textLabel3_2;
    QLineEdit* textLabel_NumDoss;
    QSplitter* splitter5;
    QSplitter* splitter5_2;
    QListView* ListView_Vitale;
    QListView* ListView_Doublons;
    QLabel* labelTrucMachin;
    QListView* ListView_Patient;
    CMaskedLineEdit* lineEditAutoLocator;
    QPushButton* pushButton_ReinitListe;
    QLabel* textLabel_StateList;
    QGroupBox* groupBoxAssure;
    QLabel* textLabel7;
    CMaskedLineEdit* lineEdit_NumSecu;
    QLabel* lineEdit_NssClef;
    QComboBox* comboBoxQualiteAyantDroit;
    QLabel* textLabel8;
    CMaskedLineEdit* lineEdit_PrenomAssure;
    CMaskedLineEdit* lineEdit_NomAssure;
    QLabel* textLabel9;
    QGroupBox* groupBoxPatient;
    QLabel* textLabel2_2;
    CMaskedLineEdit* lineEdit_NomDossier;
    QLabel* textLabel2;
    CMaskedLineEdit* lineEdit_PremomDossier;
    QLabel* textLabel5;
    CMaskedLineEdit* lineEdit_CdPostal;
    QLabel* textLabel6;
    CMaskedLineEdit* lineEditVille;
    QLabel* textLabel10;
    QLineEdit* lineEdit_Email;
    CMaskedLineEdit* lineEdit_NomDeNss;
    QLabel* textLabel2_2_2_2;
    CMaskedLineEdit* lineEdit_Titre;
    QLabel* textLabel2_2_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_Profession;
    CMaskedLineEdit* lineEdit_DtNss;
    CMaskedLineEdit* lineEdit_RangGeme;
    QLabel* textLabel3_3_2;
    QComboBox* comboBoxSexe;
    QLabel* textLabel1_2;
    QLabel* textLabel3;
    QLabel* textLabel3_3_2_2;
    QPushButton* pushButtonSavModif;
    QPushButton* pushButtonCancel;
    QPushButton* pushButton_Effacer;
    QPushButton* pushButton_ActiverMultiCritere;
    QPushButton* pushButton_QuitterMultiCritere;
    QPushButton* pushButtonCreate;
    QPushButton* pushButtonAcceder;
    QTabWidget* tabWidgetNotes;
    QWidget* tab;
    QListView* listView_Praticiens;
    QPushButton* pushButton_AddMedTTT;
    QPushButton* pushButton_DelMedTTT;
    QWidget* tab_2;
    QTextEdit* textEdit_Note;
    QWidget* tabStatistiques;
    QSplitter* splitter3;
    QLabel* textLabel_StateListError;
    QLabel* textLabel_StateListError_2;
    QLabel* textLabel1;
    QLabel* textLabel1_3;
    CMaskedLineEdit* mle_deb;
    QPushButton* pushButtonDateDeb;
    CMaskedLineEdit* mle_HeureDeb;
    QLabel* textLabel2_3;
    QLabel* textLabel1_3_2;
    CMaskedLineEdit* mle_fin;
    QPushButton* pushButtonDateFin;
    CMaskedLineEdit* mle_HeureFin;
    QCheckBox* checkBoxWarning;
    QListView* ListView_PatientRejetes;
    QPushButton* pushButtonRunStat;
    QGroupBox* groupBox3;
    QLabel* textLabel3_3;
    QComboBox* comboBoxUrgType;
    QLabel* textLabel1_4;
    CMaskedLineEdit* cMaskedLineEditNumFiness;
    QGroupBox* groupBox4;
    QCheckBox* checkBoxAge;
    QLabel* textLabel2_4_2;
    CMaskedLineEdit* cMaskedLineEditAgeMax;
    QLabel* textLabel2_4;
    CMaskedLineEdit* cMaskedLineEditAgeMin;
    QGroupBox* groupBox5;
    QLabel* textLabel_ResCCMU_I;
    QLabel* textLabel_ResCCMU_II;
    QLabel* textLabel_ResCCMU_III;
    QLabel* textLabel_ResCCMU_IV;
    QLabel* textLabel_ResCCMU_V;
    QLabel* textLabel_ResCCMU_Err;
    QLabel* textLabel1_5;
    QLabel* textLabel1_5_2;
    QLabel* textLabel1_5_3;
    QLabel* textLabel1_5_4;
    QLabel* textLabel1_5_4_2;
    QLabel* textLabel1_5_4_2_3;
    QCheckBox* checkBoxCCMU;
    QGroupBox* groupBox5_2;
    QCheckBox* checkBoxGEMSA;
    QLabel* textLabel_ResGemsa_1;
    QLabel* textLabel_ResGemsa_2;
    QLabel* textLabel_ResGemsa_3;
    QLabel* textLabel_ResGemsa_4;
    QLabel* textLabel_ResGemsa_5;
    QLabel* textLabel_ResGemsa_6;
    QLabel* textLabel_ResGemsa_Err;
    QLabel* textLabel1_5_5;
    QLabel* textLabel1_5_2_2;
    QLabel* textLabel1_5_3_2;
    QLabel* textLabel1_5_4_3;
    QLabel* textLabel1_5_4_2_2;
    QLabel* textLabel1_5_4_2_2_2;
    QLabel* textLabel1_5_4_2_3_2;
    QGroupBox* groupBox5_3;
    QLabel* textLabel1_5_6;
    QLabel* textLabel1_5_2_3;
    QLabel* textLabel1_5_3_3;
    QLabel* textLabel1_5_4_4;
    QLabel* textLabel_ResDestDeces;
    QLabel* textLabel_ResDestRetDom;
    QLabel* textLabel_ResDestHospi;
    QLabel* textLabel_ResDest_Err;
    QCheckBox* checkBoxRPU;
    QGroupBox* groupBox5_3_2;
    QLabel* textLabel_ResDestClinTotal;
    QLabel* textLabel_ResDestRetClinExterne;
    QLabel* textLabel_ResDestClinHospi;
    QLabel* textLabel_ResDestClin_Err;
    QLabel* textLabel1_5_6_2;
    QLabel* textLabel1_5_2_3_2;
    QLabel* textLabel1_5_3_3_2;
    QLabel* textLabel1_5_4_4_2;
    QCheckBox* checkBoxDESTCLIN;
    QGroupBox* groupBox11;
    QCheckBox* checkBoxRPUFile;
    QLabel* textLabelResDestNbrRPU;
    QLabel* textLabel6_2;
    QWidget* TabMoniteur;
    QCheckBox* checkBoxAutomaticRebuild;
    QSpinBox* spinBoxRafraichInterval;
    QLabel* textLabel1_7;
    QPushButton* pushButtonRaffraichir;
    QListView* ListView_MonitorPatient;
    QLabel* textLabel1_6;
    QLabel* textLabel1_3_3;
    CMaskedLineEdit* mle_deb_Mon;
    QPushButton* pushButtonDateDeb_Mon;
    CMaskedLineEdit* mle_HeureDeb_Mon;
    QLabel* textLabel2_3_2;
    QLabel* textLabel1_3_2_2;
    CMaskedLineEdit* mle_fin_Mon;
    QPushButton* pushButtonDateFin_Mon;
    CMaskedLineEdit* mle_HeureFin_Mon;

    QString m_GuiMode;

    virtual QString NaturalToSqlDate( const QString & inDate );
    virtual QString SqlDateToNatural( const QString & inDate );
    virtual int DataToFormulaire( const QString & refToPrimkeyDoss, const QString & nom, const QString & prenom );
    virtual QString ToNum( QString in );
    virtual QString DoPopupList( QStringList & list, int x, int y );
    virtual QString ComputeClef_Secu( const char * txt );
    virtual int AlertVerrou( const QString & userBy, const QString & dossNom, const QString & dossPrenom );

public slots:
    virtual void GetCouleurFromIniFile( const QString & pourQuiStr, QColor & destColor );
    virtual void lineEdit_NomDossier_textChanged( const QString & nom );
    virtual void lineEdit_PrenomDossier_textChanged( const QString & prenom );
    virtual void Slot_pushButton_ReinitListe_clicked();
    virtual void Slot_ActiverMultiCritere_clicked();
    virtual void Slot_QuitterMultiCritere_clicked();
    virtual void Slot_pushButton_Effacer_clicked();
    virtual void listView_Praticiens_contextMenuRequested( QListViewItem * pQListViewItem, const QPoint &, int );
    virtual void Slot_listView_Patient_contextMenuRequested( QListViewItem * pQListViewItem, const QPoint &, int );
    virtual void Slot_ListView_Doublons_mouseButtonPressed( int button, QListViewItem * pQListViewItem, const QPoint & p, int c );
    virtual void Slot_listView_Doublons_contextMenuRequested( QListViewItem * pQListViewItem, const QPoint &, int );
    virtual void Slot_listView_Doublons_IsClicked( QListViewItem * pQListViewItem, const QPoint &, int );
    virtual void SetInterfaceOnMode( const QString & droits, int mode );
    virtual void SetInterfaceOnDroits( const QString & droits, int mode );
    virtual void setButtonOnContexte( int mode );
    virtual void tabWidget_Central_currentChanged( QWidget * pageWidget );
    virtual void pushButtonDateDeb_Mon_clicked();
    virtual void pushButtonDateFin_Mon_clicked();
    virtual void pushButtonRaffraichir_clicked();
    virtual void CheckState();
    virtual void makeListeMonitor();
    virtual void ListView_MonitorPatient_doubleClicked( QListViewItem * pQListViewItem, const QPoint &, int );
    virtual void mle_debut_Mon_lostFocus();
    virtual void mle_fin_Mon_lostFocus();
    virtual void OnRendezVousAccederClicked( Wdg_RendezVous * pWdg_RendezVous );
    virtual void setUser( const QString & userName, const QString & signUser );
    virtual void closeEvent( QCloseEvent * ce );
    virtual void InitAllList( const QString & qstr_nom, const QString & qstr_prenom );
    virtual void lineEditAutoLocator_textChanged( const QString & qstr_in );
    virtual void ListView_Patient_mouseButtonClicked( int, QListViewItem * qlistViewItem, const QPoint &, int );
    virtual void ListView_Patient_clicked( QListViewItem * qlistViewItem );
    virtual void ListView_Patient_selectionChanged( QListViewItem * qlistViewItem );
    virtual void OnSign_NomKeyDown();
    virtual void OnSign_NomKeyUp();
    virtual void OnTextChanged_lineEdit_NomDossier( const QString & text );
    virtual void OnTextChanged_lineEdit_PremomDossier( const QString & text );
    virtual void OnTextChanged_lineEdit_NomDeNss( const QString & text );
    virtual void OnTextChanged_lineEdit_Titre( const QString & text );
    virtual void OnTextChanged_lineEdit_DtNss( const QString & text );
    virtual void OnTextChanged_lineEdit_Sexe( const QString & text );
    virtual void OnTextChanged_lineEdit_Profession( const QString & text );
    virtual void OnTextChanged_textEdit_Adresse();
    virtual void OnTextChanged_lineEdit_Tel1( const QString & text );
    virtual void OnTextChanged_lineEdit_Tel2( const QString & text );
    virtual void OnTextChanged_lineEdit_Tel3( const QString & text );
    virtual void OnTextChanged_lineEdit_CdPostal( const QString & text );
    virtual void OnTextChanged_lineEditVille( const QString & text );
    virtual void OnTextChanged_lineEdit_Email( const QString & text );
    virtual void OnTextChanged_lineEdit_NumSecu( const QString & text );
    virtual void OnTextChanged_lineEdit_NomAssure( const QString & text );
    virtual void OnTextChanged_lineEdit_PrenomAssure( const QString & text );
    virtual void OnTextChanged_textEdit_Note();
    virtual void OnTextChanged_comboBoxSexe( const QString & text );
    virtual void OnActivated_comboBoxSexe( const QString & text );
    virtual void OnTextChanged_lineEdit_RangGeme( const QString & text );
    virtual void OnOutFocuslineEdit_DtNss();
    virtual void SetModifiableState( int state );
    virtual void ClearDialog( int mode );
    virtual void OnActivated_comboBoxQualiteAyantDroit( int qualiteAssure );
    virtual void Test_comboBoxQualiteAyantDroit( int qualiteAssure, int focusMustBePotionned );
    virtual void OnInFocusNumSecu();
    virtual void OnOutFocusNumSecu();
    virtual void OnOutFocusVille();
    virtual void OnOutFocusCodePostal();
    virtual void OnMenuActivated( int id );
    virtual void GetPopupItem();
    virtual void OnCharEventCodePostal( QEvent * );
    virtual void OnCharEventNumSecu( QEvent * );
    virtual void VitaleNew_clicked();
    virtual void pushButtonNew_clicked();
    virtual void pushButtonCancel_clicked();
    virtual void setInterfaceOnVitaleData( void * pcvitale_in, int occurence );
    virtual int SetSexFromQualiteAyantDroit( int qualiteAyantDroit );
    virtual void pushButtonCreate_clicked();
    virtual void pushButtonInfo_clicked();
    virtual void pushButtonDetruire_clicked();
    virtual void lineEditAutoLocator_returnPressed();
    virtual void ListView_Patient_returnPressed( QListViewItem * );
    virtual void ListView_Patient_doubleClicked( QListViewItem * );
    virtual void pushButtonAcceder_clicked();
    virtual void AccederDossier( QString nom, QString prenom, const QString & primKey, const QString & guid, const QString & user, const QString & sign_user );
    virtual void SavModif( const QString & oldNom, const QString & oldPrenom, const QString & oldGUID, const QString & oldPk );
    virtual void pushButtonSavModif_clicked();
    virtual void SetFieldListData( PtrListIdentFieldData & list_field );
    virtual void listView_Praticiens_doubleClicked( QListViewItem * pQListViewItem );
    virtual void pushButton_AddMedTTT_clicked();
    virtual void exeAnnuaire( QString idInterv );
    virtual void pushButton_DelMedTTT_clicked();
    virtual void pushButtonDateDeb_clicked();
    virtual void pushButtonDateFin_clicked();
    virtual void mle_debut_lostFocus();
    virtual void mle_fin_lostFocus();
    virtual void pushButtonRunStat_clicked();
    virtual void ListView_PatientRejetes_doubleClicked( QListViewItem * pQListViewItem );
    virtual void ListView_PatientRejetes_returnPressed( QListViewItem * pQListViewItem );
    virtual void ListView_PatientRejetes_spacePressed( QListViewItem * pQListViewItem );
    virtual void checkBoxWarning_stateChanged( int );
    virtual void PlaceListErrorInListCtrl( CGestRPU * pCGestRPU );

signals:
    void Sign_SaveIdentDoing();

protected:
    int newVariable;
    QListViewItem *m_pLastQListViewItem;

    QGridLayout* Wdg_CentralLayout;
    QGridLayout* tabRecherchePatientLayout;
    QGridLayout* layout55;
    QHBoxLayout* layout43;
    QHBoxLayout* layout49;
    QGridLayout* layout50;
    QGridLayout* layout49_2;
    QGridLayout* layout46;
    QGridLayout* groupBoxPatientLayout;
    QHBoxLayout* layout27;
    QHBoxLayout* layout32;
    QHBoxLayout* layout33;
    QGridLayout* layout55_2;
    QHBoxLayout* layout115;
    QGridLayout* layout29;
    QGridLayout* layout51;
    QGridLayout* layout54;
    QGridLayout* tabLayout;
    QVBoxLayout* layout14_2;
    QGridLayout* tabLayout_2;
    QGridLayout* tabStatistiquesLayout;
    QGridLayout* layout38;
    QHBoxLayout* layout26;
    QVBoxLayout* layout25;
    QVBoxLayout* layout22;
    QHBoxLayout* layout3;
    QVBoxLayout* layout24;
    QVBoxLayout* layout23;
    QHBoxLayout* layout4;
    QGridLayout* groupBox3Layout;
    QHBoxLayout* layout30;
    QHBoxLayout* layout26_2;
    QGridLayout* groupBox4Layout;
    QHBoxLayout* layout31;
    QHBoxLayout* layout32_2;
    QGridLayout* groupBox5Layout;
    QVBoxLayout* layout34;
    QVBoxLayout* layout35;
    QGridLayout* groupBox5_2Layout;
    QVBoxLayout* layout39;
    QVBoxLayout* layout40;
    QGridLayout* groupBox5_3Layout;
    QVBoxLayout* layout35_2;
    QVBoxLayout* layout34_2;
    QGridLayout* groupBox5_3_2Layout;
    QVBoxLayout* layout34_2_2;
    QVBoxLayout* layout35_2_2;
    QGridLayout* groupBox11Layout;
    QGridLayout* TabMoniteurLayout;
    QSpacerItem* spacer4;
    QGridLayout* layout49_3;
    QHBoxLayout* layout48;
    QGridLayout* layout46_2;
    QHBoxLayout* layout26_2_2;
    QVBoxLayout* layout25_2;
    QVBoxLayout* layout22_2;
    QHBoxLayout* layout3_2;
    QVBoxLayout* layout24_2;
    QVBoxLayout* layout23_2;
    QHBoxLayout* layout4_2;

protected slots:
    virtual void languageChange();

private:
    int m_IdentIsClear;
    long m_TEMPO_MONITOR;
    QTimer *m_pQtimerCheckState;
    QIconSet m_Cadenas;
    QString m_LocalParam;
    QColor m_StdColor;
    CMoteurBase *m_pCMoteurBase;
    QPopupMenu *m_pQPopupMenu;
    QString m_RetPopupItem;
    QString m_CurrentPopupItem;
    int m_Contacts_Run;
    QString m_ID_Doss;
    int m_IsModifiable;
    QString m_UserName;
    QIconSet m_GoDatePopup;
    CGestRPU *m_pCGestRPU;
    QIconSet m_Standard;
    int m_MonitorIsInit;
    QString m_SignUser;
    QColor m_VitaleListColor;
    QColor m_PatientsListColor;
    QColor m_DoublonsListColor;
    QColor m_CreateModeColor;
    QColor m_MulticritereModeColor;

    QPixmap image0;
    QPixmap image1;

    void init();
    void destroy();

};

#endif // WDG_CENTRAL_H
