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

TQMetaObject *TQGroupBox::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQGroupBox( "TQGroupBox", &TQGroupBox::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQGroupBox::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[] = {
	{ "b", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setChecked", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"fixFocus", 0, 0 };
    static const TQUParameter param_slot_2[] = {
	{ "b", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setChildrenEnabled", 1, param_slot_2 };
    static const TQMetaData slot_tbl[] = {
	{ "setChecked(bool)", &slot_0, TQMetaData::Public },
	{ "fixFocus()", &slot_1, TQMetaData::Private },
	{ "setChildrenEnabled(bool)", &slot_2, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"toggled", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "toggled(bool)", &signal_0, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[7] = {
 	{ "TQString","title", 0x3000103, &TQGroupBox::metaObj, 0, -1 },
	{ "Alignment","alignment", 0x010f, &TQGroupBox::metaObj, 0, -1 },
	{ "Orientation","orientation", 0x110f, &TQGroupBox::metaObj, 0, -1 },
	{ "int","columns", 0x10001103, &TQGroupBox::metaObj, 0, -1 },
	{ "bool","flat", 0x12000103, &TQGroupBox::metaObj, 0, -1 },
	{ "bool","checkable", 0x12000103, &TQGroupBox::metaObj, 0, -1 },
	{ "bool","checked", 0x12000103, &TQGroupBox::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQGroupBox", parentObject,
	slot_tbl, 3,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 7,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQGroupBox.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL toggled
void TQGroupBox::toggled( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 0, t0 );
}

bool TQGroupBox::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setChecked((bool)static_QUType_bool.get(_o+1)); break;
    case 1: fixFocus(); break;
    case 2: setChildrenEnabled((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQGroupBox::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: toggled((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return TQFrame::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQGroupBox::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setTitle(v->asString()); break;
	case 1: *v = TQVariant( this->title() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: 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 2: switch( f ) {
	case 0: setOrientation((Orientation&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->orientation() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setColumns(v->asInt()); break;
	case 1: *v = TQVariant( this->columns() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setFlat(v->asBool()); break;
	case 1: *v = TQVariant( this->isFlat() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setCheckable(v->asBool()); break;
	case 1: *v = TQVariant( this->isCheckable() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setChecked(v->asBool()); break;
	case 1: *v = TQVariant( this->isChecked() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQFrame::tqt_property( id, f, v );
    }
    return true;
}

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