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

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

#include "icqauthreplyui.h"

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

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

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

    lblReason = new TQLabel( this, "lblReason" );
    lblReason->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, lblReason->sizePolicy().hasHeightForWidth() ) );
    layout22->addWidget( lblReason );

    leReason = new TQLineEdit( this, "leReason" );
    layout22->addWidget( leReason );

    ICQAuthReplyUILayout->addLayout( layout22, 3, 0 );

    layout23 = new TQHBoxLayout( 0, 0, 6, "layout23"); 
    spacer14 = new TQSpacerItem( 50, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout23->addItem( spacer14 );

    bgAction = new TQButtonGroup( this, "bgAction" );
    bgAction->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, bgAction->sizePolicy().hasHeightForWidth() ) );
    bgAction->setFrameShape( TQButtonGroup::NoFrame );
    bgAction->setFrameShadow( TQButtonGroup::Plain );
    bgAction->setColumnLayout(0, TQt::Vertical );
    bgAction->layout()->setSpacing( 6 );
    bgAction->layout()->setMargin( 11 );
    bgActionLayout = new TQGridLayout( bgAction->layout() );
    bgActionLayout->setAlignment( TQt::AlignTop );

    rbGrant = new TQRadioButton( bgAction, "rbGrant" );
    rbGrant->setChecked( true );

    bgActionLayout->addWidget( rbGrant, 0, 0 );

    rbDecline = new TQRadioButton( bgAction, "rbDecline" );

    bgActionLayout->addWidget( rbDecline, 0, 1 );
    layout23->addWidget( bgAction );
    spacer12 = new TQSpacerItem( 220, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout23->addItem( spacer12 );

    ICQAuthReplyUILayout->addLayout( layout23, 2, 0 );

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

    ICQAuthReplyUILayout->addWidget( lblUserReq, 0, 0 );

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

    lblReqReason = new TQLabel( this, "lblReqReason" );
    lblReqReason->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, lblReqReason->sizePolicy().hasHeightForWidth() ) );
    layout24->addWidget( lblReqReason );

    lblRequestReason = new TQLabel( this, "lblRequestReason" );
    lblRequestReason->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, lblRequestReason->sizePolicy().hasHeightForWidth() ) );
    layout24->addWidget( lblRequestReason );

    ICQAuthReplyUILayout->addLayout( layout24, 1, 0 );
    languageChange();
    resize( TQSize(412, 148).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ICQAuthReplyUI::languageChange()
{
    setCaption( tr2i18n( "ICQ Authorization Reply" ) );
    lblReason->setText( tr2i18n( "Reason:" ) );
    bgAction->setTitle( TQString::null );
    rbGrant->setText( tr2i18n( "&Grant authorization" ) );
    rbDecline->setText( tr2i18n( "&Decline authorization" ) );
    lblUserReq->setText( tr2i18n( "%1 requested authorization to add you to his/her contact list." ) );
    lblReqReason->setText( tr2i18n( "Request Reason:" ) );
    lblRequestReason->setText( tr2i18n( "Some reason..." ) );
}

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

TQMetaObject *ICQAuthReplyUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ICQAuthReplyUI( "ICQAuthReplyUI", &ICQAuthReplyUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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