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

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

#include "klatinvocabwidget.h"

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

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

    TitleLabel = new TQLabel( this, "TitleLabel" );
    TitleLabel->setMinimumSize( TQSize( 500, 0 ) );
    TQFont TitleLabel_font(  TitleLabel->font() );
    TitleLabel_font.setPointSize( 22 );
    TitleLabel->setFont( TitleLabel_font ); 
    TitleLabel->setAlignment( int( TQLabel::AlignCenter ) );
    KLatinVocabWidgetLayout->addWidget( TitleLabel );

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

    QuestionLabel = new TQLabel( this, "QuestionLabel" );
    QuestionLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, QuestionLabel->sizePolicy().hasHeightForWidth() ) );
    TQFont QuestionLabel_font(  QuestionLabel->font() );
    QuestionLabel_font.setPointSize( 17 );
    QuestionLabel->setFont( QuestionLabel_font ); 
    QuestionLabel->setFrameShape( TQLabel::Box );
    QuestionLabel->setFrameShadow( TQLabel::Raised );
    QuestionLabel->setAlignment( int( TQLabel::AlignCenter ) );
    layout52->addWidget( QuestionLabel );

    Frame10 = new TQFrame( this, "Frame10" );
    Frame10->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)4, 0, 0, Frame10->sizePolicy().hasHeightForWidth() ) );
    Frame10->setMaximumSize( TQSize( 32767, 32767 ) );
    Frame10->setFrameShape( TQFrame::StyledPanel );
    Frame10->setFrameShadow( TQFrame::Raised );
    Frame10Layout = new TQHBoxLayout( Frame10, 11, 6, "Frame10Layout"); 

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

    ScoreLabel = new TQLabel( Frame10, "ScoreLabel" );
    TQFont ScoreLabel_font(  ScoreLabel->font() );
    ScoreLabel_font.setPointSize( 19 );
    ScoreLabel->setFont( ScoreLabel_font ); 
    ScoreLabel->setAlignment( int( TQLabel::AlignCenter ) );
    Layout41->addWidget( ScoreLabel );

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

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

    Score1Label = new TQLabel( Frame10, "Score1Label" );
    Score1Label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
    Layout39->addWidget( Score1Label );

    Separator = new TQLabel( Frame10, "Separator" );
    Separator->setAlignment( int( TQLabel::AlignCenter ) );
    Layout39->addWidget( Separator );

    Score2Label = new TQLabel( Frame10, "Score2Label" );
    Layout39->addWidget( Score2Label );
    Layout40->addLayout( Layout39 );

    PercentageLabel = new TQLabel( Frame10, "PercentageLabel" );
    PercentageLabel->setAlignment( int( TQLabel::AlignCenter ) );
    Layout40->addWidget( PercentageLabel );
    Layout41->addLayout( Layout40 );
    Frame10Layout->addLayout( Layout41 );
    layout52->addWidget( Frame10 );
    KLatinVocabWidgetLayout->addLayout( layout52 );

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

    Answer1 = new KPushButton( this, "Answer1" );
    Answer1->setMinimumSize( TQSize( 150, 40 ) );
    layout53->addWidget( Answer1 );

    Answer2 = new KPushButton( this, "Answer2" );
    Answer2->setMinimumSize( TQSize( 150, 40 ) );
    layout53->addWidget( Answer2 );
    KLatinVocabWidgetLayout->addLayout( layout53 );

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

    Answer3 = new KPushButton( this, "Answer3" );
    Answer3->setMinimumSize( TQSize( 150, 40 ) );
    layout64->addWidget( Answer3 );

    Answer4 = new KPushButton( this, "Answer4" );
    Answer4->setMinimumSize( TQSize( 150, 40 ) );
    layout64->addWidget( Answer4 );
    KLatinVocabWidgetLayout->addLayout( layout64 );

    layout18 = new TQHBoxLayout( 0, 0, 6, "layout18"); 
    Spacer405 = new TQSpacerItem( 326, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout18->addItem( Spacer405 );

    BackButton = new KPushButton( this, "BackButton" );
    layout18->addWidget( BackButton );
    KLatinVocabWidgetLayout->addLayout( layout18 );
    languageChange();
    resize( TQSize(582, 376).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( Answer1, Answer2 );
    setTabOrder( Answer2, Answer3 );
    setTabOrder( Answer3, Answer4 );
    setTabOrder( Answer4, BackButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KLatinVocabWidget::languageChange()
{
    setCaption( tr2i18n( "KLatin" ) );
    TitleLabel->setText( tr2i18n( "Vocabulary Section" ) );
    QuestionLabel->setText( tr2i18n( "Question Word" ) );
    TQWhatsThis::add( QuestionLabel, tr2i18n( "The question word will appear here" ) );
    TQToolTip::add( Frame10, tr2i18n( "Your current score" ) );
    TQWhatsThis::add( Frame10, tr2i18n( "Your score appears on this display. Number of correct answers/total number of answers." ) );
    ScoreLabel->setText( tr2i18n( "Score" ) );
    Score1Label->setText( tr2i18n( "0" ) );
    Separator->setText( tr2i18n( "/" ) );
    Score2Label->setText( tr2i18n( "0" ) );
    TQWhatsThis::add( PercentageLabel, tr2i18n( "Your test percentage so far" ) );
    Answer1->setText( tr2i18n( "Answer 1" ) );
    TQWhatsThis::add( Answer1, tr2i18n( "Click this if you think it is the right answer." ) );
    Answer2->setText( tr2i18n( "Answer 2" ) );
    TQWhatsThis::add( Answer2, tr2i18n( "Click this if you think it is the right answer." ) );
    Answer3->setText( tr2i18n( "Answer 3" ) );
    TQWhatsThis::add( Answer3, tr2i18n( "Click this if you think it is the right answer." ) );
    Answer4->setText( tr2i18n( "Answer 4" ) );
    TQWhatsThis::add( Answer4, tr2i18n( "Click this if you think it is the right answer." ) );
    BackButton->setText( tr2i18n( "&Back" ) );
    TQToolTip::add( BackButton, tr2i18n( "Go back to the selection screen" ) );
    TQWhatsThis::add( BackButton, tr2i18n( "Return to the selection screen" ) );
}

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

TQMetaObject *KLatinVocabWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KLatinVocabWidget( "KLatinVocabWidget", &KLatinVocabWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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