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

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

#include "TenseEntryPageForm.h"

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

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

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

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

    thirdN_plural = new TQLineEdit( GroupBox8, "thirdN_plural" );
    thirdN_plural->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, thirdN_plural->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( thirdN_plural, 6, 2 );

    third_p_common = new TQCheckBox( GroupBox8, "third_p_common" );

    layout3->addWidget( third_p_common, 3, 2 );

    second_plural = new TQLineEdit( GroupBox8, "second_plural" );
    second_plural->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, second_plural->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( second_plural, 2, 2 );

    thirdM_plural = new TQLineEdit( GroupBox8, "thirdM_plural" );
    thirdM_plural->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, thirdM_plural->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( thirdM_plural, 5, 2 );

    third_s_common = new TQCheckBox( GroupBox8, "third_s_common" );

    layout3->addWidget( third_s_common, 3, 1 );

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

    layout3->addWidget( pers1_label, 1, 0 );

    female_label = new TQLabel( GroupBox8, "female_label" );

    layout3->addWidget( female_label, 4, 0 );

    TextLabel4_2_2 = new TQLabel( GroupBox8, "TextLabel4_2_2" );

    layout3->addWidget( TextLabel4_2_2, 0, 1 );

    thirdF_plural = new TQLineEdit( GroupBox8, "thirdF_plural" );
    thirdF_plural->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, thirdF_plural->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( thirdF_plural, 4, 2 );

    thirdF_singular = new TQLineEdit( GroupBox8, "thirdF_singular" );
    thirdF_singular->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, thirdF_singular->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( thirdF_singular, 4, 1 );

    pers3_label = new TQLabel( GroupBox8, "pers3_label" );

    layout3->addWidget( pers3_label, 3, 0 );

    first_plural = new TQLineEdit( GroupBox8, "first_plural" );
    first_plural->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, first_plural->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( first_plural, 1, 2 );

    thirdM_singular = new TQLineEdit( GroupBox8, "thirdM_singular" );
    thirdM_singular->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, thirdM_singular->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( thirdM_singular, 5, 1 );

    first_singular = new TQLineEdit( GroupBox8, "first_singular" );
    first_singular->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, first_singular->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( first_singular, 1, 1 );
    Spacer6 = new TQSpacerItem( 80, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout3->addItem( Spacer6, 0, 0 );

    thirdN_singular = new TQLineEdit( GroupBox8, "thirdN_singular" );
    thirdN_singular->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, thirdN_singular->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( thirdN_singular, 6, 1 );

    natural_label = new TQLabel( GroupBox8, "natural_label" );

    layout3->addWidget( natural_label, 6, 0 );

    male_label = new TQLabel( GroupBox8, "male_label" );

    layout3->addWidget( male_label, 5, 0 );

    second_singular = new TQLineEdit( GroupBox8, "second_singular" );
    second_singular->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, second_singular->sizePolicy().hasHeightForWidth() ) );

    layout3->addWidget( second_singular, 2, 1 );

    pers2_label = new TQLabel( GroupBox8, "pers2_label" );

    layout3->addWidget( pers2_label, 2, 0 );

    TextLabel4_2 = new TQLabel( GroupBox8, "TextLabel4_2" );

    layout3->addWidget( TextLabel4_2, 0, 2 );

    GroupBox8Layout->addLayout( layout3, 1, 0 );

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

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

    layout5->addWidget( tenselabel, 0, 0 );

    b_next = new TQPushButton( GroupBox8, "b_next" );
    b_next->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, b_next->sizePolicy().hasHeightForWidth() ) );

    layout5->addWidget( b_next, 0, 2 );

    tensebox = new TQComboBox( false, GroupBox8, "tensebox" );
    tensebox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, tensebox->sizePolicy().hasHeightForWidth() ) );

    layout5->addWidget( tensebox, 0, 1 );

    GroupBox8Layout->addLayout( layout5, 0, 0 );

    TenseEntryPageFormLayout->addWidget( GroupBox8, 0, 0 );
    languageChange();
    resize( TQSize(546, 270).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( tensebox, b_next );
    setTabOrder( b_next, first_singular );
    setTabOrder( first_singular, second_singular );
    setTabOrder( second_singular, first_plural );
    setTabOrder( first_plural, second_plural );
    setTabOrder( second_plural, third_s_common );
    setTabOrder( third_s_common, thirdF_singular );
    setTabOrder( thirdF_singular, thirdM_singular );
    setTabOrder( thirdM_singular, thirdN_singular );
    setTabOrder( thirdN_singular, third_p_common );
    setTabOrder( third_p_common, thirdF_plural );
    setTabOrder( thirdF_plural, thirdM_plural );
    setTabOrder( thirdM_plural, thirdN_plural );

    // buddies
    pers1_label->setBuddy( first_singular );
    female_label->setBuddy( thirdF_singular );
    pers3_label->setBuddy( third_s_common );
    natural_label->setBuddy( thirdN_singular );
    male_label->setBuddy( thirdM_singular );
    pers2_label->setBuddy( second_singular );
    tenselabel->setBuddy( tensebox );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void TenseEntryPageForm::languageChange()
{
    setCaption( tr2i18n( "-" ) );
    GroupBox8->setTitle( tr2i18n( "Conjugation of Verbs" ) );
    third_p_common->setText( tr2i18n( "C&ommon" ) );
    third_s_common->setText( tr2i18n( "&Common" ) );
    pers1_label->setText( tr2i18n( "&1. Person:" ) );
    female_label->setText( tr2i18n( "&Female:" ) );
    TextLabel4_2_2->setText( tr2i18n( "Singular" ) );
    pers3_label->setText( tr2i18n( "&3. Person:" ) );
    natural_label->setText( tr2i18n( "&Neutral:" ) );
    male_label->setText( tr2i18n( "&Male:" ) );
    pers2_label->setText( tr2i18n( "&2. Person:" ) );
    TextLabel4_2->setText( tr2i18n( "Plural" ) );
    tenselabel->setText( tr2i18n( "&Tense:" ) );
    b_next->setText( tr2i18n( "Ne&xt" ) );
}

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

TQMetaObject *TenseEntryPageForm::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TenseEntryPageForm( "TenseEntryPageForm", &TenseEntryPageForm::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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