/****************************************************************************
** TQLabel meta object code from reading C++ file 'ntqlabel.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 "../../widgets/ntqlabel.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

#include <ntqvariant.h>
const char *TQLabel::className() const
{
    return "TQLabel";
}

TQMetaObject *TQLabel::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQLabel( "TQLabel", &TQLabel::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQLabel::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 = TQFrame::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setText", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ 0, &static_QUType_varptr, "\x06", TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"setPixmap", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_ptr, "TQPicture", TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setPicture", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_ptr, "TQMovie", TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"setMovie", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"setNum", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_double, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"setNum", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"clear", 0, 0 };
    static const TQUMethod slot_7 = {"acceleratorSlot", 0, 0 };
    static const TQUMethod slot_8 = {"buddyDied", 0, 0 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_varptr, "\x08", TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"movieUpdated", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ 0, &static_QUType_varptr, "\x09", TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"movieResized", 1, param_slot_10 };
    static const TQMetaData slot_tbl[] = {
	{ "setText(const TQString&)", &slot_0, TQMetaData::Public },
	{ "setPixmap(const TQPixmap&)", &slot_1, TQMetaData::Public },
	{ "setPicture(const TQPicture&)", &slot_2, TQMetaData::Public },
	{ "setMovie(const TQMovie&)", &slot_3, TQMetaData::Public },
	{ "setNum(int)", &slot_4, TQMetaData::Public },
	{ "setNum(double)", &slot_5, TQMetaData::Public },
	{ "clear()", &slot_6, TQMetaData::Public },
	{ "acceleratorSlot()", &slot_7, TQMetaData::Private },
	{ "buddyDied()", &slot_8, TQMetaData::Private },
	{ "movieUpdated(const TQRect&)", &slot_9, TQMetaData::Private },
	{ "movieResized(const TQSize&)", &slot_10, TQMetaData::Private }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[7] = {
 	{ "TQString","text", 0x3000103, &TQLabel::metaObj, 0, -1 },
	{ "TextFormat","textFormat", 0x010f, &TQLabel::metaObj, 0, -1 },
	{ "TQPixmap","pixmap", 0x6000103, &TQLabel::metaObj, 0, -1 },
	{ "bool","scaledContents", 0x12000103, &TQLabel::metaObj, 0, -1 },
	{ "Alignment","alignment", 0x010f, &TQLabel::metaObj, 0, -1 },
	{ "int","indent", 0x10000103, &TQLabel::metaObj, 0, -1 },
	{ "BackgroundMode","backgroundMode", 0x2820c, &TQLabel::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQLabel", parentObject,
	slot_tbl, 11,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 7,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQLabel.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQLabel::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setText((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: setPixmap((const TQPixmap&)*((const TQPixmap*)static_QUType_ptr.get(_o+1))); break;
    case 2: setPicture((const TQPicture&)*((const TQPicture*)static_QUType_ptr.get(_o+1))); break;
    case 3: setMovie((const TQMovie&)*((const TQMovie*)static_QUType_ptr.get(_o+1))); break;
    case 4: setNum((int)static_QUType_int.get(_o+1)); break;
    case 5: setNum((double)static_QUType_double.get(_o+1)); break;
    case 6: clear(); break;
    case 7: acceleratorSlot(); break;
    case 8: buddyDied(); break;
    case 9: movieUpdated((const TQRect&)*((const TQRect*)static_QUType_ptr.get(_o+1))); break;
    case 10: movieResized((const TQSize&)*((const TQSize*)static_QUType_ptr.get(_o+1))); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQLabel::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setText(v->asString()); break;
	case 1: *v = TQVariant( this->text() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setTextFormat((TextFormat&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->textFormat() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setPixmap(v->asPixmap()); break;
	case 1: if ( this->pixmap() ) *v = TQVariant( *pixmap() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setScaledContents(v->asBool()); break;
	case 1: *v = TQVariant( this->hasScaledContents() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setAlignment(v->asInt()); break;
	case 1: *v = TQVariant( (int)this->alignment() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setIndent(v->asInt()); break;
	case 1: *v = TQVariant( this->indent() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: case 1: case 4: case 5: goto resolve;
	case 3: break;
	default: return false;
    } break;
    default:
	return TQFrame::tqt_property( id, f, v );
    }
    return true;
resolve:
    return TQFrame::tqt_property( staticMetaObject()->resolveProperty(id), f, v );
}

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