/****************************************************************************
** Form implementation generated from reading ui file 'Wdg_Agenda.ui'
**
** Created: Tue Jun 9 19:17:22 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!
****************************************************************************/

#include "Wdg_Agenda.h"

#include <qvariant.h>
#include <qdir.h>
#include <../../MedinTuxTools/CMaskedLineEdit.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "../../MedinTuxTools/Calendar/Dlg_Calendar.h"
#include "../../MedinTuxTools/CHtmlTools.h"
#include "../../drtux/src/CMoteur_Base.h"
#include "Wdg_Agenda.ui.h"
static const unsigned char image0_data[] = { 
    0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x18,
    0x08, 0x06, 0x00, 0x00, 0x00, 0xe0, 0x77, 0x3d, 0xf8, 0x00, 0x00, 0x00,
    0x93, 0x49, 0x44, 0x41, 0x54, 0x48, 0x89, 0x63, 0x3c, 0x76, 0xec, 0x18,
    0x03, 0x2d, 0x01, 0x13, 0x4d, 0x4d, 0xa7, 0x87, 0x05, 0x2c, 0xd8, 0x04,
    0xad, 0xac, 0xac, 0xfe, 0x53, 0x6a, 0xf0, 0xb1, 0x63, 0xc7, 0x18, 0x71,
    0x5a, 0xc0, 0xc0, 0xc0, 0xc0, 0xf0, 0xe7, 0xcf, 0x1f, 0x86, 0x2f, 0x5f,
    0x9e, 0x33, 0xb0, 0xb3, 0xf3, 0x11, 0x6d, 0xe8, 0xbf, 0x7f, 0x7f, 0x18,
    0xde, 0xbc, 0x79, 0xc6, 0x20, 0x2f, 0xaf, 0x0b, 0x17, 0xc3, 0x63, 0xc1,
    0x4f, 0x06, 0x01, 0x01, 0x19, 0xa2, 0x0d, 0x87, 0x81, 0xd5, 0xab, 0xd7,
    0xa2, 0xf0, 0x71, 0x5a, 0xf0, 0xee, 0xdd, 0x53, 0x86, 0x79, 0xf3, 0xb6,
    0x33, 0xfc, 0xff, 0x4f, 0x7c, 0x68, 0x31, 0x32, 0x32, 0x32, 0x5c, 0xbe,
    0xfc, 0x9a, 0x38, 0x0b, 0xa4, 0xa4, 0xd4, 0x88, 0x36, 0x18, 0xaf, 0xa5,
    0xb4, 0xce, 0x07, 0xa3, 0xa9, 0x08, 0x03, 0x8c, 0xa6, 0x22, 0x92, 0xc1,
    0x68, 0x2a, 0xc2, 0x00, 0xa3, 0xa9, 0x88, 0x64, 0x30, 0xf4, 0xeb, 0x64,
    0x9a, 0x5b, 0x00, 0x00, 0x6d, 0x89, 0x69, 0x00, 0xd1, 0x95, 0x3c, 0xaf,
    0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};


/*
 *  Constructs a Wdg_Agenda as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
Wdg_Agenda::Wdg_Agenda( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    QImage img;
    img.loadFromData( image0_data, sizeof( image0_data ), "PNG" );
    image0 = img;
    if ( !name )
	setProperty( "name", "Wdg_Agenda" );
    setProperty( "icon", image0 );
    Wdg_AgendaLayout = new QGridLayout( this, 1, 1, 0, 0, "Wdg_AgendaLayout"); 

    layoutDatePicker = new QHBoxLayout( 0, 0, 6, "layoutDatePicker"); 

    textLabel1 = new QLabel( this, "textLabel1" );
    layoutDatePicker->addWidget( textLabel1 );

    mle_debut = new CMaskedLineEdit( this, "mle_debut" );
    mle_debut->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)5, 0, 0, mle_debut->sizePolicy().hasHeightForWidth() ) );
    mle_debut->setProperty( "minimumSize", QSize( 100, 0 ) );
    layoutDatePicker->addWidget( mle_debut );

    pushButtonDateDeb = new QPushButton( this, "pushButtonDateDeb" );
    pushButtonDateDeb->setProperty( "maximumSize", QSize( 16, 16 ) );
    pushButtonDateDeb->setProperty( "flat", QVariant( TRUE, 0 ) );
    layoutDatePicker->addWidget( pushButtonDateDeb );

    Wdg_AgendaLayout->addLayout( layoutDatePicker, 0, 0 );

    textLabelPixMap = new QLabel( this, "textLabelPixMap" );
    textLabelPixMap->setProperty( "scaledContents", QVariant( FALSE, 0 ) );

    Wdg_AgendaLayout->addWidget( textLabelPixMap, 1, 0 );
    languageChange();
    resize( QSize(210, 98).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pushButtonDateDeb, SIGNAL( clicked() ), this, SLOT( pushButtonDateDeb_clicked() ) );
    init();
}

/*
 *  Destroys the object and frees any allocated resources
 */
Wdg_Agenda::~Wdg_Agenda()
{
    destroy();
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Wdg_Agenda::languageChange()
{
    setProperty( "caption", tr( "Invisible string" ) );
    textLabel1->setProperty( "text", trUtf8( "\x44\x61\x74\x65\x20\x64\x65\x20\x64\xc3\xa9\x62\x75\x74\x20\x3a" ) );
    mle_debut->setProperty( "control", tr( "GGGGGGGG" ) );
    mle_debut->setProperty( "mask", tr( "__/__/____" ) );
    pushButtonDateDeb->setProperty( "text", QString::null );
    textLabelPixMap->setProperty( "text", QString::null );
}

