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

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

#include "advanced.h"

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

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

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

    groupBox5 = new TQGroupBox( this, "groupBox5" );
    groupBox5->setColumnLayout(0, TQt::Vertical );
    groupBox5->layout()->setSpacing( 6 );
    groupBox5->layout()->setMargin( 11 );
    groupBox5Layout = new TQGridLayout( groupBox5->layout() );
    groupBox5Layout->setAlignment( TQt::AlignTop );

    kcfg_Hint = new TQCheckBox( groupBox5, "kcfg_Hint" );
    kcfg_Hint->setEnabled( false );

    groupBox5Layout->addWidget( kcfg_Hint, 0, 0 );
    layout2->addWidget( groupBox5 );

    groupBox6 = new TQGroupBox( this, "groupBox6" );
    groupBox6->setColumnLayout(0, TQt::Vertical );
    groupBox6->layout()->setSpacing( 6 );
    groupBox6->layout()->setMargin( 11 );
    groupBox6Layout = new TQGridLayout( groupBox6->layout() );
    groupBox6Layout->setAlignment( TQt::AlignTop );

    kcfg_AccentedLetters = new TQCheckBox( groupBox6, "kcfg_AccentedLetters" );
    kcfg_AccentedLetters->setEnabled( false );

    groupBox6Layout->addWidget( kcfg_AccentedLetters, 0, 0 );
    layout2->addWidget( groupBox6 );

    advancedLayout->addLayout( layout2, 0, 0 );
    languageChange();
    resize( TQSize(225, 134).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void advanced::languageChange()
{
    groupBox5->setTitle( tr2i18n( "When Available" ) );
    kcfg_Hint->setText( tr2i18n( "&Show hints" ) );
    TQToolTip::add( kcfg_Hint, tr2i18n( "If you check it, a hint will be displayed by right-clicking on the game window." ) );
    TQWhatsThis::add( kcfg_Hint, tr2i18n( "Some languages have hints to help you guess the word more easily. If this is <b>disabled</b>, there is no such option for your current language data file.\n"
"If this is <b>enabled</b>, then hints are available and you can get them by checking this box. You will then see the hint for the word you are trying to guess by right-clicking somewhere on the KHangMan window, the hint will then be displayed for 4 seconds in a tooltip." ) );
    groupBox6->setTitle( tr2i18n( "Spanish, Portuguese, Catalan" ) );
    kcfg_AccentedLetters->setText( tr2i18n( "Type accented &letters" ) );
    TQToolTip::add( kcfg_AccentedLetters, tr2i18n( "If this is checked, you must type accented letters yourself (i.e. they are differentiated from the corresponding unaccented letter)." ) );
    TQWhatsThis::add( kcfg_AccentedLetters, tr2i18n( "If this is <b>disabled</b>, then the selected language does not support it. If this is <b>enabled</b> and if you check it, then you should type accented letters on their own. If it is not checked, accented letters will be displayed with normal letters.<br>\n"
"Default is that accented letters will be shown when the corresponding unaccented letter is guessed.<br>\n"
"For example, in Catalan, if this is unchecked and you type \"o\", the o and ò will be displayed in the word <b>xenofòbia</b>. If this option is checked, when you type \"o\", only \"o\" will be displayed and you will then have to type \"ò\" for this letter to be displayed." ) );
}

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

TQMetaObject *advanced::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_advanced( "advanced", &advanced::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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