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

TQMetaObject *TQAction::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQAction( "TQAction", &TQAction::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQAction::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();
    static const TQUMethod slot_0 = {"activate", 0, 0 };
    static const TQUMethod slot_1 = {"toggle", 0, 0 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setOn", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"setEnabled", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"setDisabled", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"setVisible", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"internalActivation", 0, 0 };
    static const TQUParameter param_slot_7[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"toolButtonToggled", 1, param_slot_7 };
    static const TQUMethod slot_8 = {"objectDestroyed", 0, 0 };
    static const TQUParameter param_slot_9[] = {
	{ "id", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"menuStatusText", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"showStatusText", 1, param_slot_10 };
    static const TQUMethod slot_11 = {"clearStatusText", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "activate()", &slot_0, TQMetaData::Public },
	{ "toggle()", &slot_1, TQMetaData::Public },
	{ "setOn(bool)", &slot_2, TQMetaData::Public },
	{ "setEnabled(bool)", &slot_3, TQMetaData::Public },
	{ "setDisabled(bool)", &slot_4, TQMetaData::Public },
	{ "setVisible(bool)", &slot_5, TQMetaData::Public },
	{ "internalActivation()", &slot_6, TQMetaData::Private },
	{ "toolButtonToggled(bool)", &slot_7, TQMetaData::Private },
	{ "objectDestroyed()", &slot_8, TQMetaData::Private },
	{ "menuStatusText(int)", &slot_9, TQMetaData::Private },
	{ "showStatusText(const TQString&)", &slot_10, TQMetaData::Private },
	{ "clearStatusText()", &slot_11, TQMetaData::Private }
    };
    static const TQUMethod signal_0 = {"activated", 0, 0 };
    static const TQUParameter param_signal_1[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"toggled", 1, param_signal_1 };
    static const TQMetaData signal_tbl[] = {
	{ "activated()", &signal_0, TQMetaData::Public },
	{ "toggled(bool)", &signal_1, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[11] = {
 	{ "bool","toggleAction", 0x12000103, &TQAction::metaObj, 0, -1 },
	{ "bool","on", 0x12000103, &TQAction::metaObj, 0, -1 },
	{ "bool","enabled", 0x12000103, &TQAction::metaObj, 0, -1 },
	{ "TQIconSet","iconSet", 0xd000103, &TQAction::metaObj, 0, -1 },
	{ "TQString","text", 0x3000103, &TQAction::metaObj, 0, -1 },
	{ "TQString","menuText", 0x3000103, &TQAction::metaObj, 0, -1 },
	{ "TQString","toolTip", 0x3000103, &TQAction::metaObj, 0, -1 },
	{ "TQString","statusTip", 0x3000103, &TQAction::metaObj, 0, -1 },
	{ "TQString","whatsThis", 0x3000103, &TQAction::metaObj, 0, -1 },
	{ "TQKeySequence","accel", 0x1f000103, &TQAction::metaObj, 0, -1 },
	{ "bool","visible", 0x12000103, &TQAction::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQAction", parentObject,
	slot_tbl, 12,
	signal_tbl, 2,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 11,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQAction.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL activated
void TQAction::activated()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

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

bool TQAction::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: activate(); break;
    case 1: toggle(); break;
    case 2: setOn((bool)static_QUType_bool.get(_o+1)); break;
    case 3: setEnabled((bool)static_QUType_bool.get(_o+1)); break;
    case 4: setDisabled((bool)static_QUType_bool.get(_o+1)); break;
    case 5: setVisible((bool)static_QUType_bool.get(_o+1)); break;
    case 6: internalActivation(); break;
    case 7: toolButtonToggled((bool)static_QUType_bool.get(_o+1)); break;
    case 8: objectDestroyed(); break;
    case 9: menuStatusText((int)static_QUType_int.get(_o+1)); break;
    case 10: showStatusText((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 11: clearStatusText(); break;
    default:
	return TQObject::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQAction::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setToggleAction(v->asBool()); break;
	case 1: *v = TQVariant( this->isToggleAction() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setOn(v->asBool()); break;
	case 1: *v = TQVariant( this->isOn() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setEnabled(v->asBool()); break;
	case 1: *v = TQVariant( this->isEnabled() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setIconSet(v->asIconSet()); break;
	case 1: *v = TQVariant( this->iconSet() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setText(v->asString()); break;
	case 1: *v = TQVariant( this->text() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setMenuText(v->asString()); break;
	case 1: *v = TQVariant( this->menuText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setToolTip(v->asString()); break;
	case 1: *v = TQVariant( this->toolTip() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setStatusTip(v->asString()); break;
	case 1: *v = TQVariant( this->statusTip() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 8: switch( f ) {
	case 0: setWhatsThis(v->asString()); break;
	case 1: *v = TQVariant( this->whatsThis() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: switch( f ) {
	case 0: setAccel(v->asKeySequence()); break;
	case 1: *v = TQVariant( this->accel() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 10: switch( f ) {
	case 0: setVisible(v->asBool()); break;
	case 1: *v = TQVariant( this->isVisible() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQObject::tqt_property( id, f, v );
    }
    return true;
}

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


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

TQMetaObject *TQActionGroup::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQActionGroup( "TQActionGroup", &TQActionGroup::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQActionGroup::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 = TQAction::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"childToggled", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"childDestroyed", 0, 0 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"internalComboBoxActivated", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"internalComboBoxHighlighted", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_ptr, "TQAction", TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"internalToggle", 1, param_slot_4 };
    static const TQUMethod slot_5 = {"objectDestroyed", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "childToggled(bool)", &slot_0, TQMetaData::Private },
	{ "childDestroyed()", &slot_1, TQMetaData::Private },
	{ "internalComboBoxActivated(int)", &slot_2, TQMetaData::Private },
	{ "internalComboBoxHighlighted(int)", &slot_3, TQMetaData::Private },
	{ "internalToggle(TQAction*)", &slot_4, TQMetaData::Private },
	{ "objectDestroyed()", &slot_5, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_ptr, "TQAction", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"selected", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "selected(TQAction*)", &signal_0, TQMetaData::Protected }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[2] = {
 	{ "bool","exclusive", 0x12000103, &TQActionGroup::metaObj, 0, -1 },
	{ "bool","usesDropDown", 0x12000103, &TQActionGroup::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQActionGroup", parentObject,
	slot_tbl, 6,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 2,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQActionGroup.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

#include <ntqobjectdefs.h>
#include <ntqsignalslotimp.h>

// TQ_SIGNAL selected
void TQActionGroup::selected( TQAction* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

bool TQActionGroup::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: childToggled((bool)static_QUType_bool.get(_o+1)); break;
    case 1: childDestroyed(); break;
    case 2: internalComboBoxActivated((int)static_QUType_int.get(_o+1)); break;
    case 3: internalComboBoxHighlighted((int)static_QUType_int.get(_o+1)); break;
    case 4: internalToggle((TQAction*)static_QUType_ptr.get(_o+1)); break;
    case 5: objectDestroyed(); break;
    default:
	return TQAction::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQActionGroup::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: setUsesDropDown(v->asBool()); break;
	case 1: *v = TQVariant( this->usesDropDown() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQAction::tqt_property( id, f, v );
    }
    return true;
}

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