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

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

#include "klatinchoose.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KLatinChoose as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KLatinChoose::KLatinChoose( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "KLatinChoose" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
    KLatinChooseLayout = new TQVBoxLayout( this, 11, 6, "KLatinChooseLayout"); 

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

    WelcomeLabel = new TQLabel( this, "WelcomeLabel" );
    TQFont WelcomeLabel_font(  WelcomeLabel->font() );
    WelcomeLabel_font.setPointSize( 16 );
    WelcomeLabel_font.setBold( true );
    WelcomeLabel->setFont( WelcomeLabel_font ); 
    WelcomeLabel->setAlignment( int( TQLabel::AlignCenter ) );
    layout81->addWidget( WelcomeLabel );

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

    Options = new TQButtonGroup( this, "Options" );
    Options->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, Options->sizePolicy().hasHeightForWidth() ) );
    Options->setColumnLayout(0, TQt::Vertical );
    Options->layout()->setSpacing( 6 );
    Options->layout()->setMargin( 11 );
    OptionsLayout = new TQVBoxLayout( Options->layout() );
    OptionsLayout->setAlignment( TQt::AlignTop );
    spacer1 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    OptionsLayout->addItem( spacer1 );

    VocabOption = new TQRadioButton( Options, "VocabOption" );
    VocabOption->setChecked( true );
    OptionsLayout->addWidget( VocabOption );

    GrammarOption = new TQRadioButton( Options, "GrammarOption" );
    GrammarOption->setChecked( false );
    OptionsLayout->addWidget( GrammarOption );

    VerbsOption = new TQRadioButton( Options, "VerbsOption" );
    OptionsLayout->addWidget( VerbsOption );

    RevisionOption = new TQRadioButton( Options, "RevisionOption" );
    OptionsLayout->addWidget( RevisionOption );
    spacer2 = new TQSpacerItem( 20, 31, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    OptionsLayout->addItem( spacer2 );
    layout80->addWidget( Options );

    layout79 = new TQVBoxLayout( 0, 0, 6, "layout79"); 
    spacer3 = new TQSpacerItem( 20, 34, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout79->addItem( spacer3 );

    StartButton = new KPushButton( this, "StartButton" );
    layout79->addWidget( StartButton );

    QuitButton = new KPushButton( this, "QuitButton" );
    layout79->addWidget( QuitButton );
    spacer4 = new TQSpacerItem( 20, 33, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout79->addItem( spacer4 );
    layout80->addLayout( layout79 );
    layout81->addLayout( layout80 );
    KLatinChooseLayout->addLayout( layout81 );
    languageChange();
    resize( TQSize(490, 230).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KLatinChoose::languageChange()
{
    WelcomeLabel->setText( tr2i18n( "Welcome to KLatin\n"
"Please Choose Section of Revision" ) );
    Options->setTitle( tr2i18n( "Revision Sections" ) );
    VocabOption->setText( tr2i18n( "&Vocabulary" ) );
    TQToolTip::add( VocabOption, tr2i18n( "Test on Vocabulary" ) );
    TQWhatsThis::add( VocabOption, tr2i18n( "Multiple choice vocabulary test" ) );
    GrammarOption->setText( tr2i18n( "&Grammar" ) );
    TQToolTip::add( GrammarOption, tr2i18n( "Test on noun grammar" ) );
    TQWhatsThis::add( GrammarOption, tr2i18n( "Test on common nouns and endings" ) );
    VerbsOption->setText( tr2i18n( "Ver&bs" ) );
    TQToolTip::add( VerbsOption, tr2i18n( "Test on verb forms" ) );
    TQWhatsThis::add( VerbsOption, tr2i18n( "Test on common verbs and endings" ) );
    RevisionOption->setText( tr2i18n( "&Revision notes" ) );
    TQToolTip::add( RevisionOption, tr2i18n( "Load revision notes" ) );
    TQWhatsThis::add( RevisionOption, tr2i18n( "The KLatin revision notes with\n"
"verb and noun tables" ) );
    StartButton->setText( tr2i18n( "S&tart" ) );
    TQToolTip::add( StartButton, tr2i18n( "Start chosen area of revision" ) );
    TQWhatsThis::add( StartButton, tr2i18n( "Start the section you have chosen" ) );
    QuitButton->setText( tr2i18n( "&Quit" ) );
    TQToolTip::add( QuitButton, tr2i18n( "Quits" ) );
    TQWhatsThis::add( QuitButton, tr2i18n( "Quit KLatin" ) );
}

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

TQMetaObject *KLatinChoose::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KLatinChoose( "KLatinChoose", &KLatinChoose::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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