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

TQMetaObject *TQLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQLayout( "TQLayout", &TQLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQLayout::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 = TQObject::staticMetaObject();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "FreeResize",  (int) TQLayout::FreeResize },
	{ "Minimum",  (int) TQLayout::Minimum },
	{ "Fixed",  (int) TQLayout::Fixed },
	{ "Auto",  (int) TQLayout::Auto }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "ResizeMode", 4, enum_0, false }
    };
#endif // TQT_NO_PROPERTIES
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[3] = {
 	{ "int","margin", 0x10000103, &TQLayout::metaObj, 0, -1 },
	{ "int","spacing", 0x10000103, &TQLayout::metaObj, 0, -1 },
	{ "ResizeMode","resizeMode", 0x0107, &TQLayout::metaObj, &enum_tbl[0], -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQLayout", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 3,
	enum_tbl, 1,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQLayout.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* TQLayout::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "TQLayout" ) )
	return this;
    if ( !qstrcmp( clname, "TQLayoutItem" ) )
	return (TQLayoutItem*)this;
    return TQObject::tqt_cast( clname );
}

bool TQLayout::tqt_invoke( int _id, TQUObject* _o )
{
    return TQObject::tqt_invoke(_id,_o);
}

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

bool TQLayout::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setMargin(v->asInt()); break;
	case 1: *v = TQVariant( this->margin() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setSpacing(v->asInt()); break;
	case 1: *v = TQVariant( this->spacing() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setResizeMode((ResizeMode&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->resizeMode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQObject::tqt_property( id, f, v );
    }
    return true;
}

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


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

TQMetaObject *TQGridLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQGridLayout( "TQGridLayout", &TQGridLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQGridLayout::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 = TQLayout::staticMetaObject();
    metaObj = TQMetaObject::new_metaobject(
	"TQGridLayout", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQGridLayout.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQGridLayout::tqt_invoke( int _id, TQUObject* _o )
{
    return TQLayout::tqt_invoke(_id,_o);
}

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

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

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


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

TQMetaObject *TQBoxLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQBoxLayout( "TQBoxLayout", &TQBoxLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQBoxLayout::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 = TQLayout::staticMetaObject();
    metaObj = TQMetaObject::new_metaobject(
	"TQBoxLayout", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQBoxLayout.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQBoxLayout::tqt_invoke( int _id, TQUObject* _o )
{
    return TQLayout::tqt_invoke(_id,_o);
}

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

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

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


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

TQMetaObject *TQHBoxLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQHBoxLayout( "TQHBoxLayout", &TQHBoxLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQHBoxLayout::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 = TQBoxLayout::staticMetaObject();
    metaObj = TQMetaObject::new_metaobject(
	"TQHBoxLayout", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQHBoxLayout.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQHBoxLayout::tqt_invoke( int _id, TQUObject* _o )
{
    return TQBoxLayout::tqt_invoke(_id,_o);
}

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

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

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


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

TQMetaObject *TQVBoxLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQVBoxLayout( "TQVBoxLayout", &TQVBoxLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQVBoxLayout::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 = TQBoxLayout::staticMetaObject();
    metaObj = TQMetaObject::new_metaobject(
	"TQVBoxLayout", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQVBoxLayout.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQVBoxLayout::tqt_invoke( int _id, TQUObject* _o )
{
    return TQBoxLayout::tqt_invoke(_id,_o);
}

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

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

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