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

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

#include "projectnewfinals.h"

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

/*
 *  Constructs a ProjectNewFinalS as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
ProjectNewFinalS::ProjectNewFinalS( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "ProjectNewFinalS" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 620, 410 ) );
    setMaximumSize( TQSize( 32000, 32000 ) );
    ProjectNewFinalSLayout = new TQGridLayout( this, 1, 1, 11, 6, "ProjectNewFinalSLayout"); 

    imagelabel = new TQLabel( this, "imagelabel" );
    imagelabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)4, 0, 0, imagelabel->sizePolicy().hasHeightForWidth() ) );
    imagelabel->setMinimumSize( TQSize( 115, 0 ) );
    imagelabel->setMaximumSize( TQSize( 115, 480 ) );
    imagelabel->setScaledContents( true );
    imagelabel->setAlignment( int( TQLabel::AlignTop | TQLabel::AlignLeft ) );

    ProjectNewFinalSLayout->addMultiCellWidget( imagelabel, 0, 1, 0, 0 );
    spacer10 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
    ProjectNewFinalSLayout->addItem( spacer10, 1, 1 );

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

    TextLabel1 = new TQLabel( this, "TextLabel1" );
    TextLabel1->setEnabled( false );

    layout11->addWidget( TextLabel1, 3, 0 );

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

    layout11->addWidget( lineAuthor, 0, 1 );

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

    TextLabel3_2_3 = new TQLabel( GroupBox4, "TextLabel3_2_3" );
    TextLabel3_2_3->setMaximumSize( TQSize( 32767, 32767 ) );

    GroupBox4Layout->addWidget( TextLabel3_2_3, 0, 0 );

    encodingCombo = new TQComboBox( false, GroupBox4, "encodingCombo" );

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

    TextLabel3_2_2_2 = new TQLabel( GroupBox4, "TextLabel3_2_2_2" );
    TextLabel3_2_2_2->setMaximumSize( TQSize( 32767, 32767 ) );

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

    dtdCombo = new TQComboBox( false, GroupBox4, "dtdCombo" );

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

    layout11->addMultiCellWidget( GroupBox4, 1, 1, 0, 4 );

    insertLocalTemplates = new TQCheckBox( this, "insertLocalTemplates" );

    layout11->addMultiCellWidget( insertLocalTemplates, 6, 6, 0, 4 );

    insertGlobalTemplates = new TQCheckBox( this, "insertGlobalTemplates" );

    layout11->addMultiCellWidget( insertGlobalTemplates, 5, 5, 0, 4 );

    checkPrefix = new TQCheckBox( this, "checkPrefix" );

    layout11->addMultiCellWidget( checkPrefix, 2, 2, 0, 4 );

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

    layout11->addWidget( TextLabel4, 0, 0 );

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

    layout11->addWidget( lineEmail, 0, 4 );
    Spacer2 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout11->addItem( Spacer2, 0, 2 );

    Line4 = new TQFrame( this, "Line4" );
    Line4->setFrameShape( TQFrame::HLine );
    Line4->setFrameShadow( TQFrame::Sunken );
    Line4->setFrameShape( TQFrame::HLine );

    layout11->addMultiCellWidget( Line4, 4, 4, 0, 4 );

    linePrefix = new TQLineEdit( this, "linePrefix" );
    linePrefix->setEnabled( false );

    layout11->addMultiCellWidget( linePrefix, 3, 3, 1, 4 );

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

    layout11->addWidget( TextLabel5, 0, 3 );

    ProjectNewFinalSLayout->addLayout( layout11, 0, 1 );
    languageChange();
    resize( TQSize(620, 418).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( checkPrefix, TQ_SIGNAL( toggled(bool) ), linePrefix, TQ_SLOT( setEnabled(bool) ) );
    connect( checkPrefix, TQ_SIGNAL( toggled(bool) ), TextLabel1, TQ_SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( lineAuthor, lineEmail );
    setTabOrder( lineEmail, dtdCombo );
    setTabOrder( dtdCombo, encodingCombo );
    setTabOrder( encodingCombo, checkPrefix );
    setTabOrder( checkPrefix, linePrefix );
    setTabOrder( linePrefix, insertGlobalTemplates );
    setTabOrder( insertGlobalTemplates, insertLocalTemplates );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ProjectNewFinalS::languageChange()
{
    imagelabel->setText( TQString::null );
    TextLabel1->setText( tr2i18n( "Prefix:" ) );
    GroupBox4->setTitle( tr2i18n( "Project Defaults" ) );
    TextLabel3_2_3->setText( tr2i18n( "Default DTD:" ) );
    TextLabel3_2_2_2->setText( tr2i18n( "Default encoding:" ) );
    insertLocalTemplates->setText( tr2i18n( "Insert &local templates" ) );
    insertGlobalTemplates->setText( tr2i18n( "Insert &global templates" ) );
    checkPrefix->setText( tr2i18n( "Use preview prefi&x" ) );
    TextLabel4->setText( tr2i18n( "Author:" ) );
    lineEmail->setText( TQString::null );
    TextLabel5->setText( tr2i18n( "Email:" ) );
}

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

TQMetaObject *ProjectNewFinalS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ProjectNewFinalS( "ProjectNewFinalS", &ProjectNewFinalS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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