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

TQMetaObject *TQPopupMenu::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQPopupMenu( "TQPopupMenu", &TQPopupMenu::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQPopupMenu::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[] = {
	{ "itemId", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"subActivated", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "itemId", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"subHighlighted", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "itemId", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"accelActivated", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"accelDestroyed", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"popupDestroyed", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"modalActivation", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"subMenuTimer", 0, 0 };
    static const TQUMethod slot_7 = {"subScrollTimer", 0, 0 };
    static const TQUMethod slot_8 = {"allowAnimation", 0, 0 };
    static const TQUMethod slot_9 = {"toggleTearOff", 0, 0 };
    static const TQUMethod slot_10 = {"performDelayedChanges", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "subActivated(int)", &slot_0, TQMetaData::Private },
	{ "subHighlighted(int)", &slot_1, TQMetaData::Private },
	{ "accelActivated(int)", &slot_2, TQMetaData::Private },
	{ "accelDestroyed()", &slot_3, TQMetaData::Private },
	{ "popupDestroyed(TQObject*)", &slot_4, TQMetaData::Private },
	{ "modalActivation(int)", &slot_5, TQMetaData::Private },
	{ "subMenuTimer()", &slot_6, TQMetaData::Private },
	{ "subScrollTimer()", &slot_7, TQMetaData::Private },
	{ "allowAnimation()", &slot_8, TQMetaData::Private },
	{ "toggleTearOff()", &slot_9, TQMetaData::Private },
	{ "performDelayedChanges()", &slot_10, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "itemId", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"activated", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "itemId", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"highlighted", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ "itemId", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"activatedRedirect", 1, param_signal_2 };
    static const TQUParameter param_signal_3[] = {
	{ "itemId", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"highlightedRedirect", 1, param_signal_3 };
    static const TQUMethod signal_4 = {"aboutToShow", 0, 0 };
    static const TQUMethod signal_5 = {"aboutToHide", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "activated(int)", &signal_0, TQMetaData::Public },
	{ "highlighted(int)", &signal_1, TQMetaData::Public },
	{ "activatedRedirect(int)", &signal_2, TQMetaData::Public },
	{ "highlightedRedirect(int)", &signal_3, TQMetaData::Public },
	{ "aboutToShow()", &signal_4, TQMetaData::Public },
	{ "aboutToHide()", &signal_5, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[1] = {
 	{ "bool","checkable", 0x12000103, &TQPopupMenu::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQPopupMenu", parentObject,
	slot_tbl, 11,
	signal_tbl, 6,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 1,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQPopupMenu.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

// TQ_SIGNAL highlightedRedirect
void TQPopupMenu::highlightedRedirect( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 3, t0 );
}

// TQ_SIGNAL aboutToShow
void TQPopupMenu::aboutToShow()
{
    activate_signal( staticMetaObject()->signalOffset() + 4 );
}

// TQ_SIGNAL aboutToHide
void TQPopupMenu::aboutToHide()
{
    activate_signal( staticMetaObject()->signalOffset() + 5 );
}

bool TQPopupMenu::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: subActivated((int)static_QUType_int.get(_o+1)); break;
    case 1: subHighlighted((int)static_QUType_int.get(_o+1)); break;
    case 2: accelActivated((int)static_QUType_int.get(_o+1)); break;
    case 3: accelDestroyed(); break;
    case 4: popupDestroyed((TQObject*)static_QUType_ptr.get(_o+1)); break;
    case 5: modalActivation((int)static_QUType_int.get(_o+1)); break;
    case 6: subMenuTimer(); break;
    case 7: subScrollTimer(); break;
    case 8: allowAnimation(); break;
    case 9: toggleTearOff(); break;
    case 10: performDelayedChanges(); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQPopupMenu::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: activated((int)static_QUType_int.get(_o+1)); break;
    case 1: highlighted((int)static_QUType_int.get(_o+1)); break;
    case 2: activatedRedirect((int)static_QUType_int.get(_o+1)); break;
    case 3: highlightedRedirect((int)static_QUType_int.get(_o+1)); break;
    case 4: aboutToShow(); break;
    case 5: aboutToHide(); break;
    default:
	return TQFrame::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQPopupMenu::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: 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;
    default:
	return TQFrame::tqt_property( id, f, v );
    }
    return true;
}

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