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

TQMetaObject *TQDockWindow::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDockWindow( "TQDockWindow", &TQDockWindow::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDockWindow::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();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "InDock",  (int) TQDockWindow::InDock },
	{ "OutsideDock",  (int) TQDockWindow::OutsideDock }
    };
    static const TQMetaEnum::Item enum_1[] = {
	{ "Never",  (int) TQDockWindow::Never },
	{ "Docked",  (int) TQDockWindow::Docked },
	{ "Undocked",  (int) TQDockWindow::Undocked },
	{ "Always",  (int) TQDockWindow::Always }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "Place", 2, enum_0, false },
	{ "CloseMode", 4, enum_1, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ "w", &static_QUType_ptr, "TQWidget", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"undock", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"undock", 0, 0 };
    static const TQUMethod slot_2 = {"dock", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ "o", &static_QUType_ptr, "Orientation", TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"setOrientation", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ "s", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"setCaption", 1, param_slot_4 };
    static const TQUMethod slot_5 = {"toggleVisible", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "undock(TQWidget*)", &slot_0, TQMetaData::Public },
	{ "undock()", &slot_1, TQMetaData::Public },
	{ "dock()", &slot_2, TQMetaData::Public },
	{ "setOrientation(Orientation)", &slot_3, TQMetaData::Public },
	{ "setCaption(const TQString&)", &slot_4, TQMetaData::Public },
	{ "toggleVisible()", &slot_5, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "o", &static_QUType_ptr, "Orientation", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"orientationChanged", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "p", &static_QUType_ptr, "TQDockWindow::Place", TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"placeChanged", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"visibilityChanged", 1, param_signal_2 };
    static const TQMetaData signal_tbl[] = {
	{ "orientationChanged(Orientation)", &signal_0, TQMetaData::Public },
	{ "placeChanged(TQDockWindow::Place)", &signal_1, TQMetaData::Public },
	{ "visibilityChanged(bool)", &signal_2, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[10] = {
 	{ "int","closeMode", 0x10000103, &TQDockWindow::metaObj, 0, -1 },
	{ "bool","resizeEnabled", 0x12000103, &TQDockWindow::metaObj, 0, -1 },
	{ "bool","movingEnabled", 0x12000103, &TQDockWindow::metaObj, 0, -1 },
	{ "bool","horizontallyStretchable", 0x12000103, &TQDockWindow::metaObj, 0, -1 },
	{ "bool","verticallyStretchable", 0x12000103, &TQDockWindow::metaObj, 0, -1 },
	{ "bool","stretchable", 0x12000001, &TQDockWindow::metaObj, 0, -1 },
	{ "bool","newLine", 0x12000103, &TQDockWindow::metaObj, 0, -1 },
	{ "bool","opaqueMoving", 0x12000103, &TQDockWindow::metaObj, 0, -1 },
	{ "int","offset", 0x10000103, &TQDockWindow::metaObj, 0, -1 },
	{ "Place","place", 0x0005, &TQDockWindow::metaObj, &enum_tbl[0], -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQDockWindow", parentObject,
	slot_tbl, 6,
	signal_tbl, 3,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 10,
	enum_tbl, 2,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDockWindow.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL orientationChanged
void TQDockWindow::orientationChanged( Orientation 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 placeChanged
void TQDockWindow::placeChanged( TQDockWindow::Place 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 visibilityChanged
void TQDockWindow::visibilityChanged( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 2, t0 );
}

bool TQDockWindow::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: undock((TQWidget*)static_QUType_ptr.get(_o+1)); break;
    case 1: undock(); break;
    case 2: dock(); break;
    case 3: setOrientation((Orientation)(*((Orientation*)static_QUType_ptr.get(_o+1)))); break;
    case 4: setCaption((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 5: toggleVisible(); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQDockWindow::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: orientationChanged((Orientation)(*((Orientation*)static_QUType_ptr.get(_o+1)))); break;
    case 1: placeChanged((TQDockWindow::Place)(*((TQDockWindow::Place*)static_QUType_ptr.get(_o+1)))); break;
    case 2: visibilityChanged((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return TQFrame::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQDockWindow::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setCloseMode(v->asInt()); break;
	case 1: *v = TQVariant( this->closeMode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setResizeEnabled(v->asBool()); break;
	case 1: *v = TQVariant( this->isResizeEnabled() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setMovingEnabled(v->asBool()); break;
	case 1: *v = TQVariant( this->isMovingEnabled() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setHorizontallyStretchable(v->asBool()); break;
	case 1: *v = TQVariant( this->isHorizontallyStretchable() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setVerticallyStretchable(v->asBool()); break;
	case 1: *v = TQVariant( this->isVerticallyStretchable() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 1: *v = TQVariant( this->isStretchable() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setNewLine(v->asBool()); break;
	case 1: *v = TQVariant( this->newLine() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setOpaqueMoving(v->asBool()); break;
	case 1: *v = TQVariant( this->opaqueMoving() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 8: switch( f ) {
	case 0: setOffset(v->asInt()); break;
	case 1: *v = TQVariant( this->offset() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: switch( f ) {
	case 1: *v = TQVariant( (int)this->place() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQFrame::tqt_property( id, f, v );
    }
    return true;
}

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