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

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

#include "LangPropPageForm.h"

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

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

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

    unnamed = new TQLabel( GroupBox2, "unnamed" );
    unnamed->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, unnamed->sizePolicy().hasHeightForWidth() ) );

    GroupBox2Layout->addWidget( unnamed, 0, 0 );

    l_langcode = new TQLabel( GroupBox2, "l_langcode" );
    l_langcode->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, l_langcode->sizePolicy().hasHeightForWidth() ) );
    l_langcode->setMinimumSize( TQSize( 70, 0 ) );
    l_langcode->setFrameShape( TQLabel::WinPanel );
    l_langcode->setFrameShadow( TQLabel::Sunken );

    GroupBox2Layout->addWidget( l_langcode, 0, 1 );
    Spacer5 = new TQSpacerItem( 20, 20, TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum );
    GroupBox2Layout->addItem( Spacer5, 0, 2 );

    GroupBox3 = new TQGroupBox( GroupBox2, "GroupBox3" );
    GroupBox3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, GroupBox3->sizePolicy().hasHeightForWidth() ) );
    GroupBox3->setColumnLayout(0, TQt::Vertical );
    GroupBox3->layout()->setSpacing( 6 );
    GroupBox3->layout()->setMargin( 11 );
    GroupBox3Layout = new TQGridLayout( GroupBox3->layout() );
    GroupBox3Layout->setAlignment( TQt::AlignTop );

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

    GroupBox3Layout->addWidget( female_label, 1, 0 );

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

    GroupBox3Layout->addWidget( male_label, 2, 0 );

    indef_male = new TQLineEdit( GroupBox3, "indef_male" );
    indef_male->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, indef_male->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addWidget( indef_male, 2, 2 );

    TextLabel3 = new TQLabel( GroupBox3, "TextLabel3" );
    TextLabel3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addWidget( TextLabel3, 0, 1 );

    def_male = new TQLineEdit( GroupBox3, "def_male" );
    def_male->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, def_male->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addWidget( def_male, 2, 1 );

    indef_female = new TQLineEdit( GroupBox3, "indef_female" );
    indef_female->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, indef_female->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addWidget( indef_female, 1, 2 );

    def_female = new TQLineEdit( GroupBox3, "def_female" );
    def_female->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, def_female->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addWidget( def_female, 1, 1 );
    Spacer8 = new TQSpacerItem( 50, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    GroupBox3Layout->addItem( Spacer8, 0, 0 );

    def_natural = new TQLineEdit( GroupBox3, "def_natural" );
    def_natural->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, def_natural->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addWidget( def_natural, 3, 1 );

    indef_natural = new TQLineEdit( GroupBox3, "indef_natural" );
    indef_natural->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, indef_natural->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addWidget( indef_natural, 3, 2 );

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

    GroupBox3Layout->addWidget( natural_label, 3, 0 );

    TextLabel4 = new TQLabel( GroupBox3, "TextLabel4" );

    GroupBox3Layout->addWidget( TextLabel4, 0, 2 );

    GroupBox2Layout->addMultiCellWidget( GroupBox3, 1, 1, 0, 2 );

    GroupBox4 = new TQGroupBox( GroupBox2, "GroupBox4" );
    GroupBox4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, GroupBox4->sizePolicy().hasHeightForWidth() ) );
    GroupBox4->setColumnLayout(0, TQt::Vertical );
    GroupBox4->layout()->setSpacing( 6 );
    GroupBox4->layout()->setMargin( 11 );
    GroupBox4Layout = new TQGridLayout( GroupBox4->layout() );
    GroupBox4Layout->setAlignment( TQt::AlignTop );

    pers1_label = new TQLabel( GroupBox4, "pers1_label" );

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

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

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

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

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

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

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

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

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

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

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

    thirdP_common = new TQCheckBox( GroupBox4, "thirdP_common" );
    thirdP_common->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, thirdP_common->sizePolicy().hasHeightForWidth() ) );

    GroupBox4Layout->addWidget( thirdP_common, 3, 2 );

    female_c_label = new TQLabel( GroupBox4, "female_c_label" );

    GroupBox4Layout->addWidget( female_c_label, 4, 0 );

    male_c_label = new TQLabel( GroupBox4, "male_c_label" );

    GroupBox4Layout->addWidget( male_c_label, 5, 0 );

    natural_c_label = new TQLabel( GroupBox4, "natural_c_label" );

    GroupBox4Layout->addWidget( natural_c_label, 6, 0 );

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

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

    thirdS_common = new TQCheckBox( GroupBox4, "thirdS_common" );
    thirdS_common->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, thirdS_common->sizePolicy().hasHeightForWidth() ) );

    GroupBox4Layout->addWidget( thirdS_common, 3, 1 );

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

    GroupBox4Layout->addWidget( TextLabel4_2_2, 0, 1 );
    Spacer9 = new TQSpacerItem( 50, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    GroupBox4Layout->addItem( Spacer9, 0, 0 );

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

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

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

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

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

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

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

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

    first_singular = new TQLineEdit( GroupBox4, "first_singular" );
    first_singular->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, first_singular->sizePolicy().hasHeightForWidth() ) );

    GroupBox4Layout->addWidget( first_singular, 1, 1 );

    first_plural = new TQLineEdit( GroupBox4, "first_plural" );
    first_plural->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, first_plural->sizePolicy().hasHeightForWidth() ) );

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

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

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

    GroupBox2Layout->addMultiCellWidget( GroupBox4, 2, 2, 0, 2 );

    LangPropPageLayout->addWidget( GroupBox2, 0, 0 );
    languageChange();
    resize( TQSize(504, 444).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( def_female, def_male );
    setTabOrder( def_male, def_natural );
    setTabOrder( def_natural, indef_female );
    setTabOrder( indef_female, indef_male );
    setTabOrder( indef_male, indef_natural );
    setTabOrder( indef_natural, first_singular );
    setTabOrder( first_singular, second_singular );
    setTabOrder( second_singular, thirdS_common );
    setTabOrder( thirdS_common, thirdF_singular );
    setTabOrder( thirdF_singular, thirdM_singular );
    setTabOrder( thirdM_singular, thirdN_singular );
    setTabOrder( thirdN_singular, first_plural );
    setTabOrder( first_plural, second_plural );
    setTabOrder( second_plural, thirdP_common );
    setTabOrder( thirdP_common, thirdF_plural );
    setTabOrder( thirdF_plural, thirdM_plural );
    setTabOrder( thirdM_plural, thirdN_plural );

    // buddies
    female_label->setBuddy( def_female );
    male_label->setBuddy( def_male );
    natural_label->setBuddy( def_natural );
    pers1_label->setBuddy( first_singular );
    pers2_label->setBuddy( second_singular );
    female_c_label->setBuddy( thirdF_singular );
    male_c_label->setBuddy( thirdM_singular );
    natural_c_label->setBuddy( thirdN_singular );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void LangPropPageForm::languageChange()
{
    setCaption( tr2i18n( "-" ) );
    GroupBox2->setTitle( tr2i18n( "Language Elements" ) );
    unnamed->setText( tr2i18n( "Language code (ISO 639):" ) );
    GroupBox3->setTitle( tr2i18n( "Articles" ) );
    female_label->setText( tr2i18n( "&Female:" ) );
    male_label->setText( tr2i18n( "&Male:" ) );
    TextLabel3->setText( tr2i18n( "Definite" ) );
    natural_label->setText( tr2i18n( "&Neutral:" ) );
    TextLabel4->setText( tr2i18n( "Indefinite" ) );
    GroupBox4->setTitle( tr2i18n( "Conjugation" ) );
    pers1_label->setText( tr2i18n( "&1. Person:" ) );
    pers2_label->setText( tr2i18n( "&2. Person:" ) );
    pers3_label->setText( tr2i18n( "3. Person:" ) );
    thirdP_common->setText( tr2i18n( "C&ommon" ) );
    female_c_label->setText( tr2i18n( "F&emale:" ) );
    male_c_label->setText( tr2i18n( "M&ale:" ) );
    natural_c_label->setText( tr2i18n( "Neu&tral:" ) );
    TextLabel4_2->setText( tr2i18n( "Plural" ) );
    thirdS_common->setText( tr2i18n( "&Common" ) );
    TextLabel4_2_2->setText( tr2i18n( "Singular" ) );
}

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

TQMetaObject *LangPropPageForm::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_LangPropPageForm( "LangPropPageForm", &LangPropPageForm::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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