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

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

#include "personalinvitewidget.h"

#include <ntqvariant.h>
#include <kactivelabel.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a PersonalInviteWidget as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
PersonalInviteWidget::PersonalInviteWidget( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "Form1" );
    Form1Layout = new TQGridLayout( this, 1, 1, 0, KDialog::spacingHint(), "Form1Layout"); 
    Form1Layout->setResizeMode( TQLayout::Fixed );

    mainTextLabel = new KActiveLabel( this, "mainTextLabel" );
    mainTextLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, mainTextLabel->sizePolicy().hasHeightForWidth() ) );
    mainTextLabel->setFocusPolicy( KActiveLabel::NoFocus );

    Form1Layout->addMultiCellWidget( mainTextLabel, 0, 0, 1, 3 );
    spacer9 = new TQSpacerItem( 20, 34, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Form1Layout->addItem( spacer9, 1, 2 );

    pixmapLabel = new TQLabel( this, "pixmapLabel" );
    pixmapLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, pixmapLabel->sizePolicy().hasHeightForWidth() ) );
    pixmapLabel->setMinimumSize( TQSize( 108, 318 ) );
    pixmapLabel->setMaximumSize( TQSize( 108, 318 ) );
    pixmapLabel->setFrameShape( TQLabel::WinPanel );
    pixmapLabel->setFrameShadow( TQLabel::Sunken );
    pixmapLabel->setScaledContents( true );

    Form1Layout->addMultiCellWidget( pixmapLabel, 0, 5, 0, 0 );
    spacer10 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Form1Layout->addItem( spacer10, 5, 2 );

    hostLabel = new KActiveLabel( this, "hostLabel" );
    hostLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, hostLabel->sizePolicy().hasHeightForWidth() ) );
    hostLabel->setFocusPolicy( KActiveLabel::NoFocus );

    Form1Layout->addWidget( hostLabel, 2, 2 );

    kActiveLabel6 = new TQLabel( this, "kActiveLabel6" );
    kActiveLabel6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, kActiveLabel6->sizePolicy().hasHeightForWidth() ) );

    Form1Layout->addWidget( kActiveLabel6, 3, 1 );

    kActiveLabel7 = new TQLabel( this, "kActiveLabel7" );
    kActiveLabel7->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, kActiveLabel7->sizePolicy().hasHeightForWidth() ) );

    Form1Layout->addWidget( kActiveLabel7, 4, 1 );

    passwordLabel = new KActiveLabel( this, "passwordLabel" );
    passwordLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, passwordLabel->sizePolicy().hasHeightForWidth() ) );
    passwordLabel->setFocusPolicy( KActiveLabel::NoFocus );

    Form1Layout->addWidget( passwordLabel, 3, 2 );

    expirationLabel = new KActiveLabel( this, "expirationLabel" );
    expirationLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, expirationLabel->sizePolicy().hasHeightForWidth() ) );
    expirationLabel->setFocusPolicy( KActiveLabel::NoFocus );

    Form1Layout->addWidget( expirationLabel, 4, 2 );

    kActiveLabel5 = new TQLabel( this, "kActiveLabel5" );
    kActiveLabel5->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, kActiveLabel5->sizePolicy().hasHeightForWidth() ) );

    Form1Layout->addWidget( kActiveLabel5, 2, 1 );

    hostHelpLabel = new KActiveLabel( this, "hostHelpLabel" );
    hostHelpLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, hostHelpLabel->sizePolicy().hasHeightForWidth() ) );

    Form1Layout->addWidget( hostHelpLabel, 2, 3 );
    languageChange();
    resize( TQSize(519, 328).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PersonalInviteWidget::languageChange()
{
    setCaption( TQString::null );
    mainTextLabel->setText( tr2i18n( "<h2>Personal Invitation</h2>\n"
"Give the information below to the person that you want to invite (<a href=\"whatsthis:Desktop Sharing uses the VNC protocol. You can use any VNC client to connect. In TDE the client is called 'Remote Desktop Connection'. Enter the host information into the client and it will connect..\">how to connect</a>). Note that everybody who gets the password can connect, so be careful." ) );
    hostLabel->setText( tr2i18n( "cookie.tjansen.de:0" ) );
    kActiveLabel6->setText( tr2i18n( "<b>Password:</b>" ) );
    kActiveLabel7->setText( tr2i18n( "<b>Expiration time:</b>" ) );
    passwordLabel->setText( tr2i18n( "12345" ) );
    expirationLabel->setText( tr2i18n( "17:12" ) );
    kActiveLabel5->setText( tr2i18n( "<b>Host:</b>" ) );
    hostHelpLabel->setText( tr2i18n( "(<a href=\"whatsthis:This field contains the address of your computer and the display number, separated by a colon. The address is just a hint - you can use any address that can reach your computer. Desktop Sharing tries to guess your address from your network configuration, but does not always succeed in doing so. If your computer is behind a firewall it may have a different address or be unreachable for other computers.\">Help</a>)" ) );
}

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

TQMetaObject *PersonalInviteWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PersonalInviteWidget( "PersonalInviteWidget", &PersonalInviteWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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