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

TQMetaObject *Workspace::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_Workspace( "Workspace", &Workspace::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* Workspace::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 = TQListView::staticMetaObject();
    static const TQUMethod slot_0 = {"update", 0, 0 };
    static const TQUParameter param_slot_1[] = {
	{ 0, &static_QUType_ptr, "FormFile", TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"update", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "fw", &static_QUType_ptr, "FormWindow", TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"activeFormChanged", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ "se", &static_QUType_ptr, "SourceEditor", TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"activeEditorChanged", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ "i", &static_QUType_ptr, "TQListViewItem", TQUParameter::In },
	{ "pos", &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"itemClicked", 3, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ "i", &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"itemDoubleClicked", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ "i", &static_QUType_ptr, "TQListViewItem", TQUParameter::In },
	{ "pos", &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"rmbClicked", 2, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ "buffer", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"bufferChosen", 1, param_slot_7 };
    static const TQUParameter param_slot_8[] = {
	{ 0, &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"projectDestroyed", 1, param_slot_8 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_ptr, "SourceFile", TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"sourceFileAdded", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ 0, &static_QUType_ptr, "SourceFile", TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"sourceFileRemoved", 1, param_slot_10 };
    static const TQUParameter param_slot_11[] = {
	{ 0, &static_QUType_ptr, "FormFile", TQUParameter::In }
    };
    static const TQUMethod slot_11 = {"formFileAdded", 1, param_slot_11 };
    static const TQUParameter param_slot_12[] = {
	{ 0, &static_QUType_ptr, "FormFile", TQUParameter::In }
    };
    static const TQUMethod slot_12 = {"formFileRemoved", 1, param_slot_12 };
    static const TQUParameter param_slot_13[] = {
	{ 0, &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod slot_13 = {"objectAdded", 1, param_slot_13 };
    static const TQUParameter param_slot_14[] = {
	{ 0, &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod slot_14 = {"objectRemoved", 1, param_slot_14 };
    static const TQMetaData slot_tbl[] = {
	{ "update()", &slot_0, TQMetaData::Public },
	{ "update(FormFile*)", &slot_1, TQMetaData::Public },
	{ "activeFormChanged(FormWindow*)", &slot_2, TQMetaData::Public },
	{ "activeEditorChanged(SourceEditor*)", &slot_3, TQMetaData::Public },
	{ "itemClicked(int,TQListViewItem*,const TQPoint&)", &slot_4, TQMetaData::Private },
	{ "itemDoubleClicked(TQListViewItem*)", &slot_5, TQMetaData::Private },
	{ "rmbClicked(TQListViewItem*,const TQPoint&)", &slot_6, TQMetaData::Private },
	{ "bufferChosen(const TQString&)", &slot_7, TQMetaData::Private },
	{ "projectDestroyed(TQObject*)", &slot_8, TQMetaData::Private },
	{ "sourceFileAdded(SourceFile*)", &slot_9, TQMetaData::Private },
	{ "sourceFileRemoved(SourceFile*)", &slot_10, TQMetaData::Private },
	{ "formFileAdded(FormFile*)", &slot_11, TQMetaData::Private },
	{ "formFileRemoved(FormFile*)", &slot_12, TQMetaData::Private },
	{ "objectAdded(TQObject*)", &slot_13, TQMetaData::Private },
	{ "objectRemoved(TQObject*)", &slot_14, TQMetaData::Private }
    };
    metaObj = TQMetaObject::new_metaobject(
	"Workspace", parentObject,
	slot_tbl, 15,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_Workspace.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool Workspace::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: update(); break;
    case 1: update((FormFile*)static_QUType_ptr.get(_o+1)); break;
    case 2: activeFormChanged((FormWindow*)static_QUType_ptr.get(_o+1)); break;
    case 3: activeEditorChanged((SourceEditor*)static_QUType_ptr.get(_o+1)); break;
    case 4: itemClicked((int)static_QUType_int.get(_o+1),(TQListViewItem*)static_QUType_ptr.get(_o+2),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+3))); break;
    case 5: itemDoubleClicked((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 6: rmbClicked((TQListViewItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2))); break;
    case 7: bufferChosen((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 8: projectDestroyed((TQObject*)static_QUType_ptr.get(_o+1)); break;
    case 9: sourceFileAdded((SourceFile*)static_QUType_ptr.get(_o+1)); break;
    case 10: sourceFileRemoved((SourceFile*)static_QUType_ptr.get(_o+1)); break;
    case 11: formFileAdded((FormFile*)static_QUType_ptr.get(_o+1)); break;
    case 12: formFileRemoved((FormFile*)static_QUType_ptr.get(_o+1)); break;
    case 13: objectAdded((TQObject*)static_QUType_ptr.get(_o+1)); break;
    case 14: objectRemoved((TQObject*)static_QUType_ptr.get(_o+1)); break;
    default:
	return TQListView::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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