#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/occe/projects/kde/KPersonalTrainer/src/weeklyreports.ui'
**
** Created: Fri Feb 3 17:20:20 2006
**      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!
****************************************************************************/

#include "weeklyreports.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlistbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <kdatewidget.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a reports as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
reports::reports( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "reports" );
    setMinimumSize( QSize( 450, 360 ) );

    removeButton = new QPushButton( this, "removeButton" );
    removeButton->setGeometry( QRect( 370, 330, 80, 20 ) );

    kcfg_ReportList = new QListBox( this, "kcfg_ReportList" );
    kcfg_ReportList->setGeometry( QRect( 0, 120, 450, 200 ) );

    textLabel1 = new QLabel( this, "textLabel1" );
    textLabel1->setGeometry( QRect( 0, 60, 90, 20 ) );

    textLabel1_4 = new QLabel( this, "textLabel1_4" );
    textLabel1_4->setGeometry( QRect( 40, 90, 50, 20 ) );

    textLabel1_3 = new QLabel( this, "textLabel1_3" );
    textLabel1_3->setGeometry( QRect( 50, 30, 42, 20 ) );

    textLabel2 = new QLabel( this, "textLabel2" );
    textLabel2->setGeometry( QRect( 0, 0, 440, 20 ) );
    textLabel2->setFrameShape( QLabel::NoFrame );
    textLabel2->setFrameShadow( QLabel::Plain );

    restingPulse = new QLineEdit( this, "restingPulse" );
    restingPulse->setGeometry( QRect( 100, 60, 80, 21 ) );

    other = new QLineEdit( this, "other" );
    other->setGeometry( QRect( 100, 90, 241, 21 ) );

    textLabel1_2 = new QLabel( this, "textLabel1_2" );
    textLabel1_2->setGeometry( QRect( 190, 60, 55, 20 ) );

    weight = new QLineEdit( this, "weight" );
    weight->setGeometry( QRect( 250, 60, 90, 21 ) );

    dateEdit = new KDateWidget( this, "dateEdit" );
    dateEdit->setGeometry( QRect( 100, 30, 240, 24 ) );

    addButton = new QPushButton( this, "addButton" );
    addButton->setGeometry( QRect( 370, 90, 80, 20 ) );
    languageChange();
    resize( QSize(450, 360).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( addButton, SIGNAL( clicked() ), this, SLOT( addButton_clicked() ) );
    connect( removeButton, SIGNAL( clicked() ), this, SLOT( removeButton_clicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void reports::languageChange()
{
    setCaption( tr2i18n( "Weekly Report" ) );
    removeButton->setText( tr2i18n( "Remove" ) );
    removeButton->setAccel( QKeySequence( QString::null ) );
    textLabel1->setText( tr2i18n( "<p align=\"right\">Resting Pulse:</p>" ) );
    textLabel1_4->setText( tr2i18n( "<p align=\"right\">Other:</p>" ) );
    textLabel1_3->setText( tr2i18n( "<p align=\"right\">Date:</p>" ) );
    textLabel2->setText( tr2i18n( "<b>Fill in the resting pulse, weight and/or other information:</b>" ) );
    textLabel1_2->setText( tr2i18n( "<p align=\"right\">Weight:</p>" ) );
    addButton->setText( tr2i18n( "Add" ) );
    addButton->setAccel( QKeySequence( QString::null ) );
}

void reports::quitButton_clicked()
{
    qWarning( "reports::quitButton_clicked(): Not implemented yet" );
}

void reports::addButton_clicked()
{
    qWarning( "reports::addButton_clicked(): Not implemented yet" );
}

void reports::removeButton_clicked()
{
    qWarning( "reports::removeButton_clicked(): Not implemented yet" );
}

#include "weeklyreports.moc"
