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

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

#include "infoDlg.h"

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

/*
 *  Constructs a KInfoDialog as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
KInfoDialog::KInfoDialog( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KInfoDialog" );
    KInfoDialogLayout = new TQVBoxLayout( this, 11, 6, "KInfoDialogLayout"); 

    Frame8 = new TQFrame( this, "Frame8" );
    Frame8->setFrameShape( TQFrame::StyledPanel );
    Frame8->setFrameShadow( TQFrame::Raised );
    Frame8Layout = new TQVBoxLayout( Frame8, 11, 6, "Frame8Layout"); 

    Layout6 = new TQGridLayout( 0, 1, 1, 0, 6, "Layout6"); 

    lbl_clientIdentfierLabel = new TQLabel( Frame8, "lbl_clientIdentfierLabel" );
    TQFont lbl_clientIdentfierLabel_font(  lbl_clientIdentfierLabel->font() );
    lbl_clientIdentfierLabel_font.setBold( true );
    lbl_clientIdentfierLabel->setFont( lbl_clientIdentfierLabel_font ); 

    Layout6->addWidget( lbl_clientIdentfierLabel, 0, 0 );

    lbl_ClientInformationLabel = new TQLabel( Frame8, "lbl_ClientInformationLabel" );
    TQFont lbl_ClientInformationLabel_font(  lbl_ClientInformationLabel->font() );
    lbl_ClientInformationLabel_font.setBold( true );
    lbl_ClientInformationLabel->setFont( lbl_ClientInformationLabel_font ); 
    lbl_ClientInformationLabel->setFrameShape( TQLabel::MShape );
    lbl_ClientInformationLabel->setFrameShadow( TQLabel::MShadow );

    Layout6->addWidget( lbl_ClientInformationLabel, 2, 0 );

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

    Layout6->addWidget( lbl_clientVersion, 1, 1 );

    lbl_clientVersionLabel = new TQLabel( Frame8, "lbl_clientVersionLabel" );
    TQFont lbl_clientVersionLabel_font(  lbl_clientVersionLabel->font() );
    lbl_clientVersionLabel_font.setBold( true );
    lbl_clientVersionLabel->setFont( lbl_clientVersionLabel_font ); 

    Layout6->addWidget( lbl_clientVersionLabel, 1, 0 );

    lbl_ProtocolVersionLabel = new TQLabel( Frame8, "lbl_ProtocolVersionLabel" );
    TQFont lbl_ProtocolVersionLabel_font(  lbl_ProtocolVersionLabel->font() );
    lbl_ProtocolVersionLabel_font.setBold( true );
    lbl_ProtocolVersionLabel->setFont( lbl_ProtocolVersionLabel_font ); 

    Layout6->addWidget( lbl_ProtocolVersionLabel, 3, 0 );

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

    Layout6->addWidget( lbl_ProtocolVersion, 3, 1 );

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

    Layout6->addWidget( lbl_ClientInformation, 2, 1 );

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

    Layout6->addWidget( lbl_clientIdentfier, 0, 1 );
    Frame8Layout->addLayout( Layout6 );
    KInfoDialogLayout->addWidget( Frame8 );

    Layout7 = new TQHBoxLayout( 0, 0, 6, "Layout7"); 
    Spacer13_2 = new TQSpacerItem( 0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout7->addItem( Spacer13_2 );

    PushButton7 = new TQPushButton( this, "PushButton7" );
    PushButton7->setDefault( true );
    Layout7->addWidget( PushButton7 );
    Spacer13 = new TQSpacerItem( 0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout7->addItem( Spacer13 );
    KInfoDialogLayout->addLayout( Layout7 );
    languageChange();
    resize( TQSize(254, 197).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( PushButton7, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KInfoDialog::languageChange()
{
    setCaption( tr2i18n( "Enemy Client Information" ) );
    lbl_clientIdentfierLabel->setText( tr2i18n( "Client identifier:" ) );
    lbl_ClientInformationLabel->setText( tr2i18n( "Client information:" ) );
    lbl_clientVersion->setText( tr2i18n( "CV" ) );
    lbl_clientVersionLabel->setText( tr2i18n( "Client version:" ) );
    lbl_ProtocolVersionLabel->setText( tr2i18n( "Protocol version:" ) );
    lbl_ProtocolVersion->setText( tr2i18n( "PV" ) );
    lbl_ClientInformation->setText( tr2i18n( "CI" ) );
    lbl_clientIdentfier->setText( tr2i18n( "CI" ) );
    PushButton7->setText( tr2i18n( "&OK" ) );
}

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

TQMetaObject *KInfoDialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KInfoDialog( "KInfoDialog", &KInfoDialog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KInfoDialog::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KInfoDialog", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KInfoDialog.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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