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

#include <qvariant.h>
#include <qwidget.h>
#include <qiconset.h>
#include <qdatetime.h>
#include <qmap.h>
#include "CApp.h"
#include "MyButton.h"
#include "Wdg_RendezVous.h"
#include "CMoteurAgenda.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QLabel;

class Wdg_AgendaDay : public QWidget
{
    Q_OBJECT

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

    QLabel* textLabel_Titre;

    CMyButton *m_ButtonNewRDV;
    CMyButton *m_ButtonDate;
    CMyButton *m_ButtonSave;

    virtual int RDV_Get_List( QDate date );
    virtual int MaskDayToAgendaDay();
    virtual int RecreateRendezVousListWidget( int isToCreate );
    virtual QString SetTitle();
    virtual int GetHeight();

public slots:
    virtual void initDialog( QDate date, MAP_COLOR * colorProfils, CMoteurAgenda * pCMoteurAgenda );
    virtual void OnButtonSaveClickedPtr( const char *, void * );
    virtual void ExpandDialog();
    virtual void OnRendezVousAccederClicked( Wdg_RendezVous * pWdg_RendezVous );
    virtual void OnRendezVousDeleteClicked( Wdg_RendezVous * pWdg_RendezVous );
    virtual void OnButtonNewRDVClickedPtr( const char *, void * );
    virtual void OnRendezVousChangeClicked( Wdg_RendezVous * pWdg_RendezVous );
    virtual void GetSize( int & w, int & h );
    virtual void destroyAll_RDV();

signals:
    void Sign_DayChanged(Wdg_AgendaDay *);
    void Sign_RendezVousAccederClicked(Wdg_RendezVous*);
    void Sign_RendezVousSaveClicked(Wdg_AgendaDay*);
    void Sign_RendezVousDeleteClicked(Wdg_RendezVous*);

protected:
    CMoteurAgenda *m_pCMoteurAgenda;
    QPixmap m_DayNewRDV;


protected slots:
    virtual void languageChange();

private:
    QPtrList <Wdg_RendezVous> m_Wdg_RendezVous_LIST;
    QPixmap m_DayNoExpand;
    QPixmap m_DayIsExpand;
    MAP_COLOR *m_pColorProfils;
    int m_ResoPix;
    int m_ExpandHeight;
    RDV_LIST m_RDV_List;
    QDate m_Date;
    int m_Height;
    QColor m_Default_labelColor;
    QPixmap m_FileSave;

    void init();
    virtual void destroy();

};

#endif // WDG_AGENDADAY_H
