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

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

#include "TitlePageForm.h"

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

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

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

    label_title = new TQLabel( tiltle_group, "label_title" );

    tiltle_groupLayout->addWidget( label_title, 0, 0 );

    e_title = new TQLineEdit( tiltle_group, "e_title" );
    e_title->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)3, 0, 0, e_title->sizePolicy().hasHeightForWidth() ) );

    tiltle_groupLayout->addWidget( e_title, 0, 1 );

    label_author = new TQLabel( tiltle_group, "label_author" );

    tiltle_groupLayout->addWidget( label_author, 1, 0 );

    label_remark = new TQLabel( tiltle_group, "label_remark" );

    tiltle_groupLayout->addWidget( label_remark, 3, 0 );

    label_license = new TQLabel( tiltle_group, "label_license" );

    tiltle_groupLayout->addWidget( label_license, 2, 0 );
    Spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tiltle_groupLayout->addItem( Spacer3, 4, 0 );
    Spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tiltle_groupLayout->addItem( Spacer2, 4, 1 );

    e_remark = new TQMultiLineEdit( tiltle_group, "e_remark" );
    e_remark->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, e_remark->sizePolicy().hasHeightForWidth() ) );

    tiltle_groupLayout->addWidget( e_remark, 3, 1 );

    e_author = new TQMultiLineEdit( tiltle_group, "e_author" );
    e_author->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, e_author->sizePolicy().hasHeightForWidth() ) );

    tiltle_groupLayout->addWidget( e_author, 1, 1 );

    e_license = new TQLineEdit( tiltle_group, "e_license" );
    e_license->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)3, 0, 0, e_license->sizePolicy().hasHeightForWidth() ) );

    tiltle_groupLayout->addWidget( e_license, 2, 1 );
    TitlePageLayout->addWidget( tiltle_group );
    languageChange();
    resize( TQSize(564, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( e_title, e_author );
    setTabOrder( e_author, e_license );
    setTabOrder( e_license, e_remark );

    // buddies
    label_title->setBuddy( e_title );
    label_author->setBuddy( e_author );
    label_remark->setBuddy( e_remark );
    label_license->setBuddy( e_license );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void TitlePageForm::languageChange()
{
    setCaption( tr2i18n( "-" ) );
    tiltle_group->setTitle( tr2i18n( "General Document Properties" ) );
    label_title->setText( tr2i18n( "&Title:" ) );
    label_author->setText( tr2i18n( "&Authors:" ) );
    label_remark->setText( tr2i18n( "&Remark:" ) );
    label_license->setText( tr2i18n( "&License:" ) );
}

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

TQMetaObject *TitlePageForm::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TitlePageForm( "TitlePageForm", &TitlePageForm::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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