/****************************************************************************
** Form interface generated from reading ui file 'Praticien_Dlg.ui'
**
** Created: Tue Jun 9 19:16:19 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 PRATICIEN_DLG_H
#define PRATICIEN_DLG_H

#include <qvariant.h>
#include <qpixmap.h>
#include <qdialog.h>
#include <qsqldatabase.h>
#include <qpopupmenu.h>
#include <qdir.h>
#include "CMyQListViewItem.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class CMaskedLineEdit;
class QSplitter;
class QLabel;
class QListView;
class QListViewItem;
class QComboBox;
class QPushButton;
class QTextEdit;
class QLineEdit;

class Praticien_Dlg : public QDialog
{
    Q_OBJECT

public:
    Praticien_Dlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
    ~Praticien_Dlg();

    QSplitter* splitter2;
    QLabel* textLabel_Rechercher;
    CMaskedLineEdit* lineEditAutoLocator;
    QListView* listBoxChoixNom;
    QLabel* textLabel_StateList;
    QComboBox* comboBoxSpec;
    QLabel* textLabelNom;
    CMaskedLineEdit* lineEdit_Nom;
    QLabel* textLabelPrenom;
    CMaskedLineEdit* lineEdit_Prenom;
    QPushButton* pushButton_Effacer;
    QPushButton* pushButton_Modifier;
    QPushButton* pushButtonOK;
    QPushButton* quitPushButton;
    QLabel* text_Label_Status;
    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;
    QLabel* textLabel_CodePostal;
    CMaskedLineEdit* lineEdit_CodePostal;
    QLabel* textLabel_Ville;
    CMaskedLineEdit* lineEdit_Ville;
    QLabel* textLabelSpecialite_2;
    QComboBox* comboBoxSexe;
    QLabel* textLabel_Titre;
    CMaskedLineEdit* lineEdit_Titre;
    QPushButton* pushButton_Nouvelle;
    QLabel* textLabel_Note;
    QTextEdit* textEdit_Note;
    QLabel* textLabel_Email;
    QLineEdit* lineEdit_Email;
    QLabel* textLabel_Rue;
    QTextEdit* textEdit_Rue;
    QLabel* textLabelSpecialite;
    QComboBox* comboBox_Specialite;
    QLabel* textLabel_Titre_2;
    CMaskedLineEdit* lineEdit_NumOrd;

    int m_NbRec;
    QSqlDatabase* m_DataBase;
    int m_ListState;

    virtual QString DoPopupList( QStringList & list, int x, int y );
    virtual void ItemToForm( CMyQListViewItem * pCMyQListViewItem );
    virtual QString Utf8_Query( QSqlQuery & cur, int field );
    virtual void EraseRecord( CMyQListViewItem * pCMyQListViewItem );
    virtual CMyQListViewItem * FormToDisk( CMyQListViewItem * pCMyQListViewItem );
    virtual void InitAllList( const QString & qstr );
    virtual void InitComboSpec();
    virtual int IsThisValueInComboBox( QComboBox * pQComboBox, const QString & value );

public slots:
    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 OnSign_NomKeyDown();
    virtual void OnSign_NomKeyUp();
    virtual void lineEditAutoLocator_returnPressed();
    virtual void OnOutFocusVille();
    virtual void OnOutFocusCodePostal();
    virtual void OnMenuActivated( int id );
    virtual void GetPopupItem();
    virtual void OnCharEventCodePostal( QEvent * );
    virtual void OutSQL_error( QSqlQuery & cur, const char * messFunc, const char * requete );
    virtual void OnButtonNouvelleFiche();
    virtual void ClearSaisie();
    virtual void OnBoutonMisAJourFiche();
    virtual void OnBoutonEffacer();
    virtual void listBoxChoixNom_currentChanged( QListViewItem * pQListViewItem );
    virtual void EditAutoLocatorChanged( QEvent * );
    virtual void OnComboSpecSlot( const QString & qstr );
    virtual void listBoxChoixNom_doubleClicked( QListViewItem * pQListViewItem );
    virtual void pushButtonOK_clicked();
    virtual void pushButtonOK_pressed();
    virtual void pushButtonOK_released();
    virtual void listBoxChoixNom_returnPressed( QListViewItem * );

protected:
    QGridLayout* Praticien_DlgLayout;
    QVBoxLayout* layout22;
    QGridLayout* layout27;
    QHBoxLayout* layout5;
    QHBoxLayout* layout20;
    QVBoxLayout* layout19;
    QGridLayout* layout12;
    QHBoxLayout* layout26;
    QGridLayout* layout25;
    QHBoxLayout* layout24;
    QHBoxLayout* layout23;
    QHBoxLayout* layout22_2;
    QHBoxLayout* layout28;
    QHBoxLayout* layout21;
    QHBoxLayout* layout18;
    QHBoxLayout* layout19_2;
    QHBoxLayout* layout13;
    QHBoxLayout* layout11;
    QGridLayout* layout14;
    QHBoxLayout* layout20_2;

protected slots:
    virtual void languageChange();

private:
    QPopupMenu *m_pQPopupMenu;
    QString m_RetPopupItem;
    QString m_CurrentPopupItem;
    QString m_Droits;

    QPixmap image0;
    QPixmap image1;

    void init();

};

#endif // PRATICIEN_DLG_H
