#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/occe/projects/kde/KPersonalTrainer/src/kpersonaltrainerview_base.ui'
**
** Created: Wed Feb 1 20:30:14 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 "kpersonaltrainerview_base.h"

#include <qvariant.h>
#include <qgroupbox.h>
#include <kdatetbl.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qheader.h>
#include <qlistview.h>
#include <qlistbox.h>
#include <qlineedit.h>
#include <kdatewidget.h>
#include <qcombobox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

static const unsigned char img0_kpersonaltrainerview_base[] = { 
    0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
    0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff, 0x61, 0x00, 0x00, 0x01,
    0x0d, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0xa5, 0x93, 0xb1, 0x4a, 0x43,
    0x41, 0x14, 0x44, 0xcf, 0xbc, 0x3c, 0x31, 0x8d, 0x45, 0xb4, 0x10, 0x2c,
    0xac, 0x6c, 0x23, 0x24, 0xa0, 0x58, 0x28, 0x82, 0x85, 0xc4, 0x5a, 0x08,
    0x1a, 0xb0, 0x10, 0x24, 0x1f, 0xe0, 0x07, 0xa4, 0x14, 0xac, 0x6c, 0x04,
    0x7f, 0x45, 0xb0, 0x10, 0xb4, 0x88, 0x60, 0xe5, 0x07, 0xd8, 0x28, 0xa6,
    0xb0, 0x89, 0x20, 0x04, 0x04, 0x79, 0x63, 0xa1, 0x85, 0xd1, 0x7d, 0x9b,
    0x47, 0x32, 0xb0, 0xd5, 0x9d, 0x9d, 0x9d, 0xb9, 0x77, 0xaf, 0x6c, 0x33,
    0x09, 0x92, 0x51, 0x04, 0x49, 0x55, 0x49, 0x0f, 0x92, 0x36, 0xc7, 0x12,
    0x00, 0xea, 0xc0, 0x32, 0xb0, 0x11, 0xac, 0xda, 0x8e, 0x1e, 0x60, 0x1d,
    0x38, 0x03, 0x2a, 0xa1, 0x7a, 0x1a, 0xb1, 0xbe, 0x06, 0x6c, 0x01, 0x7b,
    0xc0, 0x95, 0xed, 0x7e, 0xe1, 0x08, 0x92, 0x6a, 0x3f, 0x2f, 0xbf, 0x01,
    0x55, 0x60, 0x56, 0x52, 0x23, 0xc4, 0xcd, 0x73, 0xf0, 0x0a, 0xec, 0xec,
    0x26, 0xc9, 0xa3, 0x81, 0xbb, 0x2c, 0xbb, 0xed, 0x41, 0x63, 0xbb, 0x54,
    0x3a, 0xfc, 0xb0, 0xd3, 0x1b, 0xfb, 0xc0, 0xf6, 0x20, 0xda, 0x03, 0xa0,
    0x55, 0x81, 0x8b, 0xba, 0xd4, 0x6b, 0xc3, 0x14, 0xb0, 0xba, 0x02, 0xcd,
    0x7d, 0x98, 0x1f, 0xe2, 0x8d, 0x68, 0xe0, 0x29, 0x70, 0x14, 0xe3, 0xe4,
    0x8e, 0x51, 0x52, 0x07, 0xb8, 0x06, 0x96, 0x24, 0x35, 0xf3, 0x78, 0xe9,
    0xaf, 0x0b, 0x0b, 0xc0, 0x09, 0xd0, 0x07, 0xba, 0x80, 0x6c, 0x5f, 0x4a,
    0xba, 0x07, 0x8e, 0x25, 0x75, 0x6d, 0x3f, 0xff, 0x53, 0xf8, 0x63, 0x79,
    0x06, 0x58, 0x04, 0xd2, 0x40, 0x9c, 0x73, 0x60, 0x3a, 0x1a, 0xc1, 0xf6,
    0xbb, 0xed, 0x27, 0xdb, 0x9f, 0x01, 0xb7, 0x19, 0xdf, 0x3f, 0x72, 0x38,
    0x6a, 0xd1, 0x65, 0x92, 0x54, 0x06, 0xe6, 0x6c, 0xbf, 0x8c, 0x25, 0x90,
    0x87, 0x22, 0xcb, 0x14, 0xc5, 0x17, 0xbd, 0xfa, 0xd6, 0x97, 0x9f, 0xc3,
    0xf2, 0x8f, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42,
    0x60, 0x82
};


