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

#include <qvariant.h>
#include <qgroupbox.h>
#include <klineedit.h>
#include <qpushbutton.h>
#include <klistbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a manageExercises as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
manageExercises::manageExercises( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "manageExercises" );
    setMinimumSize( QSize( 480, 260 ) );

    Exercises = new QGroupBox( this, "Exercises" );
    Exercises->setGeometry( QRect( 10, 0, 460, 250 ) );
    Exercises->setMinimumSize( QSize( 460, 250 ) );

    newEdit = new KLineEdit( Exercises, "newEdit" );
    newEdit->setGeometry( QRect( 10, 30, 210, 30 ) );

    newButton = new QPushButton( Exercises, "newButton" );
    newButton->setGeometry( QRect( 120, 70, 100, 30 ) );

    removeButton = new QPushButton( Exercises, "removeButton" );
    removeButton->setGeometry( QRect( 120, 210, 100, 30 ) );

    kcfg_ExercisesList = new KListBox( Exercises, "kcfg_ExercisesList" );
    kcfg_ExercisesList->setGeometry( QRect( 230, 30, 220, 210 ) );
    languageChange();
    resize( QSize(480, 260).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void manageExercises::languageChange()
{
    setCaption( tr2i18n( "Manage Exercises" ) );
    Exercises->setTitle( tr2i18n( "Exercises" ) );
    newButton->setText( tr2i18n( "Add &New ->" ) );
    newButton->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) );
    removeButton->setText( tr2i18n( "<- Remove" ) );
    removeButton->setAccel( QKeySequence( QString::null ) );
}

void manageExercises::newButton_clicked()
{
    qWarning( "manageExercises::newButton_clicked(): Not implemented yet" );
}

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

#include "exercises.moc"
