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

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

#include "klatinverbswidget.h"

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

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

    TitleVerbs = new TQLabel( this, "TitleVerbs" );
    TitleVerbs->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)4, 0, 1, TitleVerbs->sizePolicy().hasHeightForWidth() ) );
    TQFont TitleVerbs_font(  TitleVerbs->font() );
    TitleVerbs_font.setPointSize( 22 );
    TitleVerbs->setFont( TitleVerbs_font ); 
    TitleVerbs->setAlignment( int( TQLabel::AlignCenter ) );
    KLatinVerbsWidgetLayout->addWidget( TitleVerbs );

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

    ChooseConjugation = new KComboBox( false, this, "ChooseConjugation" );
    layout29->addWidget( ChooseConjugation );

    ChooseVoice = new KComboBox( false, this, "ChooseVoice" );
    ChooseVoice->setMinimumSize( TQSize( 120, 0 ) );
    layout29->addWidget( ChooseVoice );

    ChooseMood = new KComboBox( false, this, "ChooseMood" );
    layout29->addWidget( ChooseMood );

    ChangeButton = new KPushButton( this, "ChangeButton" );
    ChangeButton->setMaximumSize( TQSize( 25, 32767 ) );
    layout29->addWidget( ChangeButton );
    KLatinVerbsWidgetLayout->addLayout( layout29 );

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

    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::WordBreak | TQLabel::AlignCenter ) );
    layout11->addWidget( QuestionLabel );

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

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

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

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

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

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

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

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

    PercentageLabel = new TQLabel( Frame10, "PercentageLabel" );
    PercentageLabel->setAlignment( int( TQLabel::AlignCenter ) );
    Layout40_2->addWidget( PercentageLabel );
    Layout41_2->addLayout( Layout40_2 );
    Frame10Layout->addLayout( Layout41_2 );
    layout11->addWidget( Frame10 );
    KLatinVerbsWidgetLayout->addLayout( layout11 );

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

    AnswerLabel = new TQLabel( this, "AnswerLabel" );
    layout9->addWidget( AnswerLabel );

    AnswerBox = new KLineEdit( this, "AnswerBox" );
    layout9->addWidget( AnswerBox );

    OKButton = new KPushButton( this, "OKButton" );
    OKButton->setAutoDefault( true );
    OKButton->setDefault( true );
    layout9->addWidget( OKButton );
    KLatinVerbsWidgetLayout->addLayout( layout9 );

    layout29_2 = new TQHBoxLayout( 0, 0, 6, "layout29_2"); 
    Spacer20 = new TQSpacerItem( 297, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout29_2->addItem( Spacer20 );

    BackButton = new KPushButton( this, "BackButton" );
    layout29_2->addWidget( BackButton );
    KLatinVerbsWidgetLayout->addLayout( layout29_2 );
    languageChange();
    resize( TQSize(442, 320).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( AnswerBox, OKButton );
    setTabOrder( OKButton, BackButton );
    setTabOrder( BackButton, ChooseConjugation );
    setTabOrder( ChooseConjugation, ChooseVoice );
    setTabOrder( ChooseVoice, ChooseMood );
    setTabOrder( ChooseMood, ChangeButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KLatinVerbsWidget::languageChange()
{
    setCaption( tr2i18n( "KLatin" ) );
    TitleVerbs->setText( tr2i18n( "Verbs Section" ) );
    TQToolTip::add( ChooseConjugation, tr2i18n( "Choice of verb conjugation" ) );
    TQWhatsThis::add( ChooseConjugation, tr2i18n( "Conjugation of verb to be\n"
"tested on" ) );
    TQToolTip::add( ChooseVoice, tr2i18n( "Choice of verb voice" ) );
    TQWhatsThis::add( ChooseVoice, tr2i18n( "Voice of verb to be\n"
"tested on" ) );
    TQToolTip::add( ChooseMood, tr2i18n( "Choice of verb mood" ) );
    TQWhatsThis::add( ChooseMood, tr2i18n( "Mood of verb to be\n"
"tested on" ) );
    ChangeButton->setText( TQString::null );
    TQToolTip::add( ChangeButton, tr2i18n( "Apply" ) );
    TQWhatsThis::add( ChangeButton, tr2i18n( "Change test to new type" ) );
    QuestionLabel->setText( tr2i18n( "Question Word\n"
"Line 2\n"
"Line 3\n"
"Line 4" ) );
    TQWhatsThis::add( QuestionLabel, tr2i18n( "The question will appear here" ) );
    ScoreLabel->setText( tr2i18n( "Score" ) );
    Score1Label->setText( tr2i18n( "0" ) );
    SeparatorLabel->setText( tr2i18n( "/" ) );
    Score2Label->setText( tr2i18n( "0" ) );
    TQWhatsThis::add( PercentageLabel, tr2i18n( "Your test percentage so far" ) );
    AnswerLabel->setText( tr2i18n( "Answer:" ) );
    TQWhatsThis::add( AnswerBox, tr2i18n( "Enter your answer here" ) );
    OKButton->setText( tr2i18n( "&OK" ) );
    TQToolTip::add( OKButton, tr2i18n( "Check your answer" ) );
    BackButton->setText( tr2i18n( "&Back" ) );
    TQToolTip::add( BackButton, tr2i18n( "Go back to the selection screen" ) );
    TQWhatsThis::add( BackButton, tr2i18n( "Return to selection screen" ) );
}

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

TQMetaObject *KLatinVerbsWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KLatinVerbsWidget( "KLatinVerbsWidget", &KLatinVerbsWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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