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

TQMetaObject *TQButtonGroup::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQButtonGroup( "TQButtonGroup", &TQButtonGroup::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQButtonGroup::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 = TQGroupBox::staticMetaObject();
    static const TQUMethod slot_0 = {"buttonPressed", 0, 0 };
    static const TQUMethod slot_1 = {"buttonReleased", 0, 0 };
    static const TQUMethod slot_2 = {"buttonClicked", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ "on", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"buttonToggled", 1, param_slot_3 };
    static const TQMetaData slot_tbl[] = {
	{ "buttonPressed()", &slot_0, TQMetaData::Protected },
	{ "buttonReleased()", &slot_1, TQMetaData::Protected },
	{ "buttonClicked()", &slot_2, TQMetaData::Protected },
	{ "buttonToggled(bool)", &slot_3, TQMetaData::Protected }
    };
    static const TQUParameter param_signal_0[] = {
	{ "id", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"pressed", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "id", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"released", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ "id", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"clicked", 1, param_signal_2 };
    static const TQMetaData signal_tbl[] = {
	{ "pressed(int)", &signal_0, TQMetaData::Public },
	{ "released(int)", &signal_1, TQMetaData::Public },
	{ "clicked(int)", &signal_2, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[3] = {
 	{ "bool","exclusive", 0x12000103, &TQButtonGroup::metaObj, 0, -1 },
	{ "bool","radioButtonExclusive", 0x12000103, &TQButtonGroup::metaObj, 0, -1 },
	{ "int","selectedId", 0x10000003, &TQButtonGroup::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQButtonGroup", parentObject,
	slot_tbl, 4,
	signal_tbl, 3,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 3,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQButtonGroup.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL pressed
void TQButtonGroup::pressed( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

// TQ_SIGNAL released
void TQButtonGroup::released( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
}

// TQ_SIGNAL clicked
void TQButtonGroup::clicked( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 2, t0 );
}

bool TQButtonGroup::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: buttonPressed(); break;
    case 1: buttonReleased(); break;
    case 2: buttonClicked(); break;
    case 3: buttonToggled((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return TQGroupBox::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQButtonGroup::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: pressed((int)static_QUType_int.get(_o+1)); break;
    case 1: released((int)static_QUType_int.get(_o+1)); break;
    case 2: clicked((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQGroupBox::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQButtonGroup::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setExclusive(v->asBool()); break;
	case 1: *v = TQVariant( this->isExclusive() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setRadioButtonExclusive(v->asBool()); break;
	case 1: *v = TQVariant( this->isRadioButtonExclusive() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setButton(v->asInt()); break;
	case 1: *v = TQVariant( this->selectedId() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQGroupBox::tqt_property( id, f, v );
    }
    return true;
}

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