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

TQMetaObject *TQDockAreaLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDockAreaLayout( "TQDockAreaLayout", &TQDockAreaLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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


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

TQMetaObject *TQDockArea::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDockArea( "TQDockArea", &TQDockArea::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDockArea::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();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "Normal",  (int) TQDockArea::Normal },
	{ "Reverse",  (int) TQDockArea::Reverse }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "HandlePosition", 2, enum_0, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ "keepNewLines", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"lineUp", 1, param_slot_0 };
    static const TQMetaData slot_tbl[] = {
	{ "lineUp(bool)", &slot_0, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[4] = {
 	{ "Orientation","orientation", 0x000d, &TQDockArea::metaObj, 0, -1 },
	{ "int","count", 0x10000001, &TQDockArea::metaObj, 0, -1 },
	{ "bool","empty", 0x12000001, &TQDockArea::metaObj, 0, -1 },
	{ "HandlePosition","handlePosition", 0x0005, &TQDockArea::metaObj, &enum_tbl[0], -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQDockArea", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 4,
	enum_tbl, 1,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDockArea.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQDockArea::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: lineUp((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQDockArea::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 1: *v = TQVariant( (int)this->orientation() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 1: *v = TQVariant( this->count() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 1: *v = TQVariant( this->isEmpty() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 1: *v = TQVariant( (int)this->handlePosition() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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