/****************************************************************************
** Form interface generated from reading ui file 'DlgAtcd_txt.ui'
**
** Created: mer nov 19 01:39:21 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 DLGATCD_TXT_H
#define DLGATCD_TXT_H

#include <qvariant.h>
#include <qdialog.h>
#include <qdatetime.h>
#include <qstringlist.h>
#include "Global.h"
#include "C_Atcd.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QLabel;
class QFrame;
class QLineEdit;
class QPushButton;
class QComboBox;
class QCheckBox;
class Atcd_Element;
class Atcd_Code;

class DlgAtcd_txt : public QDialog
{
    Q_OBJECT

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

    QLabel* lbl_Titre;
    QFrame* line1;
    QLineEdit* m_LineEdit_Libelle;
    QLabel* textLabel2;
    QLabel* textLabel3;
    QPushButton* but_Valider;
    QPushButton* but_Annuler;
    QLabel* textLabel5;
    QLineEdit* m_LineEdit_Commentaire;
    QLabel* textLabel4;
    QComboBox* m_Combo_Medical;
    QComboBox* m_Combo_Chirurgical;
    QComboBox* jour;
    QComboBox* annee;
    QComboBox* mois;
    QCheckBox* chkDate;

    QStringList ATCD_Chir;
    QStringList ATCD_Med;
    bool toViewOnly;

    virtual QString getDateObserv();
    virtual QString getDateObserv_ISODate();

public slots:
    virtual void setRubriques( QStringList & med, QStringList & chir );
    virtual void setATCD_toView( Atcd_Code * pAtcd_Code, Atcd_Element * atcd );
    virtual void setToUpdate( bool b );
    virtual void getInfos( QString & libelle, QString & rubrique, QString & date, QString & commentaire );
    virtual void mois_activated( int );
    virtual void setDateObserv( QString dt_str );
    virtual void setDateObserv( QDate dt );
    virtual void annee_activated( int );
    virtual void but_Valider_clicked();
    virtual void but_Annuler_clicked();
    virtual void m_Combo_Medical_activated( int );
    virtual void m_Combo_Chirurgical_activated( int );
    virtual void chkDate_clicked();

protected:
    QGridLayout* DlgAtcd_txtLayout;
    QHBoxLayout* layout2;
    QSpacerItem* spacer1;

protected slots:
    virtual void languageChange();

private:
    void init();

};

#endif // DLGATCD_TXT_H
