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

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

#include "general.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlineedit.h>
#include <ntqlabel.h>
#include <ntqslider.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    frame4 = new TQFrame( this, "frame4" );
    frame4->setFrameShape( TQFrame::StyledPanel );
    frame4->setFrameShadow( TQFrame::Plain );
    frame4->setLineWidth( 0 );
    frame4Layout = new TQVBoxLayout( frame4, 11, 6, "frame4Layout"); 

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

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

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

    kcfg_OppositeDirCrashes = new TQCheckBox( groupBox1, "kcfg_OppositeDirCrashes" );
    groupBox1Layout->addWidget( kcfg_OppositeDirCrashes );
    frame4Layout->addWidget( groupBox1 );

    groupBox2 = new TQGroupBox( frame4, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    kcfg_NamePlayer1 = new TQLineEdit( groupBox2, "kcfg_NamePlayer1" );

    groupBox2Layout->addWidget( kcfg_NamePlayer1, 0, 1 );

    kcfg_NamePlayer2 = new TQLineEdit( groupBox2, "kcfg_NamePlayer2" );

    groupBox2Layout->addWidget( kcfg_NamePlayer2, 1, 1 );

    textLabel1 = new TQLabel( groupBox2, "textLabel1" );

    groupBox2Layout->addWidget( textLabel1, 0, 0 );

    textLabel2 = new TQLabel( groupBox2, "textLabel2" );

    groupBox2Layout->addWidget( textLabel2, 1, 0 );
    frame4Layout->addWidget( groupBox2 );

    groupBox3 = new TQGroupBox( frame4, "groupBox3" );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( 6 );
    groupBox3->layout()->setMargin( 11 );
    groupBox3Layout = new TQVBoxLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

    kcfg_Velocity = new TQSlider( groupBox3, "kcfg_Velocity" );
    kcfg_Velocity->setMinValue( 1 );
    kcfg_Velocity->setMaxValue( 9 );
    kcfg_Velocity->setPageStep( 1 );
    kcfg_Velocity->setValue( 5 );
    kcfg_Velocity->setOrientation( TQSlider::Horizontal );
    kcfg_Velocity->setTickmarks( TQSlider::Right );
    kcfg_Velocity->setTickInterval( 1 );
    groupBox3Layout->addWidget( kcfg_Velocity );

    layout1 = new TQHBoxLayout( 0, 0, 6, "layout1"); 

    textLabel4 = new TQLabel( groupBox3, "textLabel4" );
    layout1->addWidget( textLabel4 );

    textLabel5 = new TQLabel( groupBox3, "textLabel5" );
    textLabel5->setAlignment( int( TQLabel::AlignCenter ) );
    layout1->addWidget( textLabel5 );

    textLabel6 = new TQLabel( groupBox3, "textLabel6" );
    textLabel6->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
    layout1->addWidget( textLabel6 );
    groupBox3Layout->addLayout( layout1 );
    frame4Layout->addWidget( groupBox3 );
    spacer2 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    frame4Layout->addItem( spacer2 );
    GeneralLayout->addWidget( frame4 );
    languageChange();
    resize( TQSize(400, 379).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void General::languageChange()
{
    groupBox1->setTitle( tr2i18n( "Behavior" ) );
    kcfg_ChangeWinnerColor->setText( tr2i18n( "&Show winner by changing color" ) );
    kcfg_AcceleratorBlocked->setText( tr2i18n( "&Disable acceleration" ) );
    kcfg_OppositeDirCrashes->setText( tr2i18n( "&Crash when moving in the opposite direction" ) );
    groupBox2->setTitle( tr2i18n( "Player Names" ) );
    textLabel1->setText( tr2i18n( "Player 1:" ) );
    textLabel2->setText( tr2i18n( "Player 2:" ) );
    groupBox3->setTitle( tr2i18n( "Speed" ) );
    textLabel4->setText( tr2i18n( "Slow" ) );
    textLabel5->setText( tr2i18n( "Default" ) );
    textLabel6->setText( tr2i18n( "Fast" ) );
}

/****************************************************************************
** General meta object code from reading C++ file 'general.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 "general.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 *General::className() const
{
    return "General";
}

TQMetaObject *General::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_General( "General", &General::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* General::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(
	"General", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_General.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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