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

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

#include "VerbQueryDlgForm.h"

#include <ntqvariant.h>
#include <kprogress.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    lab1 = new TQLabel( this, "lab1" );
    TQFont lab1_font(  lab1->font() );
    lab1_font.setBold( true );
    lab1->setFont( lab1_font ); 
    layout20->addWidget( lab1 );

    instructionLabel = new TQLabel( this, "instructionLabel" );
    instructionLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, instructionLabel->sizePolicy().hasHeightForWidth() ) );
    TQFont instructionLabel_font(  instructionLabel->font() );
    instructionLabel_font.setBold( true );
    instructionLabel->setFont( instructionLabel_font ); 
    layout20->addWidget( instructionLabel );

    VerbQueryDlgFormLayout->addLayout( layout20, 1, 0 );

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

    layout29 = new TQGridLayout( 0, 1, 1, 0, 6, "layout29"); 

    p3smLabel = new TQLabel( this, "p3smLabel" );

    layout29->addWidget( p3smLabel, 3, 0 );

    p2sField = new TQLineEdit( this, "p2sField" );

    layout29->addWidget( p2sField, 1, 1 );

    p3smField = new TQLineEdit( this, "p3smField" );

    layout29->addWidget( p3smField, 3, 1 );

    p3snLabel = new TQLabel( this, "p3snLabel" );

    layout29->addWidget( p3snLabel, 4, 0 );

    p1sLabel = new TQLabel( this, "p1sLabel" );

    layout29->addWidget( p1sLabel, 0, 0 );

    p3sfLabel = new TQLabel( this, "p3sfLabel" );

    layout29->addWidget( p3sfLabel, 2, 0 );

    p3snField = new TQLineEdit( this, "p3snField" );

    layout29->addWidget( p3snField, 4, 1 );

    p3sfField = new TQLineEdit( this, "p3sfField" );

    layout29->addWidget( p3sfField, 2, 1 );

    p2sLabel = new TQLabel( this, "p2sLabel" );

    layout29->addWidget( p2sLabel, 1, 0 );

    p1sField = new TQLineEdit( this, "p1sField" );

    layout29->addWidget( p1sField, 0, 1 );
    layout30->addLayout( layout29 );

    layout27 = new TQGridLayout( 0, 1, 1, 0, 6, "layout27"); 

    p2pField = new TQLineEdit( this, "p2pField" );

    layout27->addWidget( p2pField, 1, 1 );

    p3pnField = new TQLineEdit( this, "p3pnField" );

    layout27->addWidget( p3pnField, 4, 1 );

    p1pLabel = new TQLabel( this, "p1pLabel" );

    layout27->addWidget( p1pLabel, 0, 0 );

    p2pLabel = new TQLabel( this, "p2pLabel" );
    p2pLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, p2pLabel->sizePolicy().hasHeightForWidth() ) );
    p2pLabel->setFrameShape( TQLabel::MShape );
    p2pLabel->setFrameShadow( TQLabel::MShadow );

    layout27->addWidget( p2pLabel, 1, 0 );

    p3pmField = new TQLineEdit( this, "p3pmField" );

    layout27->addWidget( p3pmField, 3, 1 );

    p3pmLabel = new TQLabel( this, "p3pmLabel" );

    layout27->addWidget( p3pmLabel, 3, 0 );

    p3pfField = new TQLineEdit( this, "p3pfField" );

    layout27->addWidget( p3pfField, 2, 1 );

    p3pfLabel = new TQLabel( this, "p3pfLabel" );

    layout27->addWidget( p3pfLabel, 2, 0 );

    p1pField = new TQLineEdit( this, "p1pField" );

    layout27->addWidget( p1pField, 0, 1 );

    p3pnLabel = new TQLabel( this, "p3pnLabel" );

    layout27->addWidget( p3pnLabel, 4, 0 );
    layout30->addLayout( layout27 );

    VerbQueryDlgFormLayout->addLayout( layout30, 2, 0 );

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

    TextLabel2 = new TQLabel( this, "TextLabel2" );
    layout19->addWidget( TextLabel2 );

    baseLabel = new TQLabel( this, "baseLabel" );
    baseLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, baseLabel->sizePolicy().hasHeightForWidth() ) );
    baseLabel->setFrameShape( TQLabel::GroupBoxPanel );
    baseLabel->setFrameShadow( TQLabel::Plain );
    layout19->addWidget( baseLabel );

    VerbQueryDlgFormLayout->addLayout( layout19, 0, 0 );

    layout32 = new TQGridLayout( 0, 1, 1, 0, 6, "layout32"); 

    layout31 = new TQGridLayout( 0, 1, 1, 0, 6, "layout31"); 

    know_it = new TQPushButton( this, "know_it" );
    know_it->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, know_it->sizePolicy().hasHeightForWidth() ) );

    layout31->addWidget( know_it, 0, 1 );

    verify = new TQPushButton( this, "verify" );
    verify->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, verify->sizePolicy().hasHeightForWidth() ) );

    layout31->addWidget( verify, 1, 0 );

    show_all = new TQPushButton( this, "show_all" );
    show_all->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, show_all->sizePolicy().hasHeightForWidth() ) );

    layout31->addWidget( show_all, 0, 0 );

    dont_know = new TQPushButton( this, "dont_know" );
    dont_know->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, dont_know->sizePolicy().hasHeightForWidth() ) );

    layout31->addWidget( dont_know, 1, 1 );

    layout32->addLayout( layout31, 0, 0 );

    status = new TQLabel( this, "status" );
    status->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, status->sizePolicy().hasHeightForWidth() ) );
    status->setFrameShape( TQLabel::GroupBoxPanel );
    status->setFrameShadow( TQLabel::Plain );

    layout32->addWidget( status, 1, 0 );

    progressgroup = new TQGroupBox( this, "progressgroup" );
    progressgroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, progressgroup->sizePolicy().hasHeightForWidth() ) );
    progressgroup->setColumnLayout(0, TQt::Vertical );
    progressgroup->layout()->setSpacing( 6 );
    progressgroup->layout()->setMargin( 11 );
    progressgroupLayout = new TQGridLayout( progressgroup->layout() );
    progressgroupLayout->setAlignment( TQt::AlignTop );

    countbar = new KProgress( progressgroup, "countbar" );

    progressgroupLayout->addWidget( countbar, 0, 1 );

    timebar = new KProgress( progressgroup, "timebar" );

    progressgroupLayout->addWidget( timebar, 1, 1 );

    countlabel = new TQLabel( progressgroup, "countlabel" );
    countlabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, countlabel->sizePolicy().hasHeightForWidth() ) );

    progressgroupLayout->addWidget( countlabel, 0, 0 );

    timelabel = new TQLabel( progressgroup, "timelabel" );
    timelabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, timelabel->sizePolicy().hasHeightForWidth() ) );

    progressgroupLayout->addWidget( timelabel, 1, 0 );

    Cyclelabel = new TQLabel( progressgroup, "Cyclelabel" );
    Cyclelabel->setFrameShape( TQLabel::NoFrame );

    progressgroupLayout->addWidget( Cyclelabel, 2, 0 );

    progCount = new TQLabel( progressgroup, "progCount" );
    progCount->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, progCount->sizePolicy().hasHeightForWidth() ) );

    progressgroupLayout->addWidget( progCount, 2, 1 );

    layout32->addMultiCellWidget( progressgroup, 0, 1, 1, 1 );

    VerbQueryDlgFormLayout->addLayout( layout32, 4, 0 );
    spacer11 = new TQSpacerItem( 390, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    VerbQueryDlgFormLayout->addItem( spacer11, 3, 0 );
    languageChange();
    resize( TQSize(473, 326).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( p1sField, p2sField );
    setTabOrder( p2sField, p3sfField );
    setTabOrder( p3sfField, p3smField );
    setTabOrder( p3smField, p3snField );
    setTabOrder( p3snField, p1pField );
    setTabOrder( p1pField, p2pField );
    setTabOrder( p2pField, p3pfField );
    setTabOrder( p3pfField, p3pmField );
    setTabOrder( p3pmField, p3pnField );
    setTabOrder( p3pnField, show_all );
    setTabOrder( show_all, verify );
    setTabOrder( verify, know_it );
    setTabOrder( know_it, dont_know );

    // buddies
    p3smLabel->setBuddy( p3smField );
    p3snLabel->setBuddy( p3snField );
    p1sLabel->setBuddy( p1sField );
    p3sfLabel->setBuddy( p3sfField );
    p2sLabel->setBuddy( p2sField );
    p1pLabel->setBuddy( p1pField );
    p2pLabel->setBuddy( p2pField );
    p3pmLabel->setBuddy( p3pmField );
    p3pfLabel->setBuddy( p3pfField );
    p3pnLabel->setBuddy( p3pnField );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void VerbQueryDlgForm::languageChange()
{
    lab1->setText( tr2i18n( "Enter the correct conjugation forms." ) );
    instructionLabel->setText( tr2i18n( "Current tense is %1." ) );
    p3smLabel->setText( tr2i18n( "-" ) );
    p3snLabel->setText( tr2i18n( "-" ) );
    p1sLabel->setText( tr2i18n( "-" ) );
    p3sfLabel->setText( tr2i18n( "-" ) );
    p2sLabel->setText( tr2i18n( "-" ) );
    p1pLabel->setText( tr2i18n( "-" ) );
    p2pLabel->setText( tr2i18n( "-" ) );
    p3pmLabel->setText( tr2i18n( "-" ) );
    p3pfLabel->setText( tr2i18n( "-" ) );
    p3pnLabel->setText( tr2i18n( "-" ) );
    TextLabel2->setText( tr2i18n( "Base form:" ) );
    baseLabel->setText( tr2i18n( "-" ) );
    know_it->setText( tr2i18n( "I &Know It" ) );
    verify->setText( tr2i18n( "&Verify" ) );
    show_all->setText( tr2i18n( "Show &All" ) );
    dont_know->setText( tr2i18n( "&Do Not Know" ) );
    status->setText( TQString::null );
    progressgroup->setTitle( tr2i18n( "Progress" ) );
    countlabel->setText( tr2i18n( "Count:" ) );
    timelabel->setText( tr2i18n( "Time:" ) );
    Cyclelabel->setText( tr2i18n( "Cycle:" ) );
}

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

TQMetaObject *VerbQueryDlgForm::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_VerbQueryDlgForm( "VerbQueryDlgForm", &VerbQueryDlgForm::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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