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

TQMetaObject *TQFrame::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQFrame( "TQFrame", &TQFrame::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQFrame::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[] = {
	{ "NoFrame",  (int) TQFrame::NoFrame },
	{ "Box",  (int) TQFrame::Box },
	{ "Panel",  (int) TQFrame::Panel },
	{ "WinPanel",  (int) TQFrame::WinPanel },
	{ "HLine",  (int) TQFrame::HLine },
	{ "VLine",  (int) TQFrame::VLine },
	{ "StyledPanel",  (int) TQFrame::StyledPanel },
	{ "PopupPanel",  (int) TQFrame::PopupPanel },
	{ "MenuBarPanel",  (int) TQFrame::MenuBarPanel },
	{ "ToolBarPanel",  (int) TQFrame::ToolBarPanel },
	{ "LineEditPanel",  (int) TQFrame::LineEditPanel },
	{ "TabWidgetPanel",  (int) TQFrame::TabWidgetPanel },
	{ "GroupBoxPanel",  (int) TQFrame::GroupBoxPanel },
	{ "MShape",  (int) TQFrame::MShape }
    };
    static const TQMetaEnum::Item enum_1[] = {
	{ "Plain",  (int) TQFrame::Plain },
	{ "Raised",  (int) TQFrame::Raised },
	{ "Sunken",  (int) TQFrame::Sunken },
	{ "MShadow",  (int) TQFrame::MShadow }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "Shape", 14, enum_0, false },
	{ "Shadow", 4, enum_1, false }
    };
#endif // TQT_NO_PROPERTIES
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[8] = {
 	{ "int","frameWidth", 0x10000001, &TQFrame::metaObj, 0, -1 },
	{ "TQRect","contentsRect", 0x8000001, &TQFrame::metaObj, 0, -1 },
	{ "Shape","frameShape", 0x0107, &TQFrame::metaObj, &enum_tbl[0], -1 },
	{ "Shadow","frameShadow", 0x0107, &TQFrame::metaObj, &enum_tbl[1], -1 },
	{ "int","lineWidth", 0x10000103, &TQFrame::metaObj, 0, -1 },
	{ "int","margin", 0x10000103, &TQFrame::metaObj, 0, -1 },
	{ "int","midLineWidth", 0x10000103, &TQFrame::metaObj, 0, -1 },
	{ "TQRect","frameRect", 0x8001103, &TQFrame::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQFrame", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 8,
	enum_tbl, 2,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQFrame.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQFrame::tqt_invoke( int _id, TQUObject* _o )
{
    return TQWidget::tqt_invoke(_id,_o);
}

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

bool TQFrame::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 1: *v = TQVariant( this->frameWidth() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 1: *v = TQVariant( this->contentsRect() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setFrameShape((Shape&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->frameShape() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setFrameShadow((Shadow&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->frameShadow() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setLineWidth(v->asInt()); break;
	case 1: *v = TQVariant( this->lineWidth() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: 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 6: switch( f ) {
	case 0: setMidLineWidth(v->asInt()); break;
	case 1: *v = TQVariant( this->midLineWidth() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setFrameRect(v->asRect()); break;
	case 1: *v = TQVariant( this->frameRect() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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