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

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

#include "normal.h"

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

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

    layout4 = new TQVBoxLayout( 0, 0, 6, "layout4"); 

    kcfg_OneLetter = new TQCheckBox( this, "kcfg_OneLetter" );
    layout4->addWidget( kcfg_OneLetter );

    kcfg_WonDialog = new TQCheckBox( this, "kcfg_WonDialog" );
    layout4->addWidget( kcfg_WonDialog );

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

    kcfg_Sound = new TQCheckBox( groupBox3_2, "kcfg_Sound" );
    groupBox3_2Layout->addWidget( kcfg_Sound );
    layout4->addWidget( groupBox3_2 );

    normalLayout->addLayout( layout4, 0, 0 );
    languageChange();
    resize( TQSize(334, 128).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void normal::languageChange()
{
    kcfg_OneLetter->setText( tr2i18n( "Require more &guesses for duplicate letters" ) );
    TQToolTip::add( kcfg_OneLetter, tr2i18n( "Check this if you do not want to display each instance of the same letter" ) );
    TQWhatsThis::add( kcfg_OneLetter, tr2i18n( "If you check this box, only the first letter will be written if the letter is found in several places in the word. Then when you rechoose this letter, it will replace the second instance in the word until there are no more instances of this letter.\n"
"For example, the word to guess is \"potato\". If this option is unchecked, when you try \"o\", the 2 \"o\" in the word will be discovered at the same time. If this is checked, you will need to try \"o\" twice.\n"
"\n"
"Default is that for one letter typed, all instances of that letter in the word are displayed." ) );
    kcfg_WonDialog->setText( tr2i18n( "Do not display the 'Congratulations! You &won!' dialog" ) );
    TQToolTip::add( kcfg_WonDialog, tr2i18n( "If checked, the dialog 'Congratulations! You won!' is not displayed. After 3 seconds, a new game will start automatically." ) );
    TQWhatsThis::add( kcfg_WonDialog, tr2i18n( "If this option is not checked, when a game is won a dialog will appear saying 'Congratulations! You won!'. It also asks you if you want to play again and you have to say Yes or No.\n"
"This is the default state.\n"
"\n"
"If this option is checked, this dialog will not appear and a new game will automatically start after four seconds. A passive popup tells you you have won the game. When this opton is checked you don't have an intrusive dialog each time you won a game." ) );
    groupBox3_2->setTitle( tr2i18n( "Sounds" ) );
    kcfg_Sound->setText( tr2i18n( "Enable &sounds" ) );
    TQToolTip::add( kcfg_Sound, tr2i18n( "If checked, sounds will be played for New Game and Win Game" ) );
    TQWhatsThis::add( kcfg_Sound, tr2i18n( "If this box is checked, you will have some sounds played for each new game and when you win a game. If this is not checked, there will be no sound in KHangMan.\n"
"Default is no sound." ) );
}

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

TQMetaObject *normal::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_normal( "normal", &normal::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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