/****************************************************************************
** Form interface generated from reading ui file 'RubObservation.ui'
**
** Created: mer nov 19 01:43:41 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 FORMRUBOBSERVATION_H
#define FORMRUBOBSERVATION_H

#include <qvariant.h>
#include <qpixmap.h>
#include <qwidget.h>
#include <qsqldatabase.h>
#include <qimage.h>
#include "CMoteur_Base.h"
#include "MyEditText.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QLabel;
class QPushButton;
class QComboBox;

class FormRubObservation : public QWidget
{
    Q_OBJECT

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

    QLabel* textLabel_NbRub;
    QLabel* textLabel_Age;
    QPushButton* pushButtonSave;
    QLabel* textLabel1;
    QPushButton* pushButtonDelete;
    QLabel* textLabel_UserName;
    QPushButton* pushButtonPrint;
    QPushButton* pushButtonRubDateChange;
    QComboBox* comboBox_RubName;

    int m_IsModifiable;
    QString m_User;
    MyEditText* m_pMyEditText;
    QString m_DossNom;
    CMoteurBase* m_pCMoteurBase;
    QString m_NumGUID;
    QString m_ID_Doss;
    QString m_DossPrenom;
    RUBREC_LIST *m_pRubList;
    int m_LastRub;

    virtual long initComboListObservation( void );
    virtual int IfModified_SaveInRubList();
    virtual int Current_RubList_ID();
    virtual RUBREC_LIST::iterator Current_RubList_Iterator();
    virtual int SetCurentDocByPrimkey( const QString & primKey );
    virtual void SetRubDateName( const QString & name, const QString & date );
    virtual void GetRubDateName( QString & name, QString & date );

public slots:
    virtual void SetModifiableState( int state );
    virtual void InitText( MyEditText * pMyEditText );
    virtual void FormPatientList_destroyed( QObject * );
    virtual int SetData();
    virtual void comboBox_RubName_highlighted( int item );
    virtual void comboBox_RubName_activated( int item );
    virtual void pushButtonDelete_clicked();
    virtual void pushButtonSave_clicked();
    virtual void pushButtonRubDateChange_clicked();
    virtual void SaveTextInRubList();

signals:
    void Sign_SaveButtonClicked();

protected:
    QGridLayout* FormRubObservationLayout;

protected slots:
    virtual void languageChange();

private:
    QPixmap image0;

    void init();

};

#endif // FORMRUBOBSERVATION_H
