/****************************************************************************
** Form interface generated from reading ui file 'Rub_Centrale.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 RUB_CENTRALE_H
#define RUB_CENTRALE_H

#include <qvariant.h>
#include <qwidget.h>
#include <qsplitter.h>
#include "CMoteur_Base.h"
#include "MyEditText.h"
#include "../../MedinTuxTools/CPrtQListViewItem.h"
#include "CApp.h"
#include "../../MedinTuxTools/CHtmlTools.h"
#include "../../MedinTuxTools/Codecs/qmdcodec.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QLabel;
class QListView;
class QListViewItem;

class Rub_Centrale : public QWidget
{
    Q_OBJECT

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

    QLabel* textLabel1;
    QLabel* textLabel_UserName;
    QListView* m_QListView_Liste;

    int m_LastRub;
    QString m_DossPrenom;
    QString m_NumGUID;
    QString m_ID_Doss;
    CMoteurBase* m_pCMoteurBase;
    QString m_User;
    MyEditText* m_pMyEditText;
    QString m_DossNom;
    RUBREC_LIST *m_pRubList;
    QPixmap* m_Pixmap_ToSave;
    QPixmap* m_Pixmap_ToDelete;
    QPixmap* m_Pixmap_HighPriority;
    QPixmap* m_Pixmap_Document;
    QPixmap* m_Pixmap_Prescription;
    QPixmap* m_Pixmap_Renouv;

    virtual int Current_RubList_ID();
    virtual long initListView();
    virtual int setData();
    virtual QPixmap * decodeStringTo_pQPixmap( const QString & in );
    virtual QPixmap decodeStringTo_QPixmap( const QString & in );
    virtual int SetCurentDocByPrimkey( const QString & primKey );
    virtual RUBREC_LIST::iterator Current_RubList_Iterator();
    virtual int IfModified_SaveInRubList();

public slots:
    virtual void setParams( CMoteurBase * pMoteurBase, RUBREC_LIST * pRubList, const char * num_GUID, const char * id_doss, const char * dossNom, const char * dossPrenom, const char * user, QSplitter * splitter );
    virtual void initText( MyEditText * pMyEditText );
    virtual void documentIsModified();
    virtual void m_QListView_Liste_selectionChanged();
    virtual void dataToInterface( const QString & data );
    virtual void SaveTextInRubList();
    virtual void changeViewToRub( int idRubList );

protected:
    QPixmap* m_Pixmap_Observation;

    QGridLayout* Rub_CentraleLayout;
    QHBoxLayout* layout3;

protected slots:
    virtual void languageChange();

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

};

#endif // RUB_CENTRALE_H
