/****************************************************************************
** PopupMenuEditorItem meta object code from reading C++ file 'standard input'
**
** 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 "/tmp/buildd/tde-packaging/arch/tde-devel/tde-tdevelop/src/tdevelop-trinity-14.1.6/kdevdesigner/designer/popupmenueditor.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

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

TQMetaObject *PopupMenuEditorItem::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PopupMenuEditorItem( "PopupMenuEditorItem", &PopupMenuEditorItem::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* PopupMenuEditorItem::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 = {"selfDestruct", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "selfDestruct()", &slot_0, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"PopupMenuEditorItem", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_PopupMenuEditorItem.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool PopupMenuEditorItem::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: selfDestruct(); break;
    default:
	return TQObject::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool PopupMenuEditorItem::tqt_property( int id, int f, TQVariant* v)
{
    return TQObject::tqt_property( id, f, v);
}

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


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

TQMetaObject *PopupMenuEditor::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PopupMenuEditor( "PopupMenuEditor", &PopupMenuEditor::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* PopupMenuEditor::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();
    static const TQUMethod slot_0 = {"cut", 0, 0 };
    static const TQUMethod slot_1 = {"copy", 0, 0 };
    static const TQUMethod slot_2 = {"paste", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ "index", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"remove", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ "a", &static_QUType_ptr, "TQAction", TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"remove", 1, param_slot_4 };
    static const TQUMethod slot_5 = {"resizeToContents", 0, 0 };
    static const TQUMethod slot_6 = {"showSubMenu", 0, 0 };
    static const TQUMethod slot_7 = {"hideSubMenu", 0, 0 };
    static const TQUMethod slot_8 = {"focusOnSubMenu", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "cut()", &slot_0, TQMetaData::Public },
	{ "copy()", &slot_1, TQMetaData::Public },
	{ "paste()", &slot_2, TQMetaData::Public },
	{ "remove(int)", &slot_3, TQMetaData::Public },
	{ "remove(TQAction*)", &slot_4, TQMetaData::Public },
	{ "resizeToContents()", &slot_5, TQMetaData::Public },
	{ "showSubMenu()", &slot_6, TQMetaData::Public },
	{ "hideSubMenu()", &slot_7, TQMetaData::Public },
	{ "focusOnSubMenu()", &slot_8, TQMetaData::Public }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_ptr, "TQAction", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"inserted", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ 0, &static_QUType_ptr, "TQAction", TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"removed", 1, param_signal_1 };
    static const TQMetaData signal_tbl[] = {
	{ "inserted(TQAction*)", &signal_0, TQMetaData::Public },
	{ "removed(TQAction*)", &signal_1, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"PopupMenuEditor", parentObject,
	slot_tbl, 9,
	signal_tbl, 2,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_PopupMenuEditor.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL inserted
void PopupMenuEditor::inserted( 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 );
}

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

bool PopupMenuEditor::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: cut(); break;
    case 1: copy(); break;
    case 2: paste(); break;
    case 3: remove((int)static_QUType_int.get(_o+1)); break;
    case 4: remove((TQAction*)static_QUType_ptr.get(_o+1)); break;
    case 5: resizeToContents(); break;
    case 6: showSubMenu(); break;
    case 7: hideSubMenu(); break;
    case 8: focusOnSubMenu(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool PopupMenuEditor::tqt_property( int id, int f, TQVariant* v)
{
    return TQWidget::tqt_property( id, f, v);
}

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