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

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

#include "icqgeneralinfo.h"

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

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

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

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

    groupBox2Layout->addWidget( textLabel2, 1, 0 );

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

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

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

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

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

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

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

    groupBox2Layout->addWidget( cityEdit, 1, 1 );

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

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

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

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

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

    groupBox2Layout->addWidget( textLabel9, 5, 0 );

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

    groupBox2Layout->addMultiCellWidget( emailEdit, 5, 5, 1, 3 );

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

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

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

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

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

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

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

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

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

    groupBox2Layout->addWidget( textLabel7_2, 4, 0 );

    faxEdit = new TQLineEdit( groupBox2, "faxEdit" );
    faxEdit->setReadOnly( true );

    groupBox2Layout->addWidget( faxEdit, 4, 1 );

    phoneEdit = new TQLineEdit( groupBox2, "phoneEdit" );
    phoneEdit->setReadOnly( true );

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

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

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

    addressEdit = new TQLineEdit( groupBox2, "addressEdit" );
    addressEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, addressEdit->sizePolicy().hasHeightForWidth() ) );
    addressEdit->setReadOnly( true );

    groupBox2Layout->addMultiCellWidget( addressEdit, 0, 0, 1, 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( true );

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

    ICQGeneralInfoWidgetLayout->addWidget( groupBox2, 1, 0 );

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

    uinEdit = new TQLineEdit( groupBox4, "uinEdit" );
    uinEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 1, 0, uinEdit->sizePolicy().hasHeightForWidth() ) );
    uinEdit->setReadOnly( true );

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

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

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

    ipEdit = new TQLineEdit( groupBox4, "ipEdit" );
    ipEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, ipEdit->sizePolicy().hasHeightForWidth() ) );
    ipEdit->setMinimumSize( TQSize( 125, 0 ) );
    ipEdit->setReadOnly( true );

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

    timezoneEdit = new TQLineEdit( groupBox4, "timezoneEdit" );
    timezoneEdit->setReadOnly( true );

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

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

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

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

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

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

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

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

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

    ageSpinBox = new TQSpinBox( groupBox4, "ageSpinBox" );

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

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

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

    birthday = new TQLineEdit( groupBox4, "birthday" );
    birthday->setReadOnly( true );

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

    fullNameEdit = new TQLineEdit( groupBox4, "fullNameEdit" );
    fullNameEdit->setReadOnly( true );

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

    genderEdit = new TQLineEdit( groupBox4, "genderEdit" );
    genderEdit->setReadOnly( true );

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

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

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

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

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

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

    groupBox4Layout->addWidget( maritalLabel, 4, 0 );

    textLabel10 = new TQLabel( groupBox4, "textLabel10" );
    textLabel10->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, textLabel10->sizePolicy().hasHeightForWidth() ) );

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

    marital = new TQLineEdit( groupBox4, "marital" );
    marital->setReadOnly( true );

    groupBox4Layout->addMultiCellWidget( marital, 4, 4, 1, 3 );

    ICQGeneralInfoWidgetLayout->addWidget( groupBox4, 0, 0 );

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

    oStateEdit = new TQLineEdit( groupBox3, "oStateEdit" );
    oStateEdit->setReadOnly( true );

    groupBox3Layout->addWidget( oStateEdit, 1, 1 );

    oCountryEdit = new TQLineEdit( groupBox3, "oCountryEdit" );
    oCountryEdit->setReadOnly( true );

    groupBox3Layout->addWidget( oCountryEdit, 2, 1 );

    oCityEdit = new TQLineEdit( groupBox3, "oCityEdit" );
    oCityEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, oCityEdit->sizePolicy().hasHeightForWidth() ) );
    oCityEdit->setReadOnly( true );

    groupBox3Layout->addWidget( oCityEdit, 0, 1 );

    textLabel2_2 = new TQLabel( groupBox3, "textLabel2_2" );

    groupBox3Layout->addWidget( textLabel2_2, 0, 0 );

    textLabel3_2 = new TQLabel( groupBox3, "textLabel3_2" );

    groupBox3Layout->addWidget( textLabel3_2, 2, 0 );

    textLabel1_2 = new TQLabel( groupBox3, "textLabel1_2" );

    groupBox3Layout->addWidget( textLabel1_2, 1, 0 );

    ICQGeneralInfoWidgetLayout->addWidget( groupBox3, 2, 0 );
    spacer4 = new TQSpacerItem( 21, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    ICQGeneralInfoWidgetLayout->addItem( spacer4, 3, 0 );
    languageChange();
    resize( TQSize(488, 572).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( nickNameEdit, fullNameEdit );
    setTabOrder( fullNameEdit, genderEdit );
    setTabOrder( genderEdit, uinEdit );
    setTabOrder( uinEdit, ipEdit );
    setTabOrder( ipEdit, timezoneEdit );
    setTabOrder( timezoneEdit, ageSpinBox );
    setTabOrder( ageSpinBox, addressEdit );
    setTabOrder( addressEdit, cityEdit );
    setTabOrder( cityEdit, stateEdit );
    setTabOrder( stateEdit, zipEdit );
    setTabOrder( zipEdit, countryEdit );
    setTabOrder( countryEdit, phoneEdit );
    setTabOrder( phoneEdit, faxEdit );
    setTabOrder( faxEdit, cellEdit );
    setTabOrder( cellEdit, emailEdit );
    setTabOrder( emailEdit, homepageEdit );

    // buddies
    textLabel2->setBuddy( cityEdit );
    textLabel1->setBuddy( addressEdit );
    textLabel5->setBuddy( phoneEdit );
    textLabel4->setBuddy( stateEdit );
    textLabel8->setBuddy( countryEdit );
    textLabel9->setBuddy( emailEdit );
    textLabel10_2->setBuddy( homepageEdit );
    textLabel7_2->setBuddy( faxEdit );
    textLabel6_2->setBuddy( cellEdit );
    textLabel3->setBuddy( zipEdit );
    fullNameLabel->setBuddy( fullNameEdit );
    nickNameLabel->setBuddy( nickNameEdit );
    uinLabel->setBuddy( uinEdit );
    birthdayLabel->setBuddy( birthday );
    textLabel6->setBuddy( genderEdit );
    ipLabel->setBuddy( ipEdit );
    textLabel7->setBuddy( timezoneEdit );
    textLabel10->setBuddy( ageSpinBox );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ICQGeneralInfoWidget::languageChange()
{
    groupBox2->setTitle( tr2i18n( "Location && Contact Information" ) );
    textLabel2->setText( tr2i18n( "&City:" ) );
    textLabel1->setText( tr2i18n( "&Address:" ) );
    textLabel5->setText( tr2i18n( "&Phone:" ) );
    textLabel4->setText( tr2i18n( "&State:" ) );
    textLabel8->setText( tr2i18n( "Countr&y:" ) );
    textLabel9->setText( tr2i18n( "&Email:" ) );
    textLabel10_2->setText( tr2i18n( "&Homepage:" ) );
    textLabel7_2->setText( tr2i18n( "Fa&x:" ) );
    phoneEdit->setText( TQString::null );
    textLabel6_2->setText( tr2i18n( "Ce&ll:" ) );
    textLabel3->setText( tr2i18n( "&Zip:" ) );
    zipEdit->setText( TQString::null );
    groupBox4->setTitle( tr2i18n( "Personal Information" ) );
    fullNameLabel->setText( tr2i18n( "&Full name:" ) );
    ipEdit->setText( TQString::null );
    nickNameLabel->setText( tr2i18n( "&Nickname:" ) );
    uinLabel->setText( tr2i18n( "&UIN #:" ) );
    birthdayLabel->setText( tr2i18n( "&Birthday:" ) );
    textLabel6->setText( tr2i18n( "Gen&der:" ) );
    ipLabel->setText( tr2i18n( "&IP:" ) );
    textLabel7->setText( tr2i18n( "&Timezone:" ) );
    maritalLabel->setText( tr2i18n( "Marital status:" ) );
    textLabel10->setText( tr2i18n( "A&ge:" ) );
    groupBox3->setTitle( tr2i18n( "Origin" ) );
    textLabel2_2->setText( tr2i18n( "City:" ) );
    textLabel3_2->setText( tr2i18n( "Country:" ) );
    textLabel1_2->setText( tr2i18n( "State:" ) );
}

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

TQMetaObject *ICQGeneralInfoWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ICQGeneralInfoWidget( "ICQGeneralInfoWidget", &ICQGeneralInfoWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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