#include <kdialog.h>
#include <tdelocale.h>

/****************************************************************************
** Form implementation generated from reading ui file 'ktouchpreftraininglayout.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "ktouchpreftraininglayout.h"

#include <ntqvariant.h>
#include <knuminput.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KTouchPrefTrainingLayout as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KTouchPrefTrainingLayout::KTouchPrefTrainingLayout( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "KTouchPrefTrainingLayout" );
    KTouchPrefTrainingLayoutLayout = new TQVBoxLayout( this, 0, 6, "KTouchPrefTrainingLayoutLayout"); 

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQVBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    kcfg_AutoLevelChange = new TQCheckBox( groupBox1, "kcfg_AutoLevelChange" );
    groupBox1Layout->addWidget( kcfg_AutoLevelChange );
    spacer13 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    groupBox1Layout->addItem( spacer13 );

    layout1 = new TQGridLayout( 0, 1, 1, 0, 6, "layout1"); 

    l3 = new TQLabel( groupBox1, "l3" );

    layout1->addWidget( l3, 2, 1 );

    kcfg_UpSpeedLimit = new KIntSpinBox( groupBox1, "kcfg_UpSpeedLimit" );
    kcfg_UpSpeedLimit->setMaxValue( 500 );

    layout1->addWidget( kcfg_UpSpeedLimit, 1, 2 );

    l2 = new TQLabel( groupBox1, "l2" );

    layout1->addWidget( l2, 1, 1 );

    l5 = new TQLabel( groupBox1, "l5" );

    layout1->addWidget( l5, 2, 3 );

    l1 = new TQLabel( groupBox1, "l1" );

    layout1->addMultiCellWidget( l1, 0, 0, 0, 1 );

    kcfg_UpCorrectLimit = new KIntSpinBox( groupBox1, "kcfg_UpCorrectLimit" );

    layout1->addWidget( kcfg_UpCorrectLimit, 2, 2 );
    spacer12 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout1->addItem( spacer12, 2, 0 );

    l4 = new TQLabel( groupBox1, "l4" );

    layout1->addWidget( l4, 1, 3 );
    spacer11 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout1->addItem( spacer11, 1, 0 );
    groupBox1Layout->addLayout( layout1 );
    spacer13_2 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    groupBox1Layout->addItem( spacer13_2 );

    layout2 = new TQGridLayout( 0, 1, 1, 0, 6, "layout2"); 

    l6 = new TQLabel( groupBox1, "l6" );

    layout2->addMultiCellWidget( l6, 0, 0, 0, 1 );

    l10 = new TQLabel( groupBox1, "l10" );

    layout2->addWidget( l10, 2, 3 );

    kcfg_DownCorrectLimit = new KIntSpinBox( groupBox1, "kcfg_DownCorrectLimit" );

    layout2->addWidget( kcfg_DownCorrectLimit, 2, 2 );

    kcfg_DownSpeedLimit = new KIntSpinBox( groupBox1, "kcfg_DownSpeedLimit" );
    kcfg_DownSpeedLimit->setMaxValue( 500 );

    layout2->addWidget( kcfg_DownSpeedLimit, 1, 2 );

    l7 = new TQLabel( groupBox1, "l7" );

    layout2->addWidget( l7, 1, 1 );

    l9 = new TQLabel( groupBox1, "l9" );

    layout2->addWidget( l9, 1, 3 );
    spacer11_2 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout2->addItem( spacer11_2, 1, 0 );
    spacer12_2 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout2->addItem( spacer12_2, 2, 0 );

    l8 = new TQLabel( groupBox1, "l8" );

    layout2->addWidget( l8, 2, 1 );
    groupBox1Layout->addLayout( layout2 );

    kcfg_DisableManualLevelChange = new TQCheckBox( groupBox1, "kcfg_DisableManualLevelChange" );
    groupBox1Layout->addWidget( kcfg_DisableManualLevelChange );
    KTouchPrefTrainingLayoutLayout->addWidget( groupBox1 );

    groupBox7 = new TQGroupBox( this, "groupBox7" );
    groupBox7->setColumnLayout(0, TQt::Vertical );
    groupBox7->layout()->setSpacing( 6 );
    groupBox7->layout()->setMargin( 11 );
    groupBox7Layout = new TQVBoxLayout( groupBox7->layout() );
    groupBox7Layout->setAlignment( TQt::AlignTop );

    kcfg_RememberLevel = new TQCheckBox( groupBox7, "kcfg_RememberLevel" );
    groupBox7Layout->addWidget( kcfg_RememberLevel );
    KTouchPrefTrainingLayoutLayout->addWidget( groupBox7 );
    spacer17 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KTouchPrefTrainingLayoutLayout->addItem( spacer17 );
    languageChange();
    resize( TQSize(472, 354).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KTouchPrefTrainingLayout::languageChange()
{
    setCaption( tr2i18n( "Training Options" ) );
    groupBox1->setTitle( tr2i18n( "Level Up/Down Limits" ) );
    kcfg_AutoLevelChange->setText( tr2i18n( "A&utomatic level adjustment" ) );
    l3->setText( tr2i18n( "Correctness:" ) );
    l2->setText( tr2i18n( "Typing speed:" ) );
    l5->setText( tr2i18n( "%" ) );
    l1->setText( tr2i18n( "Limits to increase a level" ) );
    l4->setText( tr2i18n( "chars/minute" ) );
    l6->setText( tr2i18n( "Limits to decrease a level" ) );
    l10->setText( tr2i18n( "%" ) );
    l7->setText( tr2i18n( "Typing speed:" ) );
    l9->setText( tr2i18n( "chars/minute" ) );
    l8->setText( tr2i18n( "Correctness:" ) );
    kcfg_DisableManualLevelChange->setText( tr2i18n( "Disable manual level change buttons" ) );
    groupBox7->setTitle( TQString::null );
    kcfg_RememberLevel->setText( tr2i18n( "&Remember level for next program start" ) );
}

/****************************************************************************
** KTouchPrefTrainingLayout meta object code from reading C++ file 'ktouchpreftraininglayout.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "ktouchpreftraininglayout.h"
#include <ntqmetaobject.h>
#include <ntqapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *KTouchPrefTrainingLayout::className() const
{
    return "KTouchPrefTrainingLayout";
}

TQMetaObject *KTouchPrefTrainingLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KTouchPrefTrainingLayout( "KTouchPrefTrainingLayout", &KTouchPrefTrainingLayout::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString KTouchPrefTrainingLayout::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "KTouchPrefTrainingLayout", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString KTouchPrefTrainingLayout::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "KTouchPrefTrainingLayout", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* KTouchPrefTrainingLayout::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KTouchPrefTrainingLayout", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KTouchPrefTrainingLayout.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* KTouchPrefTrainingLayout::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "KTouchPrefTrainingLayout" ) )
	return this;
    return TQWidget::tqt_cast( clname );
}

bool KTouchPrefTrainingLayout::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool KTouchPrefTrainingLayout::tqt_emit( int _id, TQUObject* _o )
{
    return TQWidget::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool KTouchPrefTrainingLayout::tqt_property( int id, int f, TQVariant* v)
{
    return TQWidget::tqt_property( id, f, v);
}

bool KTouchPrefTrainingLayout::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
