/****************************************************************************
** UIListTreeType meta object code from reading C++ file 'uilistbtntype.h'
**
** Created: Fri Jan 9 04:15:45 2009
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.8   edited Feb 2 14:59 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "uilistbtntype.h"
#include <qmetaobject.h>
#include <qapplication.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.3.8. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

const char *UIListTreeType::className() const
{
    return "UIListTreeType";
}

QMetaObject *UIListTreeType::metaObj = 0;
static QMetaObjectCleanUp cleanUp_UIListTreeType( "UIListTreeType", &UIListTreeType::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString UIListTreeType::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "UIListTreeType", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString UIListTreeType::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "UIListTreeType", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* UIListTreeType::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = UIType::staticMetaObject();
    static const QUParameter param_slot_0[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out }
    };
    static const QUMethod slot_0 = {"takeFocus", 1, param_slot_0 };
    static const QUMethod slot_1 = {"looseFocus", 0, 0 };
    static const QMetaData slot_tbl[] = {
	{ "takeFocus()", &slot_0, QMetaData::Public },
	{ "looseFocus()", &slot_1, QMetaData::Public }
    };
    static const QUParameter param_signal_0[] = {
	{ "item", &static_QUType_ptr, "UIListGenericTree", QUParameter::In }
    };
    static const QUMethod signal_0 = {"selected", 1, param_signal_0 };
    static const QUParameter param_signal_1[] = {
	{ "parent", &static_QUType_ptr, "UIListTreeType", QUParameter::In },
	{ "item", &static_QUType_ptr, "UIListGenericTree", QUParameter::In }
    };
    static const QUMethod signal_1 = {"itemSelected", 2, param_signal_1 };
    static const QUParameter param_signal_2[] = {
	{ "parent", &static_QUType_ptr, "UIListTreeType", QUParameter::In },
	{ "item", &static_QUType_ptr, "UIListGenericTree", QUParameter::In }
    };
    static const QUMethod signal_2 = {"itemEntered", 2, param_signal_2 };
    static const QMetaData signal_tbl[] = {
	{ "selected(UIListGenericTree*)", &signal_0, QMetaData::Public },
	{ "itemSelected(UIListTreeType*,UIListGenericTree*)", &signal_1, QMetaData::Public },
	{ "itemEntered(UIListTreeType*,UIListGenericTree*)", &signal_2, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
	"UIListTreeType", parentObject,
	slot_tbl, 2,
	signal_tbl, 3,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_UIListTreeType.setMetaObject( metaObj );
    return metaObj;
}

void* UIListTreeType::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "UIListTreeType" ) )
	return this;
    return UIType::qt_cast( clname );
}

#include <qobjectdefs.h>
#include <qsignalslotimp.h>

// SIGNAL selected
void UIListTreeType::selected( UIListGenericTree* t0 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    QUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    activate_signal( clist, o );
}

// SIGNAL itemSelected
void UIListTreeType::itemSelected( UIListTreeType* t0, UIListGenericTree* t1 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 1 );
    if ( !clist )
	return;
    QUObject o[3];
    static_QUType_ptr.set(o+1,t0);
    static_QUType_ptr.set(o+2,t1);
    activate_signal( clist, o );
}

// SIGNAL itemEntered
void UIListTreeType::itemEntered( UIListTreeType* t0, UIListGenericTree* t1 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 2 );
    if ( !clist )
	return;
    QUObject o[3];
    static_QUType_ptr.set(o+1,t0);
    static_QUType_ptr.set(o+2,t1);
    activate_signal( clist, o );
}

bool UIListTreeType::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: static_QUType_bool.set(_o,takeFocus()); break;
    case 1: looseFocus(); break;
    default:
	return UIType::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool UIListTreeType::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: selected((UIListGenericTree*)static_QUType_ptr.get(_o+1)); break;
    case 1: itemSelected((UIListTreeType*)static_QUType_ptr.get(_o+1),(UIListGenericTree*)static_QUType_ptr.get(_o+2)); break;
    case 2: itemEntered((UIListTreeType*)static_QUType_ptr.get(_o+1),(UIListGenericTree*)static_QUType_ptr.get(_o+2)); break;
    default:
	return UIType::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool UIListTreeType::qt_property( int id, int f, QVariant* v)
{
    return UIType::qt_property( id, f, v);
}

bool UIListTreeType::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES


const char *UIListBtnType::className() const
{
    return "UIListBtnType";
}

QMetaObject *UIListBtnType::metaObj = 0;
static QMetaObjectCleanUp cleanUp_UIListBtnType( "UIListBtnType", &UIListBtnType::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString UIListBtnType::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "UIListBtnType", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString UIListBtnType::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "UIListBtnType", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* UIListBtnType::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = UIType::staticMetaObject();
    static const QUParameter param_slot_0[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out }
    };
    static const QUMethod slot_0 = {"takeFocus", 1, param_slot_0 };
    static const QUMethod slot_1 = {"looseFocus", 0, 0 };
    static const QMetaData slot_tbl[] = {
	{ "takeFocus()", &slot_0, QMetaData::Public },
	{ "looseFocus()", &slot_1, QMetaData::Public }
    };
    static const QUParameter param_signal_0[] = {
	{ "item", &static_QUType_ptr, "UIListBtnTypeItem", QUParameter::In }
    };
    static const QUMethod signal_0 = {"itemSelected", 1, param_signal_0 };
    static const QMetaData signal_tbl[] = {
	{ "itemSelected(UIListBtnTypeItem*)", &signal_0, QMetaData::Private }
    };
    metaObj = QMetaObject::new_metaobject(
	"UIListBtnType", parentObject,
	slot_tbl, 2,
	signal_tbl, 1,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_UIListBtnType.setMetaObject( metaObj );
    return metaObj;
}

void* UIListBtnType::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "UIListBtnType" ) )
	return this;
    return UIType::qt_cast( clname );
}

// SIGNAL itemSelected
void UIListBtnType::itemSelected( UIListBtnTypeItem* t0 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    QUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    activate_signal( clist, o );
}

bool UIListBtnType::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: static_QUType_bool.set(_o,takeFocus()); break;
    case 1: looseFocus(); break;
    default:
	return UIType::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool UIListBtnType::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: itemSelected((UIListBtnTypeItem*)static_QUType_ptr.get(_o+1)); break;
    default:
	return UIType::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool UIListBtnType::qt_property( int id, int f, QVariant* v)
{
    return UIType::qt_property( id, f, v);
}

bool UIListBtnType::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
