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

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

#include "yahoogeneralinfowidget.h"

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

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

    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 );

    fullNameLabel_2 = new TQLabel( groupBox4, "fullNameLabel_2" );

    groupBox4Layout->addWidget( fullNameLabel_2, 0, 0 );

    fullNameLabel_2_2 = new TQLabel( groupBox4, "fullNameLabel_2_2" );

    groupBox4Layout->addWidget( fullNameLabel_2_2, 1, 0 );

    LastNameLabel = new TQLabel( groupBox4, "LastNameLabel" );

    groupBox4Layout->addWidget( LastNameLabel, 2, 0 );

    lastNameEdit = new TQLineEdit( groupBox4, "lastNameEdit" );
    lastNameEdit->setReadOnly( false );

    groupBox4Layout->addWidget( lastNameEdit, 2, 1 );

    nickNameEdit = new TQLineEdit( groupBox4, "nickNameEdit" );
    nickNameEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 2, 0, nickNameEdit->sizePolicy().hasHeightForWidth() ) );
    nickNameEdit->setReadOnly( false );

    groupBox4Layout->addWidget( nickNameEdit, 3, 1 );

    nickNameLabel = new TQLabel( groupBox4, "nickNameLabel" );

    groupBox4Layout->addWidget( nickNameLabel, 3, 0 );

    firstNameEdit = new TQLineEdit( groupBox4, "firstNameEdit" );
    firstNameEdit->setReadOnly( false );

    groupBox4Layout->addWidget( firstNameEdit, 0, 1 );

    secondNameEdit = new TQLineEdit( groupBox4, "secondNameEdit" );
    secondNameEdit->setReadOnly( false );

    groupBox4Layout->addWidget( secondNameEdit, 1, 1 );

    yahooIdLabel = new TQLabel( groupBox4, "yahooIdLabel" );

    groupBox4Layout->addWidget( yahooIdLabel, 0, 2 );

    yahooIdLabel_2 = new TQLabel( groupBox4, "yahooIdLabel_2" );

    groupBox4Layout->addWidget( yahooIdLabel_2, 1, 2 );

    birthdayLabel_2 = new TQLabel( groupBox4, "birthdayLabel_2" );

    groupBox4Layout->addWidget( birthdayLabel_2, 3, 2 );

    yahooIdEdit = new TQLineEdit( groupBox4, "yahooIdEdit" );
    yahooIdEdit->setEnabled( false );
    yahooIdEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 1, 0, yahooIdEdit->sizePolicy().hasHeightForWidth() ) );
    yahooIdEdit->setReadOnly( true );

    groupBox4Layout->addWidget( yahooIdEdit, 0, 3 );

    titleEdit = new TQLineEdit( groupBox4, "titleEdit" );
    titleEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, titleEdit->sizePolicy().hasHeightForWidth() ) );
    titleEdit->setReadOnly( false );

    groupBox4Layout->addWidget( titleEdit, 1, 3 );

    birthdayEdit = new TQLineEdit( groupBox4, "birthdayEdit" );
    birthdayEdit->setReadOnly( false );

    groupBox4Layout->addWidget( birthdayEdit, 2, 3 );

    anniversaryEdit = new TQLineEdit( groupBox4, "anniversaryEdit" );
    anniversaryEdit->setReadOnly( false );

    groupBox4Layout->addWidget( anniversaryEdit, 3, 3 );

    birthdayLabel = new TQLabel( groupBox4, "birthdayLabel" );

    groupBox4Layout->addWidget( birthdayLabel, 2, 2 );

    YahooGeneralInfoWidgetLayout->addWidget( groupBox4, 0, 0 );
    spacer4 = new TQSpacerItem( 21, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    YahooGeneralInfoWidgetLayout->addItem( spacer4, 3, 0 );

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

    textLabel6_2_2 = new TQLabel( groupBox5, "textLabel6_2_2" );

    groupBox5Layout->addWidget( textLabel6_2_2, 1, 2 );

    textLabel10_2 = new TQLabel( groupBox5, "textLabel10_2" );

    groupBox5Layout->addWidget( textLabel10_2, 6, 0 );

    emailEdit_3 = new TQLineEdit( groupBox5, "emailEdit_3" );
    emailEdit_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, emailEdit_3->sizePolicy().hasHeightForWidth() ) );
    emailEdit_3->setReadOnly( false );

    groupBox5Layout->addMultiCellWidget( emailEdit_3, 5, 5, 1, 3 );

    textLabel9 = new TQLabel( groupBox5, "textLabel9" );

    groupBox5Layout->addWidget( textLabel9, 3, 0 );

    textLabel9_3 = new TQLabel( groupBox5, "textLabel9_3" );

    groupBox5Layout->addWidget( textLabel9_3, 5, 0 );

    textLabel9_2 = new TQLabel( groupBox5, "textLabel9_2" );

    groupBox5Layout->addWidget( textLabel9_2, 4, 0 );

    emailEdit_2 = new TQLineEdit( groupBox5, "emailEdit_2" );
    emailEdit_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, emailEdit_2->sizePolicy().hasHeightForWidth() ) );
    emailEdit_2->setReadOnly( false );

    groupBox5Layout->addMultiCellWidget( emailEdit_2, 4, 4, 1, 3 );

    homepageEdit = new TQLineEdit( groupBox5, "homepageEdit" );
    homepageEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, homepageEdit->sizePolicy().hasHeightForWidth() ) );
    homepageEdit->setReadOnly( false );

    groupBox5Layout->addMultiCellWidget( homepageEdit, 6, 6, 1, 3 );

    emailEdit = new TQLineEdit( groupBox5, "emailEdit" );
    emailEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, emailEdit->sizePolicy().hasHeightForWidth() ) );
    emailEdit->setReadOnly( false );

    groupBox5Layout->addMultiCellWidget( emailEdit, 3, 3, 1, 3 );

    faxEdit = new TQLineEdit( groupBox5, "faxEdit" );
    faxEdit->setReadOnly( false );

    groupBox5Layout->addWidget( faxEdit, 1, 1 );

    textLabel7_2 = new TQLabel( groupBox5, "textLabel7_2" );

    groupBox5Layout->addWidget( textLabel7_2, 1, 0 );

    textLabel6_2_2_2 = new TQLabel( groupBox5, "textLabel6_2_2_2" );

    groupBox5Layout->addWidget( textLabel6_2_2_2, 2, 0 );

    pagerEdit = new TQLineEdit( groupBox5, "pagerEdit" );
    pagerEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, pagerEdit->sizePolicy().hasHeightForWidth() ) );
    pagerEdit->setReadOnly( false );

    groupBox5Layout->addWidget( pagerEdit, 1, 3 );

    additionalEdit = new TQLineEdit( groupBox5, "additionalEdit" );
    additionalEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, additionalEdit->sizePolicy().hasHeightForWidth() ) );
    additionalEdit->setReadOnly( false );

    groupBox5Layout->addWidget( additionalEdit, 2, 1 );

    textLabel5 = new TQLabel( groupBox5, "textLabel5" );

    groupBox5Layout->addWidget( textLabel5, 0, 0 );

    cellEdit = new TQLineEdit( groupBox5, "cellEdit" );
    cellEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, cellEdit->sizePolicy().hasHeightForWidth() ) );
    cellEdit->setReadOnly( false );

    groupBox5Layout->addWidget( cellEdit, 0, 3 );

    textLabel6_2 = new TQLabel( groupBox5, "textLabel6_2" );

    groupBox5Layout->addWidget( textLabel6_2, 0, 2 );

    phoneEdit = new TQLineEdit( groupBox5, "phoneEdit" );
    phoneEdit->setReadOnly( false );

    groupBox5Layout->addWidget( phoneEdit, 0, 1 );

    YahooGeneralInfoWidgetLayout->addWidget( groupBox5, 2, 0 );

    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 );

    textLabel1 = new TQLabel( groupBox2, "textLabel1" );

    groupBox2Layout->addWidget( textLabel1, 0, 0 );

    textLabel8 = new TQLabel( groupBox2, "textLabel8" );

    groupBox2Layout->addWidget( textLabel8, 3, 2 );

    addressEdit = new TQTextEdit( groupBox2, "addressEdit" );

    groupBox2Layout->addMultiCellWidget( addressEdit, 0, 1, 1, 3 );
    spacer7 = new TQSpacerItem( 20, 78, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    groupBox2Layout->addItem( spacer7, 1, 0 );

    textLabel4 = new TQLabel( groupBox2, "textLabel4" );

    groupBox2Layout->addWidget( textLabel4, 3, 0 );

    stateEdit = new TQLineEdit( groupBox2, "stateEdit" );
    stateEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 1, 0, stateEdit->sizePolicy().hasHeightForWidth() ) );
    stateEdit->setReadOnly( false );

    groupBox2Layout->addWidget( stateEdit, 3, 1 );

    textLabel2 = new TQLabel( groupBox2, "textLabel2" );

    groupBox2Layout->addWidget( textLabel2, 2, 2 );

    cityEdit = new TQLineEdit( groupBox2, "cityEdit" );
    cityEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 1, 0, cityEdit->sizePolicy().hasHeightForWidth() ) );
    cityEdit->setReadOnly( false );

    groupBox2Layout->addWidget( cityEdit, 2, 3 );

    countryEdit = new TQLineEdit( groupBox2, "countryEdit" );
    countryEdit->setReadOnly( false );

    groupBox2Layout->addWidget( countryEdit, 3, 3 );

    textLabel3 = new TQLabel( groupBox2, "textLabel3" );

    groupBox2Layout->addWidget( textLabel3, 2, 0 );

    zipEdit = new TQLineEdit( groupBox2, "zipEdit" );
    zipEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, zipEdit->sizePolicy().hasHeightForWidth() ) );
    zipEdit->setReadOnly( false );

    groupBox2Layout->addWidget( zipEdit, 2, 1 );

    YahooGeneralInfoWidgetLayout->addWidget( groupBox2, 1, 0 );
    languageChange();
    resize( TQSize(596, 506).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( firstNameEdit, secondNameEdit );
    setTabOrder( secondNameEdit, lastNameEdit );
    setTabOrder( lastNameEdit, nickNameEdit );
    setTabOrder( nickNameEdit, titleEdit );
    setTabOrder( titleEdit, birthdayEdit );
    setTabOrder( birthdayEdit, anniversaryEdit );
    setTabOrder( anniversaryEdit, addressEdit );
    setTabOrder( addressEdit, zipEdit );
    setTabOrder( zipEdit, cityEdit );
    setTabOrder( cityEdit, stateEdit );
    setTabOrder( stateEdit, countryEdit );
    setTabOrder( countryEdit, phoneEdit );
    setTabOrder( phoneEdit, faxEdit );
    setTabOrder( faxEdit, additionalEdit );
    setTabOrder( additionalEdit, cellEdit );
    setTabOrder( cellEdit, pagerEdit );
    setTabOrder( pagerEdit, emailEdit );
    setTabOrder( emailEdit, emailEdit_2 );
    setTabOrder( emailEdit_2, emailEdit_3 );
    setTabOrder( emailEdit_3, homepageEdit );
    setTabOrder( homepageEdit, yahooIdEdit );

    // buddies
    nickNameLabel->setBuddy( nickNameEdit );
    textLabel6_2_2->setBuddy( cellEdit );
    textLabel10_2->setBuddy( homepageEdit );
    textLabel9->setBuddy( emailEdit );
    textLabel9_3->setBuddy( emailEdit );
    textLabel9_2->setBuddy( emailEdit );
    textLabel7_2->setBuddy( faxEdit );
    textLabel6_2_2_2->setBuddy( cellEdit );
    textLabel5->setBuddy( phoneEdit );
    textLabel6_2->setBuddy( cellEdit );
    textLabel1->setBuddy( addressEdit );
    textLabel8->setBuddy( countryEdit );
    textLabel4->setBuddy( stateEdit );
    textLabel2->setBuddy( cityEdit );
    textLabel3->setBuddy( zipEdit );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void YahooGeneralInfoWidget::languageChange()
{
    groupBox4->setTitle( tr2i18n( "Personal Information" ) );
    fullNameLabel_2->setText( tr2i18n( "First name:" ) );
    fullNameLabel_2_2->setText( tr2i18n( "Second name:" ) );
    LastNameLabel->setText( tr2i18n( "Last name:" ) );
    nickNameLabel->setText( tr2i18n( "&Nickname:" ) );
    yahooIdLabel->setText( tr2i18n( "Yahoo ID:" ) );
    yahooIdLabel_2->setText( tr2i18n( "Title:" ) );
    birthdayLabel_2->setText( tr2i18n( "Anniversary:" ) );
    birthdayLabel->setText( tr2i18n( "Birthday:" ) );
    groupBox5->setTitle( tr2i18n( "Contact Information" ) );
    textLabel6_2_2->setText( tr2i18n( "Pager:" ) );
    textLabel10_2->setText( tr2i18n( "&Homepage:" ) );
    textLabel9->setText( tr2i18n( "&Email:" ) );
    textLabel9_3->setText( tr2i18n( "Email &3:" ) );
    textLabel9_2->setText( tr2i18n( "Email &2:" ) );
    textLabel7_2->setText( tr2i18n( "Fa&x:" ) );
    textLabel6_2_2_2->setText( tr2i18n( "Additional:" ) );
    textLabel5->setText( tr2i18n( "&Phone:" ) );
    textLabel6_2->setText( tr2i18n( "Ce&ll:" ) );
    phoneEdit->setText( TQString::null );
    groupBox2->setTitle( tr2i18n( "Location Information" ) );
    textLabel1->setText( tr2i18n( "&Address:" ) );
    textLabel8->setText( tr2i18n( "Countr&y:" ) );
    textLabel4->setText( tr2i18n( "&State:" ) );
    textLabel2->setText( tr2i18n( "&City:" ) );
    textLabel3->setText( tr2i18n( "&Zip:" ) );
    zipEdit->setText( TQString::null );
}

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

TQMetaObject *YahooGeneralInfoWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_YahooGeneralInfoWidget( "YahooGeneralInfoWidget", &YahooGeneralInfoWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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