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

TQMetaObject *TQWorkspace::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQWorkspace( "TQWorkspace", &TQWorkspace::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQWorkspace::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 = {"cascade", 0, 0 };
    static const TQUMethod slot_1 = {"tile", 0, 0 };
    static const TQUMethod slot_2 = {"closeActiveWindow", 0, 0 };
    static const TQUMethod slot_3 = {"closeAllWindows", 0, 0 };
    static const TQUMethod slot_4 = {"activateNextWindow", 0, 0 };
    static const TQUMethod slot_5 = {"activatePrevWindow", 0, 0 };
    static const TQUMethod slot_6 = {"normalizeActiveWindow", 0, 0 };
    static const TQUMethod slot_7 = {"minimizeActiveWindow", 0, 0 };
    static const TQUMethod slot_8 = {"showOperationMenu", 0, 0 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"popupOperationMenu", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"operationMenuActivated", 1, param_slot_10 };
    static const TQUMethod slot_11 = {"operationMenuAboutToShow", 0, 0 };
    static const TQUMethod slot_12 = {"toolMenuAboutToShow", 0, 0 };
    static const TQUMethod slot_13 = {"activatePreviousWindow", 0, 0 };
    static const TQUMethod slot_14 = {"dockWindowsShow", 0, 0 };
    static const TQUMethod slot_15 = {"scrollBarChanged", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "cascade()", &slot_0, TQMetaData::Public },
	{ "tile()", &slot_1, TQMetaData::Public },
	{ "closeActiveWindow()", &slot_2, TQMetaData::Public },
	{ "closeAllWindows()", &slot_3, TQMetaData::Public },
	{ "activateNextWindow()", &slot_4, TQMetaData::Public },
	{ "activatePrevWindow()", &slot_5, TQMetaData::Public },
	{ "normalizeActiveWindow()", &slot_6, TQMetaData::Private },
	{ "minimizeActiveWindow()", &slot_7, TQMetaData::Private },
	{ "showOperationMenu()", &slot_8, TQMetaData::Private },
	{ "popupOperationMenu(const TQPoint&)", &slot_9, TQMetaData::Private },
	{ "operationMenuActivated(int)", &slot_10, TQMetaData::Private },
	{ "operationMenuAboutToShow()", &slot_11, TQMetaData::Private },
	{ "toolMenuAboutToShow()", &slot_12, TQMetaData::Private },
	{ "activatePreviousWindow()", &slot_13, TQMetaData::Private },
	{ "dockWindowsShow()", &slot_14, TQMetaData::Private },
	{ "scrollBarChanged()", &slot_15, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "w", &static_QUType_ptr, "TQWidget", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"windowActivated", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "windowActivated(TQWidget*)", &signal_0, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[1] = {
 	{ "bool","scrollBarsEnabled", 0x12000103, &TQWorkspace::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQWorkspace", parentObject,
	slot_tbl, 16,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 1,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQWorkspace.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL windowActivated
void TQWorkspace::windowActivated( TQWidget* 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 TQWorkspace::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: cascade(); break;
    case 1: tile(); break;
    case 2: closeActiveWindow(); break;
    case 3: closeAllWindows(); break;
    case 4: activateNextWindow(); break;
    case 5: activatePrevWindow(); break;
    case 6: normalizeActiveWindow(); break;
    case 7: minimizeActiveWindow(); break;
    case 8: showOperationMenu(); break;
    case 9: popupOperationMenu((const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+1))); break;
    case 10: operationMenuActivated((int)static_QUType_int.get(_o+1)); break;
    case 11: operationMenuAboutToShow(); break;
    case 12: toolMenuAboutToShow(); break;
    case 13: activatePreviousWindow(); break;
    case 14: dockWindowsShow(); break;
    case 15: scrollBarChanged(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQWorkspace::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setScrollBarsEnabled(v->asBool()); break;
	case 1: *v = TQVariant( this->scrollBarsEnabled() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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