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

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

#include "knewfiledlgdecl.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqframe.h>
#include <ntqlineedit.h>
#include <kpushbutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KNewFileDlgDecl as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
KNewFileDlgDecl::KNewFileDlgDecl( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "kNewFileDlgDecl" );
    setSizeGripEnabled( true );
    kNewFileDlgDeclLayout = new TQVBoxLayout( this, 11, 6, "kNewFileDlgDeclLayout"); 

    Layout10 = new TQHBoxLayout( 0, 0, 6, "Layout10"); 

    TextLabel1_2 = new TQLabel( this, "TextLabel1_2" );
    Layout10->addWidget( TextLabel1_2 );
    kNewFileDlgDeclLayout->addLayout( Layout10 );

    Line1 = new TQFrame( this, "Line1" );
    Line1->setFrameShape( TQFrame::HLine );
    Line1->setFrameShadow( TQFrame::Raised );
    Line1->setLineWidth( 1 );
    Line1->setFrameShape( TQFrame::HLine );
    kNewFileDlgDeclLayout->addWidget( Line1 );

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

    TextLabel4 = new TQLabel( this, "TextLabel4" );
    TextLabel4->setMinimumSize( TQSize( 100, 0 ) );

    layout20->addWidget( TextLabel4, 3, 0 );

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

    layout20->addWidget( userNameEdit, 0, 1 );

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

    layout20->addWidget( countyEdit, 3, 1 );

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

    layout20->addWidget( townEdit, 2, 1 );

    TextLabel2 = new TQLabel( this, "TextLabel2" );
    TextLabel2->setMinimumSize( TQSize( 100, 0 ) );

    layout20->addWidget( TextLabel2, 1, 0 );

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

    layout20->addWidget( streetEdit, 1, 1 );

    TextLabel7 = new TQLabel( this, "TextLabel7" );
    TextLabel7->setMinimumSize( TQSize( 100, 0 ) );

    layout20->addWidget( TextLabel7, 6, 0 );

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

    layout20->addWidget( TextLabel1, 0, 0 );

    TextLabel6 = new TQLabel( this, "TextLabel6" );
    TextLabel6->setMinimumSize( TQSize( 100, 0 ) );

    layout20->addWidget( TextLabel6, 5, 0 );

    TextLabel3 = new TQLabel( this, "TextLabel3" );
    TextLabel3->setMinimumSize( TQSize( 100, 0 ) );

    layout20->addWidget( TextLabel3, 2, 0 );

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

    layout20->addWidget( emailEdit, 6, 1 );

    TextLabel5 = new TQLabel( this, "TextLabel5" );
    TextLabel5->setMinimumSize( TQSize( 100, 0 ) );

    layout20->addWidget( TextLabel5, 4, 0 );

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

    layout20->addWidget( telephoneEdit, 5, 1 );

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

    layout20->addWidget( postcodeEdit, 4, 1 );
    kNewFileDlgDeclLayout->addLayout( layout20 );

    layout22 = new TQHBoxLayout( 0, 0, 6, "layout22"); 

    tdeabcBtn = new KPushButton( this, "tdeabcBtn" );
    layout22->addWidget( tdeabcBtn );
    spacer11 = new TQSpacerItem( 305, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout22->addItem( spacer11 );
    kNewFileDlgDeclLayout->addLayout( layout22 );
    spacer2 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    kNewFileDlgDeclLayout->addItem( spacer2 );

    layout10 = new TQHBoxLayout( 0, 0, 6, "layout10"); 
    Spacer1 = new TQSpacerItem( 360, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout10->addItem( Spacer1 );

    okBtn = new KPushButton( this, "okBtn" );
    okBtn->setAutoDefault( true );
    okBtn->setDefault( true );
    layout10->addWidget( okBtn );

    cancelBtn = new KPushButton( this, "cancelBtn" );
    layout10->addWidget( cancelBtn );
    kNewFileDlgDeclLayout->addLayout( layout10 );
    languageChange();
    resize( TQSize(546, 448).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( userNameEdit, streetEdit );
    setTabOrder( streetEdit, townEdit );
    setTabOrder( townEdit, countyEdit );
    setTabOrder( countyEdit, postcodeEdit );
    setTabOrder( postcodeEdit, telephoneEdit );
    setTabOrder( telephoneEdit, emailEdit );
    setTabOrder( emailEdit, tdeabcBtn );
    setTabOrder( tdeabcBtn, okBtn );
    setTabOrder( okBtn, cancelBtn );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KNewFileDlgDecl::languageChange()
{
    setCaption( tr2i18n( "New File Dialog" ) );
    TextLabel1_2->setText( tr2i18n( "Use this dialog to enter personal information about yourself.\n"
"\n"
"All information is optional and is provided to personalize\n"
"your KMyMoney file." ) );
    TextLabel4->setText( tr2i18n( "County/State:" ) );
    TextLabel2->setText( tr2i18n( "Street:" ) );
    TextLabel7->setText( tr2i18n( "Email:" ) );
    TextLabel1->setText( tr2i18n( "Your name:" ) );
    TextLabel6->setText( tr2i18n( "Telephone:" ) );
    TextLabel3->setText( tr2i18n( "Town:" ) );
    TextLabel5->setText( tr2i18n( "Postal Code:" ) );
    tdeabcBtn->setText( tr2i18n( "Load from Addressbook" ) );
    okBtn->setText( tr2i18n( "OK" ) );
    cancelBtn->setText( tr2i18n( "Cancel" ) );
}

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

TQMetaObject *KNewFileDlgDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KNewFileDlgDecl( "KNewFileDlgDecl", &KNewFileDlgDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KNewFileDlgDecl::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KNewFileDlgDecl", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KNewFileDlgDecl.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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