/*
 *  Constructs a kpersonaltrainerview_base as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
kpersonaltrainerview_base::kpersonaltrainerview_base( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    QImage img;
    img.loadFromData( img0_kpersonaltrainerview_base, sizeof( img0_kpersonaltrainerview_base ), "PNG" );
    image0 = img;
    if ( !name )
	setName( "kpersonaltrainerview_base" );
    setEnabled( TRUE );
    setMinimumSize( QSize( 0, 0 ) );
    setBaseSize( QSize( 0, 0 ) );
    setIcon( image0 );

    calendar = new QGroupBox( this, "calendar" );
    calendar->setGeometry( QRect( 600, 10, 270, 260 ) );

    dateTable = new KDateTable( calendar, "dateTable" );
    dateTable->setEnabled( TRUE );
    dateTable->setGeometry( QRect( 10, 20, 250, 230 ) );
    dateTable->setCellWidth( 35 );
    dateTable->setCellHeight( 32 );

    trainingSession = new QGroupBox( this, "trainingSession" );
    trainingSession->setGeometry( QRect( 10, 270, 860, 420 ) );

    textLabel1 = new QLabel( trainingSession, "textLabel1" );
    textLabel1->setGeometry( QRect( 10, 393, 273, 15 ) );

    deleteRow = new QPushButton( trainingSession, "deleteRow" );
    deleteRow->setGeometry( QRect( 740, 393, 110, 20 ) );

    editExerciseButton = new QPushButton( trainingSession, "editExerciseButton" );
    editExerciseButton->setGeometry( QRect( 623, 393, 110, 20 ) );

    exercisesTable = new QListView( trainingSession, "exercisesTable" );
    exercisesTable->addColumn( tr2i18n( "Exercise" ) );
    exercisesTable->addColumn( tr2i18n( "Time" ) );
    exercisesTable->addColumn( tr2i18n( "Average Pulse" ) );
    exercisesTable->addColumn( tr2i18n( "Max Pulse" ) );
    exercisesTable->addColumn( tr2i18n( "Date" ) );
    exercisesTable->addColumn( tr2i18n( "ID" ) );
    exercisesTable->setGeometry( QRect( 10, 20, 840, 370 ) );
    exercisesTable->setSelectionMode( QListView::Single );

    latestTrainingSession = new QGroupBox( this, "latestTrainingSession" );
    latestTrainingSession->setEnabled( TRUE );
    latestTrainingSession->setGeometry( QRect( 10, 10, 580, 260 ) );

    avgPulseLabel = new QLabel( latestTrainingSession, "avgPulseLabel" );
    avgPulseLabel->setGeometry( QRect( 1, 126, 100, 20 ) );

    maxPulseLabel = new QLabel( latestTrainingSession, "maxPulseLabel" );
    maxPulseLabel->setGeometry( QRect( 11, 156, 90, 20 ) );

    totalTimeLabel = new QLabel( latestTrainingSession, "totalTimeLabel" );
    totalTimeLabel->setGeometry( QRect( 21, 95, 80, 20 ) );

    exerciseLabel = new QLabel( latestTrainingSession, "exerciseLabel" );
    exerciseLabel->setGeometry( QRect( 40, 20, 64, 20 ) );

    newExerciseButton = new QPushButton( latestTrainingSession, "newExerciseButton" );
    newExerciseButton->setGeometry( QRect( 110, 45, 100, 20 ) );

    editSplitData = new QPushButton( latestTrainingSession, "editSplitData" );
    editSplitData->setGeometry( QRect( 220, 224, 100, 25 ) );

    groupBox4 = new QGroupBox( latestTrainingSession, "groupBox4" );
    groupBox4->setGeometry( QRect( 220, 70, 351, 140 ) );
    groupBox4->setPaletteBackgroundColor( QColor( 238, 238, 230 ) );

    totalTimeLabel_2_3 = new QLabel( groupBox4, "totalTimeLabel_2_3" );
    totalTimeLabel_2_3->setGeometry( QRect( 5, 85, 70, 20 ) );

    totalTimeLabel_2_2 = new QLabel( groupBox4, "totalTimeLabel_2_2" );
    totalTimeLabel_2_2->setGeometry( QRect( 4, 55, 70, 20 ) );

    totalTimeLabel_2 = new QLabel( groupBox4, "totalTimeLabel_2" );
    totalTimeLabel_2->setGeometry( QRect( 3, 25, 70, 20 ) );

    removeSplitTime = new QPushButton( groupBox4, "removeSplitTime" );
    removeSplitTime->setEnabled( FALSE );
    removeSplitTime->setGeometry( QRect( 280, 115, 60, 20 ) );

    splitTimeList = new QListBox( groupBox4, "splitTimeList" );
    splitTimeList->setEnabled( TRUE );
    splitTimeList->setGeometry( QRect( 149, 26, 190, 80 ) );
    splitTimeList->setPaletteBackgroundColor( QColor( 238, 238, 230 ) );

    splitTimeEdit = new QLineEdit( groupBox4, "splitTimeEdit" );
    splitTimeEdit->setEnabled( FALSE );
    splitTimeEdit->setGeometry( QRect( 80, 26, 60, 21 ) );

    splitAvgPulse = new QLineEdit( groupBox4, "splitAvgPulse" );
    splitAvgPulse->setEnabled( FALSE );
    splitAvgPulse->setGeometry( QRect( 80, 56, 60, 21 ) );

    splitMaxPulse = new QLineEdit( groupBox4, "splitMaxPulse" );
    splitMaxPulse->setEnabled( FALSE );
    splitMaxPulse->setGeometry( QRect( 80, 86, 60, 21 ) );

    addSplitTime = new QPushButton( groupBox4, "addSplitTime" );
    addSplitTime->setEnabled( FALSE );
    addSplitTime->setGeometry( QRect( 80, 114, 60, 20 ) );

    dateLabel = new QLabel( latestTrainingSession, "dateLabel" );
    dateLabel->setGeometry( QRect( 280, 20, 50, 20 ) );

    dateEdit = new KDateWidget( latestTrainingSession, "dateEdit" );
    dateEdit->setGeometry( QRect( 340, 20, 219, 20 ) );

    clearButton = new QPushButton( latestTrainingSession, "clearButton" );
    clearButton->setGeometry( QRect( 392, 224, 70, 25 ) );

    addExerciseButton = new QPushButton( latestTrainingSession, "addExerciseButton" );
    addExerciseButton->setGeometry( QRect( 480, 224, 90, 25 ) );

    exerciseCombo = new QComboBox( FALSE, latestTrainingSession, "exerciseCombo" );
    exerciseCombo->setGeometry( QRect( 110, 20, 170, 20 ) );

    textLabel2 = new QLabel( latestTrainingSession, "textLabel2" );
    textLabel2->setGeometry( QRect( 112, 74, 70, 20 ) );

    totalTimeEdit = new QLineEdit( latestTrainingSession, "totalTimeEdit" );
    totalTimeEdit->setEnabled( TRUE );
    totalTimeEdit->setGeometry( QRect( 110, 96, 80, 21 ) );

    avgPulseEdit = new QLineEdit( latestTrainingSession, "avgPulseEdit" );
    avgPulseEdit->setGeometry( QRect( 110, 126, 80, 21 ) );

    maxPulseEdit = new QLineEdit( latestTrainingSession, "maxPulseEdit" );
    maxPulseEdit->setGeometry( QRect( 110, 156, 80, 21 ) );
    languageChange();
    resize( QSize(870, 693).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( addExerciseButton, SIGNAL( clicked() ), this, SLOT( addExerciseButton_clicked() ) );
    connect( newExerciseButton, SIGNAL( clicked() ), this, SLOT( newExerciseButton_clicked() ) );
    connect( addSplitTime, SIGNAL( clicked() ), this, SLOT( addSplitTime_clicked() ) );
    connect( removeSplitTime, SIGNAL( clicked() ), this, SLOT( removeSplitTime_clicked() ) );
    connect( deleteRow, SIGNAL( clicked() ), this, SLOT( deleteRow_clicked() ) );
    connect( editSplitData, SIGNAL( clicked() ), this, SLOT( editSplitData_clicked() ) );
    connect( editExerciseButton, SIGNAL( clicked() ), this, SLOT( editExerciseButton_clicked() ) );
    connect( clearButton, SIGNAL( clicked() ), this, SLOT( clearButton_clicked() ) );
    connect( dateTable, SIGNAL( dateChanged(QDate) ), this, SLOT( dateTable_dateChanged(QDate) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void kpersonaltrainerview_base::languageChange()
{
    setCaption( tr2i18n( "kpersonaltrainer_base" ) );
    calendar->setTitle( tr2i18n( "Calendar" ) );
    trainingSession->setTitle( tr2i18n( "Previous Exercises" ) );
    textLabel1->setText( tr2i18n( "Expand exercises to see detailed split data" ) );
    deleteRow->setText( tr2i18n( "De&lete Exercise" ) );
    deleteRow->setAccel( QKeySequence( tr2i18n( "Alt+L" ) ) );
    editExerciseButton->setText( tr2i18n( "Edit E&xercise" ) );
    editExerciseButton->setAccel( QKeySequence( tr2i18n( "Alt+X" ) ) );
    exercisesTable->header()->setLabel( 0, tr2i18n( "Exercise" ) );
    exercisesTable->header()->setLabel( 1, tr2i18n( "Time" ) );
    exercisesTable->header()->setLabel( 2, tr2i18n( "Average Pulse" ) );
    exercisesTable->header()->setLabel( 3, tr2i18n( "Max Pulse" ) );
    exercisesTable->header()->setLabel( 4, tr2i18n( "Date" ) );
    exercisesTable->header()->setLabel( 5, tr2i18n( "ID" ) );
    latestTrainingSession->setTitle( tr2i18n( "New Exercise" ) );
    avgPulseLabel->setText( tr2i18n( "<p align=\"right\">Average Pulse:</p>" ) );
    maxPulseLabel->setText( tr2i18n( "<p align=\"right\">Max Pulse:</p>" ) );
    totalTimeLabel->setText( tr2i18n( "<p align=\"right\">Total Time:</p>" ) );
    exerciseLabel->setText( tr2i18n( "<p align=\"right\">Exercise:</p>" ) );
    newExerciseButton->setText( tr2i18n( "&New Exercise" ) );
    newExerciseButton->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) );
    editSplitData->setText( tr2i18n( "Edit Split Data" ) );
    editSplitData->setAccel( QKeySequence( QString::null ) );
    groupBox4->setTitle( tr2i18n( "Split Data" ) );
    totalTimeLabel_2_3->setText( tr2i18n( "<p align=\"right\">Max Pulse:</p>" ) );
    totalTimeLabel_2_2->setText( tr2i18n( "<p align=\"right\">Avg. Pulse:</p>" ) );
    totalTimeLabel_2->setText( tr2i18n( "<p align=\"right\">Split Time:</p>" ) );
    removeSplitTime->setText( tr2i18n( "Remove" ) );
    removeSplitTime->setAccel( QKeySequence( QString::null ) );
    addSplitTime->setText( tr2i18n( "&Add ->" ) );
    addSplitTime->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
    dateLabel->setText( tr2i18n( "<p align=\"right\">Date:</p>" ) );
    clearButton->setText( tr2i18n( "Clear" ) );
    clearButton->setAccel( QKeySequence( QString::null ) );
    addExerciseButton->setText( tr2i18n( "Add To Ta&ble" ) );
    addExerciseButton->setAccel( QKeySequence( tr2i18n( "Alt+B" ) ) );
    textLabel2->setText( tr2i18n( "<font size=\"-1\">hh:mm:ss</font>" ) );
    totalTimeEdit->setText( QString::null );
    avgPulseEdit->setText( QString::null );
}

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

void kpersonaltrainerview_base::saveButton_clicked()
{
    qWarning( "kpersonaltrainerview_base::saveButton_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::diagramButton_clicked()
{
    qWarning( "kpersonaltrainerview_base::diagramButton_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::addExerciseButton_clicked()
{
    qWarning( "kpersonaltrainerview_base::addExerciseButton_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::editManually_clicked()
{
    qWarning( "kpersonaltrainerview_base::editManually_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::getData_clicked()
{
    qWarning( "kpersonaltrainerview_base::getData_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::exerciseCombo_activated(const QString&)
{
    qWarning( "kpersonaltrainerview_base::exerciseCombo_activated(const QString&): Not implemented yet" );
}

void kpersonaltrainerview_base::newExerciseButton_clicked()
{
    qWarning( "kpersonaltrainerview_base::newExerciseButton_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::addSplitTime_clicked()
{
    qWarning( "kpersonaltrainerview_base::addSplitTime_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::removeSplitTime_clicked()
{
    qWarning( "kpersonaltrainerview_base::removeSplitTime_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::deleteRow_clicked()
{
    qWarning( "kpersonaltrainerview_base::deleteRow_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::editSplitData_clicked()
{
    qWarning( "kpersonaltrainerview_base::editSplitData_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::editExerciseButton_clicked()
{
    qWarning( "kpersonaltrainerview_base::editExerciseButton_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::clearButton_clicked()
{
    qWarning( "kpersonaltrainerview_base::clearButton_clicked(): Not implemented yet" );
}

void kpersonaltrainerview_base::dateTable_dateChanged(const QDate&,const QDate&)
{
    qWarning( "kpersonaltrainerview_base::dateTable_dateChanged(const QDate&,const QDate&): Not implemented yet" );
}

void kpersonaltrainerview_base::dateTable_dateChanged(QDate)
{
    qWarning( "kpersonaltrainerview_base::dateTable_dateChanged(QDate): Not implemented yet" );
}

#include "kpersonaltrainerview_base.moc"
