/****************************************************************************
** Form interface generated from reading ui file 'DlgCim10Multi.ui'
**
** Created: mer nov 19 01:37:40 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 FORMDLGCIM10MULTI_H
#define FORMDLGCIM10MULTI_H

#include <qvariant.h>
#include <qdialog.h>
#include <qsqldatabase.h>
#include <qdir.h>
#include "CMoteur_Base.h"
#include "Global.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QSplitter;
class QTabWidget;
class QWidget;
class QListView;
class QListViewItem;
class QLabel;
class QLineEdit;
class QTextBrowser;
class QPushButton;

class FormDlgCim10Multi : public QDialog
{
    Q_OBJECT

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

    QSplitter* splitter6;
    QTabWidget* tabWidgetCim10;
    QWidget* Widget8;
    QListView* listViewCim10_Libelles;
    QLabel* textLabel3_2;
    QLineEdit* lineEditAutolcatorLibelle;
    QLabel* textLabel3_3;
    QLineEdit* lineEditAutolcatorLibelle_2;
    QWidget* Widget9;
    QListView* listViewCim10_rubriques;
    QWidget* tab;
    QLabel* textLabel3;
    QLabel* textLabel4;
    QLineEdit* lineEditUrgFind1;
    QLineEdit* lineEditUrgFind2;
    QListView* listViewCim10_Urgences;
    QWidget* tab2;
    QSplitter* splitter5;
    QLabel* textLabel1;
    QTextBrowser* textBrowser_Cim10Menu;
    QLabel* textLabel1_2;
    QTextBrowser* textBrowser_Cim10Pages;
    QPushButton* pushButton_AddToChoix;
    QPushButton* pushButtonRemoveFromChoix;
    QLabel* textLabelChoix;
    QListView* listViewCim10_Choix;
    QPushButton* pushButtonMakeHTML;
    QPushButton* buttonOk;
    QPushButton* buttonCancel;

    QStringList m_StringList;
    QString m_DriverName;
    QString m_BaseName;
    QString m_UserName;
    QString m_PassWord;
    QString m_HostName;
    QSqlDatabase* m_DataBase;
    QString m_Code;
    QString m_Libelle;

    virtual QString Utf8_Query( QSqlQuery & cur, int field );
    virtual QSqlDatabase * BaseConnect( const char * driver, const char * DataBaseName, const char * user, const char * password, const char * hostname, QString * errMess );
    virtual int CIM10SrcFileRPU_To_Html( QString path_src, QString & pathDst );
    virtual long CIM10GetUrgencesList();
    virtual long FiltrerListe( QListView * pQlistView, QString str1, QString str2 );
    virtual QListViewItem * AddItemToListViewUrg( QListView * pQlistView, QString itemText );
    virtual long CIM10GetLibellesList( QListView * pQlistView, QString mot_cle_saisie1, QString mot_cle_saisie2, QLabel * statutMess, QLabel * errMess );
    virtual long CIM10GetRubriquesList( QListView * pQlistView, QLabel * statutMess, QLabel * errMess );
    virtual long CIM10GetSubLevelLibelleList( QListViewItem * qlistViewItem, QString ID_Father, QLabel * statutMess, QLabel * errMess );
    virtual QString SID_to_CIM10( QString qsSID, QLabel * errMess );

public slots:
    virtual void setOnglet( int onglet );
    virtual void setListCode( const QString & str_listCode );
    virtual void dataBaseSet( QSqlDatabase * pQSqlDatabase );
    virtual void Load_HTML_Files();
    virtual void Load_HTML_Target_Page( const QString & target_page );
    virtual void textBrowser_Cim10Menu_anchorClicked( const QString &, const QString & link_in );
    virtual void textBrowser_Cim10Pages_anchorClicked( const QString &, const QString & link_in );
    virtual void pushButtonMakeHTML_clicked();
    virtual void lineEditUrgFind1_textChanged( const QString & str );
    virtual void lineEditUrgFind2_textChanged( const QString & str );
    virtual void listViewCim10_Urgences_returnPressed( QListViewItem * );
    virtual void lineEditUrgFind1_returnPressed();
    virtual void lineEditUrgFind2_returnPressed();
    virtual void lineEditAutolcatorLibelle_textChanged( const QString & );
    virtual void lineEditAutolcatorLibelle_2_textChanged( const QString & );
    virtual void listViewCim10_rubriques_clicked( QListViewItem * qlistViewItem );
    virtual void tabWidgetCim10_currentChanged( QWidget * pQWidget );
    virtual void listViewCim10_Libelles_doubleClicked( QListViewItem * qlistViewItem );
    virtual void listViewCim10_rubriques_doubleClicked( QListViewItem * qlistViewItem );
    virtual void listViewCim10_Urgences_doubleClicked( QListViewItem * qlistViewItem );
    virtual QListViewItem * GetDlgListCode( int tab_index, QListViewItem * qlistViewItem );
    virtual void AddItemToListChoix( const QString & libelle, const QString & code );
    virtual void pushButton_AddToChoix_clicked();
    virtual void pushButtonRemoveFromChoix_clicked();

protected:
    QGridLayout* FormDlgCim10MultiLayout;
    QGridLayout* Widget8Layout;
    QGridLayout* layout7;
    QGridLayout* layout8;
    QGridLayout* Widget9Layout;
    QGridLayout* tabLayout;
    QGridLayout* tab2Layout;
    QVBoxLayout* layout5;
    QVBoxLayout* layout6;
    QHBoxLayout* layout6_2;
    QVBoxLayout* layout1;
    QVBoxLayout* layout6_3;
    QHBoxLayout* layout7_2;
    QSpacerItem* Horizontal_Spacing2;

protected slots:
    virtual void languageChange();

private:
    void init();
    void destroy();

};

#endif // FORMDLGCIM10MULTI_H
