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

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

#include "dlgchatjoin.h"

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

/*
 *  Constructs a dlgChatJoin which is a child of 'parent', with the
 *  name 'name'.' 
 */
dlgChatJoin::dlgChatJoin( TQWidget* parent,  const char* name )
    : KDialog( parent, name )
{
    if ( !name )
	setName( "dlgChatJoin" );
    dlgChatJoinLayout = new TQGridLayout( this, 1, 1, 11, 6, "dlgChatJoinLayout"); 

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

    dlgChatJoinLayout->addWidget( lblNick, 2, 0 );

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

    dlgChatJoinLayout->addWidget( leServer, 1, 1 );

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

    dlgChatJoinLayout->addWidget( leNick, 2, 1 );

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

    dlgChatJoinLayout->addWidget( leRoom, 0, 1 );

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

    dlgChatJoinLayout->addWidget( lblRoom, 0, 0 );

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

    dlgChatJoinLayout->addWidget( lblServer, 1, 0 );

    layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); 
    spacer2 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer2 );

    pbJoin = new TQPushButton( this, "pbJoin" );
    pbJoin->setDefault( true );
    layout3->addWidget( pbJoin );

    pbBrowse = new TQPushButton( this, "pbBrowse" );
    layout3->addWidget( pbBrowse );

    dlgChatJoinLayout->addLayout( layout3, 3, 1 );
    languageChange();
    resize( TQSize(291, 160).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pbJoin, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotJoin() ) );
    connect( pbBrowse, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotBowse() ) );

    // tab order
    setTabOrder( leRoom, leServer );
    setTabOrder( leServer, leNick );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void dlgChatJoin::languageChange()
{
    lblNick->setText( tr2i18n( "Nick:" ) );
    lblRoom->setText( tr2i18n( "Room:" ) );
    lblServer->setText( tr2i18n( "Server:" ) );
    pbJoin->setText( tr2i18n( "&Join" ) );
    pbBrowse->setText( tr2i18n( "Bro&wse" ) );
}

void dlgChatJoin::slotBowse()
{
    tqWarning( "dlgChatJoin::slotBowse(): Not implemented yet" );
}

void dlgChatJoin::slotJoin()
{
    tqWarning( "dlgChatJoin::slotJoin(): Not implemented yet" );
}

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

TQMetaObject *dlgChatJoin::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_dlgChatJoin( "dlgChatJoin", &dlgChatJoin::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* dlgChatJoin::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 = KDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"slotBowse", 0, 0 };
    static const TQUMethod slot_1 = {"slotJoin", 0, 0 };
    static const TQUMethod slot_2 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotBowse()", &slot_0, TQMetaData::Public },
	{ "slotJoin()", &slot_1, TQMetaData::Public },
	{ "languageChange()", &slot_2, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"dlgChatJoin", parentObject,
	slot_tbl, 3,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_dlgChatJoin.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool dlgChatJoin::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotBowse(); break;
    case 1: slotJoin(); break;
    case 2: languageChange(); break;
    default:
	return KDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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