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

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

#include "msninfo.h"

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

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

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

    TextLabel2_2 = new TQLabel( this, "TextLabel2_2" );
    TextLabel2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)4, 0, 0, TextLabel2_2->sizePolicy().hasHeightForWidth() ) );
    Layout22->addWidget( TextLabel2_2 );

    m_id = new TQLineEdit( this, "m_id" );
    m_id->setReadOnly( true );
    Layout22->addWidget( m_id );
    MSNInfoLayout->addLayout( Layout22 );

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

    TextLabel2_2_2 = new TQLabel( this, "TextLabel2_2_2" );
    TextLabel2_2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)4, 0, 0, TextLabel2_2_2->sizePolicy().hasHeightForWidth() ) );
    Layout22_2->addWidget( TextLabel2_2_2 );

    m_displayName = new TQLineEdit( this, "m_displayName" );
    m_displayName->setReadOnly( true );
    Layout22_2->addWidget( m_displayName );
    MSNInfoLayout->addLayout( Layout22_2 );

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    layout3->addWidget( textLabel1 );

    m_personalMessage = new TQLineEdit( this, "m_personalMessage" );
    m_personalMessage->setReadOnly( true );
    layout3->addWidget( m_personalMessage );
    MSNInfoLayout->addLayout( layout3 );

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

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

    GroupBox2Layout->addWidget( TextLabel5, 1, 0 );

    TextLabel6 = new TQLabel( GroupBox2, "TextLabel6" );

    GroupBox2Layout->addWidget( TextLabel6, 0, 0 );

    m_phw = new TQLineEdit( GroupBox2, "m_phw" );
    m_phw->setReadOnly( true );

    GroupBox2Layout->addWidget( m_phw, 0, 1 );

    m_phh = new TQLineEdit( GroupBox2, "m_phh" );
    m_phh->setReadOnly( true );

    GroupBox2Layout->addWidget( m_phh, 1, 1 );

    TextLabel7 = new TQLabel( GroupBox2, "TextLabel7" );

    GroupBox2Layout->addWidget( TextLabel7, 2, 0 );

    m_phm = new TQLineEdit( GroupBox2, "m_phm" );
    m_phm->setReadOnly( true );

    GroupBox2Layout->addWidget( m_phm, 2, 1 );
    MSNInfoLayout->addWidget( GroupBox2 );

    m_reversed = new TQCheckBox( this, "m_reversed" );
    MSNInfoLayout->addWidget( m_reversed );
    Spacer10 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    MSNInfoLayout->addItem( Spacer10 );
    languageChange();
    resize( TQSize(457, 360).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MSNInfo::languageChange()
{
    TextLabel2_2->setText( tr2i18n( "Email address:" ) );
    TextLabel2_2_2->setText( tr2i18n( "Display name:" ) );
    textLabel1->setText( tr2i18n( "Personal message:" ) );
    GroupBox2->setTitle( tr2i18n( "Phones" ) );
    TextLabel5->setText( tr2i18n( "Home:" ) );
    TextLabel6->setText( tr2i18n( "Work:" ) );
    TextLabel7->setText( tr2i18n( "Mobile:" ) );
    m_reversed->setText( tr2i18n( "I am on &the contact list of this contact" ) );
    TQToolTip::add( m_reversed, tr2i18n( "Show whether you are on the contact list of this user" ) );
    TQWhatsThis::add( m_reversed, tr2i18n( "If this box is checked, you are on this user's contact list.\n"
"If not, the user has not added you to their list, or has removed you." ) );
}

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

TQMetaObject *MSNInfo::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_MSNInfo( "MSNInfo", &MSNInfo::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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