/****************************************************************************
** Form interface generated from reading ui file 'Wdg_Agenda.ui'
**
** Created: Tue Jun 9 19:17:02 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 WDG_AGENDA_H
#define WDG_AGENDA_H

#include <qvariant.h>
#include <qpixmap.h>
#include <qwidget.h>
#include <qiconset.h>
#include <qscrollview.h>
#include <qdatetime.h>
#include <qmap.h>
#include "CBigShrinker.h"
#include "Wdg_AgendaDay.h"
#include "CApp.h"
#include "CMoteurAgenda.h"

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

class Wdg_Agenda : public QWidget
{
    Q_OBJECT

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

    QLabel* textLabel1;
    CMaskedLineEdit* mle_debut;
    QPushButton* pushButtonDateDeb;
    QLabel* textLabelPixMap;

    QDate m_FirstDate;

    virtual void SetUser( const QString & user );
    virtual void GetColorProfils( MAP_COLOR & colorProfils );

public slots:
    virtual QDate GetDate();
    virtual void ReinitAgendaOnDate( QDate dateDeb );
    virtual void OnRendezVousSaveClicked( Wdg_AgendaDay * );
    virtual void OnRendezVousAccederClicked( Wdg_RendezVous * pWdg_RendezVous );
    virtual void DayChanged( Wdg_AgendaDay * pWdg_AgendaDay );
    virtual void ReArrangeAgenda();
    virtual void OnButtonDateClickedPtr( const char *, void * ptr );
    virtual void pushButtonDateDeb_clicked();

signals:
    void Sign_SetPatient(const QString &, const QString &, const QString &);
    void Sign_RendezVousAccederClicked(Wdg_RendezVous*);
    void Sign_RendezVousDeleteClicked(Wdg_RendezVous*);

protected:
    QGridLayout* Wdg_AgendaLayout;
    QHBoxLayout* layoutDatePicker;

protected slots:
    virtual void languageChange();

private:
    CMoteurAgenda *m_pCMoteurAgenda;
    QIconSet m_GoDatePopup;
    CBigShrinker *m_pCBigShrinker;
    QScrollView* m_pQScrollView;
    QVBoxLayout *m_pLayout_Agenda;
    QPtrList <Wdg_AgendaDay> m_Wdg_AgendaDayList;
    MAP_COLOR m_ColorProfils;

    QPixmap image0;
    QPixmap image1;

    void init();
    void destroy();

};

#endif // WDG_AGENDA_H
