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

TQMetaObject *Project::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_Project( "Project", &Project::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* Project::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 signal_0 = {"projectModified", 0, 0 };
    static const TQUParameter param_signal_1[] = {
	{ 0, &static_QUType_ptr, "SourceFile", TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"sourceFileAdded", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ 0, &static_QUType_ptr, "SourceFile", TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"sourceFileRemoved", 1, param_signal_2 };
    static const TQUParameter param_signal_3[] = {
	{ 0, &static_QUType_ptr, "FormFile", TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"formFileAdded", 1, param_signal_3 };
    static const TQUParameter param_signal_4[] = {
	{ 0, &static_QUType_ptr, "FormFile", TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"formFileRemoved", 1, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ 0, &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"objectAdded", 1, param_signal_5 };
    static const TQUParameter param_signal_6[] = {
	{ 0, &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod signal_6 = {"objectRemoved", 1, param_signal_6 };
    static const TQUParameter param_signal_7[] = {
	{ "fw", &static_QUType_ptr, "FormWindow", TQUParameter::In }
    };
    static const TQUMethod signal_7 = {"newFormOpened", 1, param_signal_7 };
    static const TQMetaData signal_tbl[] = {
	{ "projectModified()", &signal_0, TQMetaData::Public },
	{ "sourceFileAdded(SourceFile*)", &signal_1, TQMetaData::Public },
	{ "sourceFileRemoved(SourceFile*)", &signal_2, TQMetaData::Public },
	{ "formFileAdded(FormFile*)", &signal_3, TQMetaData::Public },
	{ "formFileRemoved(FormFile*)", &signal_4, TQMetaData::Public },
	{ "objectAdded(TQObject*)", &signal_5, TQMetaData::Public },
	{ "objectRemoved(TQObject*)", &signal_6, TQMetaData::Public },
	{ "newFormOpened(FormWindow*)", &signal_7, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"Project", parentObject,
	0, 0,
	signal_tbl, 8,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_Project.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

// TQ_SIGNAL sourceFileAdded
void Project::sourceFileAdded( SourceFile* 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 );
}

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

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

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

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

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

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

bool Project::tqt_invoke( int _id, TQUObject* _o )
{
    return TQObject::tqt_invoke(_id,_o);
}

bool Project::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: projectModified(); break;
    case 1: sourceFileAdded((SourceFile*)static_QUType_ptr.get(_o+1)); break;
    case 2: sourceFileRemoved((SourceFile*)static_QUType_ptr.get(_o+1)); break;
    case 3: formFileAdded((FormFile*)static_QUType_ptr.get(_o+1)); break;
    case 4: formFileRemoved((FormFile*)static_QUType_ptr.get(_o+1)); break;
    case 5: objectAdded((TQObject*)static_QUType_ptr.get(_o+1)); break;
    case 6: objectRemoved((TQObject*)static_QUType_ptr.get(_o+1)); break;
    case 7: newFormOpened((FormWindow*)static_QUType_ptr.get(_o+1)); break;
    default:
	return TQObject::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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