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

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

#include "dlgjabberchooseserver.h"

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

static const char* const image0_data[] = { 
"16 16 139 2",
"Qt c None",
"aa c #011d60",
"af c #081229",
"ab c #082364",
"#5 c #091c49",
"#Y c #0a1f52",
"#L c #0a2565",
"a# c #0f1932",
"ag c #102a67",
"#6 c #223a74",
"ai c #29385e",
"#S c #2c437a",
"ae c #2f2f2f",
"a. c #333333",
"#R c #33334a",
"#Z c #3a5084",
"#X c #3c4354",
"#4 c #414141",
"#7 c #4a5e8d",
"ah c #4c5a7b",
"#9 c #5b5b5b",
"#M c #5e4d4f",
"#8 c #66676c",
"ad c #696969",
"#Q c #71684b",
"#W c #757b8a",
"ac c #798092",
"#P c #808755",
"#3 c #818181",
"#O c #97934f",
"#N c #9b8e4b",
"#0 c #cbd0de",
"#V c #ced0d6",
"#2 c #cfcfcf",
"#T c #d0d5e2",
"#D c #d37805",
"#K c #d37904",
"#E c #d89210",
"#v c #dc7e02",
"#J c #dc983b",
"#l c #e18500",
"#w c #e4a411",
"#C c #e4a534",
"## c #e69a05",
"#k c #e79f0d",
"#m c #e7a40c",
".n c #e9c408",
"#u c #eab033",
".Z c #eab20a",
".o c #eac106",
".z c #eac60a",
".Y c #ebad06",
"#. c #ebb210",
".L c #ebc70c",
".y c #ebc90d",
".m c #ebc91b",
".x c #ebcb0f",
".K c #eccc10",
".X c #ecce12",
".N c #edb320",
".J c #edcf13",
".M c #eea501",
".W c #eed216",
".A c #efb503",
".9 c #efd41a",
".I c #efd421",
".V c #efd619",
".0 c #efd620",
".B c #f0b025",
".8 c #f0d81b",
"#a c #f0d91c",
".U c #f0d91d",
".q c #f1a900",
".d c #f1be02",
".7 c #f1dc1e",
".T c #f1dc2d",
".p c #f2b702",
".w c #f2dd61",
"#i c #f2de28",
"#j c #f2de3f",
".H c #f2de4f",
".6 c #f2df21",
"#b c #f3e029",
".5 c #f3e124",
"#h c #f3e224",
".4 c #f3e22c",
".h c #f4b000",
".e c #f4bc01",
".S c #f4e14a",
"#n c #f4e325",
"#g c #f4e527",
".G c #f5e46e",
"#d c #f5e72d",
"#f c #f5e829",
"#e c #f5e82a",
".c c #f6cc3a",
".v c #f6e894",
"#c c #f6e950",
"#t c #f6e961",
".g c #f7b700",
".# c #f7b800",
".3 c #f7ea6b",
".1 c #f7ea81",
"#s c #f7eb51",
"#o c #f7ed2e",
"#F c #f7ed33",
"#r c #f7ed3e",
"#q c #f7ee30",
".f c #f8b900",
".l c #f8ecb0",
"#I c #f8ee97",
".R c #f8ee98",
"#p c #f8ef30",
"#B c #f8ef7e",
"#U c #f8f9fa",
".r c #f9da8f",
".O c #f9eeaa",
".u c #f9efb3",
".a c #facc46",
".F c #faf1b6",
"#x c #faf451",
".i c #fbde8f",
".2 c #fbf5ba",
"#A c #fbf682",
"#G c #fbfa47",
"#1 c #fbfbfb",
".b c #fcdd7d",
".P c #fcf6d0",
".k c #fcf7dc",
".t c #fcf8de",
"#y c #fcf977",
"#z c #fcf985",
".D c #fdf9e1",
".C c #fdfae7",
".Q c #fdfbe7",
"#H c #fdfc97",
".s c #fefcf0",
".j c #fefdf8",
".E c #fffffd",
"QtQtQtQt.#.a.b.c.d.e.f.gQtQtQtQt",
"QtQtQt.h.i.j.k.l.m.n.o.p.hQtQtQt",
"QtQt.q.r.s.t.u.v.w.x.y.z.A.qQtQt",
"QtQt.B.C.D.E.F.G.H.I.J.K.L.MQtQt",
"QtQt.N.O.P.Q.R.S.T.U.V.W.X.YQtQt",
"QtQt.Z.0.1.2.3.4.5.6.7.8.9#.QtQt",
"QtQt###a#b#c#d#e#f#g#h#i#j#kQtQt",
"QtQt#l#m#n#e#o#p#q#r#s#t#u#lQtQt",
"QtQtQt#v#w#o#x#y#z#A#B#C#vQtQtQt",
"QtQtQtQt#D#E#F#G#H#I#J#KQtQtQtQt",
"QtQtQtQt#L#M#N#O#P#Q#RQtQtQtQtQt",
"QtQtQtQt#S#T#U#V#W#X#YQtQtQtQtQt",
"QtQtQtQt#Z#0#1#2#3#4#5QtQtQtQtQt",
"QtQtQtQt#6#7#8#9a.a#aaQtQtQtQtQt",
"QtQtQtQtQtabacadaeafQtQtQtQtQtQt",
"QtQtQtQtQtaaagahaiaaQtQtQtQtQtQt"};


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

    listServers = new TQTable( this, "listServers" );
    listServers->setNumCols( listServers->numCols() + 1 );
    listServers->horizontalHeader()->setLabel( listServers->numCols() - 1, image0, tr2i18n( "Server" ) );
    listServers->setNumCols( listServers->numCols() + 1 );
    listServers->horizontalHeader()->setLabel( listServers->numCols() - 1, tr2i18n( "Description" ) );
    listServers->setFocusPolicy( TQTable::NoFocus );
    listServers->setResizePolicy( TQTable::Default );
    listServers->setHScrollBarMode( TQTable::Auto );
    listServers->setNumRows( 0 );
    listServers->setNumCols( 2 );
    listServers->setReadOnly( true );
    listServers->setSorting( false );
    listServers->setSelectionMode( TQTable::SingleRow );

    DlgJabberChooseServerLayout->addWidget( listServers, 0, 0 );

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

    DlgJabberChooseServerLayout->addWidget( linkServerDetails, 2, 0 );

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

    DlgJabberChooseServerLayout->addWidget( lblStatus, 1, 0 );
    languageChange();
    resize( TQSize(334, 343).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DlgJabberChooseServer::languageChange()
{
    setCaption( tr2i18n( "Choose Server - Jabber" ) );
    listServers->horizontalHeader()->setLabel( 0, tr2i18n( "Server" ) );
    listServers->horizontalHeader()->setLabel( 1, tr2i18n( "Description" ) );
    linkServerDetails->setText( tr2i18n( "<a href=\"http://www.jabber.org/network/\">Details about free public Jabber servers</a>" ) );
    lblStatus->setText( TQString::null );
}

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

TQMetaObject *DlgJabberChooseServer::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_DlgJabberChooseServer( "DlgJabberChooseServer", &DlgJabberChooseServer::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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