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

#include <qvariant.h>
#include <qpixmap.h>
#include <qdialog.h>
#include <qpopupmenu.h>
#include "../../MedinTuxTools/CMaskedLineEdit.h"
#include "CMoteurAgenda.h"
#include "CApp.h"

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class CMaskedLineEdit;
class QPushButton;
class QGroupBox;
class QLabel;
class QTabWidget;
class QWidget;
class QLineEdit;
class QComboBox;

class Dlg_RDV_Manager : public QDialog
{
    Q_OBJECT

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

    QPushButton* pushButton_Annuler;
    QGroupBox* groupBox2;
    QLabel* textLabel1_5;
    CMaskedLineEdit* lineEdit_Tel;
    QLabel* textLabel2_2;
    CMaskedLineEdit* lineEdit_Nom;
    QLabel* textLabel2;
    CMaskedLineEdit* lineEdit_Premom;
    QLabel* textLabel_NumGUID;
    QLabel* textLabel2_2_2;
    QPushButton* pushButton_IdentErase;
    QGroupBox* groupBox3;
    QTabWidget* tabWidgetRendezVous;
    QWidget* tab;
    QLabel* textLabel1_2;
    QLineEdit* lineEdit_Motif;
    QLabel* textLabel1;
    CMaskedLineEdit* lineEdit_Heure;
    QPushButton* pushButtonChoixHeure;
    QLabel* textLabel1_4;
    CMaskedLineEdit* lineEdit_Duree;
    QComboBox* comboBox_Duree;
    QLabel* textLabel1_4_3;
    QLabel* textLabel1_6;
    QLabel* textLabel1_3;
    QComboBox* comboBox_User;
    QLabel* textLabel1_3_2;
    QLineEdit* lineEdit_RdvPrisPar;
    QLabel* textLabel1_4_2;
    QLabel* textLabelColorType_2;
    QComboBox* comboBox_RdvType;
    QPushButton* pushButton_OK;
    QWidget* tab_2;
    QGroupBox* groupBox4;
    QLabel* textLabel1_7;
    QLineEdit* lineEditTexteType;
    QLabel* textLabel2_3;
    QPushButton* pushButtonTypeColor;
    QLabel* textLabelColorType;
    QPushButton* pushButtonTypeAppend;
    QPushButton* pushButtonTypeDelete;

    virtual int VerifyDate();
    virtual int GetBornes( QTime & borne_inf, QTime & borne_sup );
    virtual int GetDureeMaxPossible();
    virtual int GetIntervallesList( QStringList & intervallesList );
    virtual int stringChoixMenuToValue( const QString & str, QTime & deb, QTime & end );
    virtual QString DoPopupList( QStringList & list );

public slots:
    virtual void initDialog( CMoteurAgenda * pCMoteurAgenda, RDV_LIST * pRDV_List, RendezVous * pRendezVous, MAP_COLOR * pColorProfils, int mode );
    virtual void OnOutFocuslineEdit_Heure();
    virtual void OnOutFocuslineEdit_Duree();
    virtual void initComboColorProfils();
    virtual int SetComboBoxOnValue( QComboBox * pcombo, const QString & value );
    virtual void comboBox_RdvType_activated( const QString & str );
    virtual QString dureeTosString( int duree_mn );
    virtual void RendezVousToDialog();
    virtual void pushButtonTypeDelete_clicked();
    virtual void pushButtonTypeColor_clicked();
    virtual void pushButtonTypeAppend_clicked();
    virtual void pushButtonChoixHeure_clicked();
    virtual void comboBox_Duree_activated( const QString & str );
    virtual void DialogToRendezVous( int mode );
    virtual void pushButton_IdentErase_clicked();
    virtual void pushButton_OK_clicked();
    virtual void pushButton_Annuler_clicked();
    virtual void OnMenuActivated( int id );
    virtual void GetPopupItem();

protected:
    QGridLayout* Dlg_RDV_ManagerLayout;
    QSpacerItem* spacer1;
    QGridLayout* groupBox2Layout;
    QHBoxLayout* layout2_3;
    QHBoxLayout* layout27;
    QGridLayout* layout14;
    QGridLayout* groupBox3Layout;
    QGridLayout* tabLayout;
    QSpacerItem* spacer2;
    QHBoxLayout* layout3;
    QGridLayout* layout14_2;
    QHBoxLayout* layout12;
    QHBoxLayout* layout13;
    QHBoxLayout* layout11;
    QHBoxLayout* layout17;
    QGridLayout* layout14_3;
    QGridLayout* tabLayout_2;
    QSpacerItem* spacer3;
    QHBoxLayout* layout15;
    QHBoxLayout* layout16;

protected slots:
    virtual void languageChange();

private:
    RDV_LIST *m_pRDV_List;
    CMoteurAgenda *m_pCMoteurAgenda;
    RendezVous *m_pRendezVous;
    MAP_COLOR *m_pColorProfils;
    QString m_RetPopupItem;
    QString m_CurrentPopupItem;
    QPopupMenu *m_pQPopupMenu;
    int m_DureeMin;
    int m_DefaultDureeRDV;

    QPixmap image0;

};

#endif // DLG_RDV_MANAGER_H
