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

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

#include "yahooinvitelistbase.h"

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

/*
 *  Constructs a YahooInviteListBase 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.
 */
YahooInviteListBase::YahooInviteListBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "YahooInviteListBase" );
    YahooInviteListBaseLayout = new TQGridLayout( this, 1, 1, 11, 6, "YahooInviteListBaseLayout"); 

    layout19 = new TQVBoxLayout( 0, 0, 6, "layout19"); 

    groupBox3 = new TQGroupBox( this, "groupBox3" );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( 6 );
    groupBox3->layout()->setMargin( 11 );
    groupBox3Layout = new TQGridLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

    layout5 = new TQVBoxLayout( 0, 0, 6, "layout5"); 

    textLabel2 = new TQLabel( groupBox3, "textLabel2" );
    layout5->addWidget( textLabel2 );

    listFriends = new TQListBox( groupBox3, "listFriends" );
    listFriends->setMinimumSize( TQSize( 0, 180 ) );
    layout5->addWidget( listFriends );

    groupBox3Layout->addLayout( layout5, 0, 0 );

    layout4 = new TQVBoxLayout( 0, 0, 6, "layout4"); 

    textLabel2_2 = new TQLabel( groupBox3, "textLabel2_2" );
    layout4->addWidget( textLabel2_2 );

    listInvited = new TQListBox( groupBox3, "listInvited" );
    listInvited->setMinimumSize( TQSize( 0, 150 ) );
    layout4->addWidget( listInvited );

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

    editBuddyAdd = new TQLineEdit( groupBox3, "editBuddyAdd" );
    layout2->addWidget( editBuddyAdd );

    btnCustomAdd = new TQPushButton( groupBox3, "btnCustomAdd" );
    layout2->addWidget( btnCustomAdd );
    layout4->addLayout( layout2 );

    groupBox3Layout->addLayout( layout4, 0, 2 );

    layout10 = new TQVBoxLayout( 0, 0, 6, "layout10"); 
    spacer1_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout10->addItem( spacer1_2 );

    btn_Add = new TQPushButton( groupBox3, "btn_Add" );
    layout10->addWidget( btn_Add );

    btn_Remove = new TQPushButton( groupBox3, "btn_Remove" );
    layout10->addWidget( btn_Remove );
    spacer1 = new TQSpacerItem( 20, 90, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout10->addItem( spacer1 );

    groupBox3Layout->addLayout( layout10, 0, 1 );
    layout19->addWidget( groupBox3 );

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

    txtInvMsg = new TQLabel( this, "txtInvMsg" );
    layout14->addWidget( txtInvMsg );
    spacer4 = new TQSpacerItem( 20, 21, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout14->addItem( spacer4 );

    editMessage = new TQLineEdit( this, "editMessage" );
    layout14->addWidget( editMessage );
    layout19->addLayout( layout14 );

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

    btnCancel = new TQPushButton( this, "btnCancel" );
    btnCancel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, btnCancel->sizePolicy().hasHeightForWidth() ) );
    layout18->addWidget( btnCancel );
    spacer5 = new TQSpacerItem( 350, 31, TQSizePolicy::Maximum, TQSizePolicy::Minimum );
    layout18->addItem( spacer5 );

    btnInvite = new TQPushButton( this, "btnInvite" );
    btnInvite->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, btnInvite->sizePolicy().hasHeightForWidth() ) );
    layout18->addWidget( btnInvite );
    layout19->addLayout( layout18 );

    YahooInviteListBaseLayout->addLayout( layout19, 0, 0 );
    languageChange();
    resize( TQSize(529, 418).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( btnCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnCancel_clicked() ) );
    connect( btnCustomAdd, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnAddCustom_clicked() ) );
    connect( btnInvite, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnInvite_clicked() ) );
    connect( btn_Add, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnAdd_clicked() ) );
    connect( btn_Remove, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnRemove_clicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void YahooInviteListBase::languageChange()
{
    setCaption( tr2i18n( "Invite Friends to Conference" ) );
    groupBox3->setTitle( tr2i18n( "Conference Members" ) );
    textLabel2->setText( tr2i18n( "Friend List" ) );
    listFriends->clear();
    listFriends->insertItem( tr2i18n( "New Item" ) );
    textLabel2_2->setText( tr2i18n( "Chat Invitation List" ) );
    listInvited->clear();
    listInvited->insertItem( tr2i18n( "New Item" ) );
    btnCustomAdd->setText( tr2i18n( "Add" ) );
    btn_Add->setText( tr2i18n( "Add >>" ) );
    btn_Remove->setText( tr2i18n( "<< Remove" ) );
    txtInvMsg->setText( tr2i18n( "Invitation Message" ) );
    btnCancel->setText( tr2i18n( "Cancel" ) );
    btnInvite->setText( tr2i18n( "Invite" ) );
}

void YahooInviteListBase::btnAdd_clicked()
{
    tqWarning( "YahooInviteListBase::btnAdd_clicked(): Not implemented yet" );
}

void YahooInviteListBase::btnRemove_clicked()
{
    tqWarning( "YahooInviteListBase::btnRemove_clicked(): Not implemented yet" );
}

void YahooInviteListBase::btnAddCustom_clicked()
{
    tqWarning( "YahooInviteListBase::btnAddCustom_clicked(): Not implemented yet" );
}

void YahooInviteListBase::btnCancel_clicked()
{
    tqWarning( "YahooInviteListBase::btnCancel_clicked(): Not implemented yet" );
}

void YahooInviteListBase::btnInvite_clicked()
{
    tqWarning( "YahooInviteListBase::btnInvite_clicked(): Not implemented yet" );
}

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

TQMetaObject *YahooInviteListBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_YahooInviteListBase( "YahooInviteListBase", &YahooInviteListBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* YahooInviteListBase::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 = {"btnAdd_clicked", 0, 0 };
    static const TQUMethod slot_1 = {"btnRemove_clicked", 0, 0 };
    static const TQUMethod slot_2 = {"btnAddCustom_clicked", 0, 0 };
    static const TQUMethod slot_3 = {"btnCancel_clicked", 0, 0 };
    static const TQUMethod slot_4 = {"btnInvite_clicked", 0, 0 };
    static const TQUMethod slot_5 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "btnAdd_clicked()", &slot_0, TQMetaData::Public },
	{ "btnRemove_clicked()", &slot_1, TQMetaData::Public },
	{ "btnAddCustom_clicked()", &slot_2, TQMetaData::Public },
	{ "btnCancel_clicked()", &slot_3, TQMetaData::Public },
	{ "btnInvite_clicked()", &slot_4, TQMetaData::Public },
	{ "languageChange()", &slot_5, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"YahooInviteListBase", parentObject,
	slot_tbl, 6,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_YahooInviteListBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool YahooInviteListBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: btnAdd_clicked(); break;
    case 1: btnRemove_clicked(); break;
    case 2: btnAddCustom_clicked(); break;
    case 3: btnCancel_clicked(); break;
    case 4: btnInvite_clicked(); break;
    case 5: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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