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

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

#include "AuxInfoEntryPageForm.h"

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

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

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

    examp_line = new TQMultiLineEdit( GroupBox1, "examp_line" );
    examp_line->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)5, 0, 0, examp_line->sizePolicy().hasHeightForWidth() ) );
    examp_line->setMaximumSize( TQSize( 32767, 80 ) );

    GroupBox1Layout->addWidget( examp_line, 2, 1 );

    remark_line = new TQMultiLineEdit( GroupBox1, "remark_line" );
    remark_line->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)5, 0, 0, remark_line->sizePolicy().hasHeightForWidth() ) );
    remark_line->setMaximumSize( TQSize( 32767, 80 ) );

    GroupBox1Layout->addWidget( remark_line, 3, 1 );

    para_line = new TQMultiLineEdit( GroupBox1, "para_line" );
    para_line->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)5, 0, 0, para_line->sizePolicy().hasHeightForWidth() ) );
    para_line->setMaximumSize( TQSize( 32767, 80 ) );

    GroupBox1Layout->addWidget( para_line, 4, 1 );

    synonym_label = new TQLabel( GroupBox1, "synonym_label" );

    GroupBox1Layout->addWidget( synonym_label, 0, 0 );

    antonym_label = new TQLabel( GroupBox1, "antonym_label" );

    GroupBox1Layout->addWidget( antonym_label, 1, 0 );

    examp_label = new TQLabel( GroupBox1, "examp_label" );

    GroupBox1Layout->addWidget( examp_label, 2, 0 );

    remark_label = new TQLabel( GroupBox1, "remark_label" );

    GroupBox1Layout->addWidget( remark_label, 3, 0 );

    para_label = new TQLabel( GroupBox1, "para_label" );

    GroupBox1Layout->addWidget( para_label, 4, 0 );

    synonym_line = new TQMultiLineEdit( GroupBox1, "synonym_line" );
    synonym_line->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)5, 0, 0, synonym_line->sizePolicy().hasHeightForWidth() ) );
    synonym_line->setMaximumSize( TQSize( 32767, 80 ) );
    synonym_line->setCursor( TQCursor( 0 ) );

    GroupBox1Layout->addWidget( synonym_line, 0, 1 );

    antonym_line = new TQMultiLineEdit( GroupBox1, "antonym_line" );
    antonym_line->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)5, 0, 0, antonym_line->sizePolicy().hasHeightForWidth() ) );
    antonym_line->setMaximumSize( TQSize( 32767, 80 ) );

    GroupBox1Layout->addWidget( antonym_line, 1, 1 );

    AuxInfoEntryPageFormLayout->addWidget( GroupBox1, 0, 0 );
    languageChange();
    resize( TQSize(576, 494).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( synonym_line, antonym_line );
    setTabOrder( antonym_line, examp_line );
    setTabOrder( examp_line, remark_line );
    setTabOrder( remark_line, para_line );

    // buddies
    synonym_label->setBuddy( synonym_line );
    antonym_label->setBuddy( antonym_line );
    examp_label->setBuddy( examp_line );
    remark_label->setBuddy( remark_line );
    para_label->setBuddy( para_line );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AuxInfoEntryPageForm::languageChange()
{
    setCaption( tr2i18n( "-" ) );
    GroupBox1->setTitle( tr2i18n( "Additional Properties" ) );
    synonym_label->setText( tr2i18n( "S&ynonyms:" ) );
    antonym_label->setText( tr2i18n( "Ant&onyms:" ) );
    examp_label->setText( tr2i18n( "E&xample:" ) );
    remark_label->setText( tr2i18n( "&Remark:" ) );
    para_label->setText( tr2i18n( "&Paraphrase:" ) );
    synonym_line->setText( TQString::null );
}

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

TQMetaObject *AuxInfoEntryPageForm::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_AuxInfoEntryPageForm( "AuxInfoEntryPageForm", &AuxInfoEntryPageForm::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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