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

TQMetaObject *TQMainWindow::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQMainWindow( "TQMainWindow", &TQMainWindow::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQMainWindow::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 TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setRightJustification", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"setUsesBigPixmaps", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setUsesTextLabel", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"setDockWindowsMovable", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"setOpaqueMoving", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"setDockMenuEnabled", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"whatsThis", 0, 0 };
    static const TQUParameter param_slot_7[] = {
	{ "dw", &static_QUType_ptr, "TQDockWindow", TQUParameter::In },
	{ "a", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"setAppropriate", 2, param_slot_7 };
    static const TQUMethod slot_8 = {"customize", 0, 0 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"setToolBarsMovable", 1, param_slot_9 };
    static const TQUMethod slot_10 = {"setUpLayout", 0, 0 };
    static const TQUParameter param_slot_11[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::Out },
	{ "globalPos", &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod slot_11 = {"showDockMenu", 2, param_slot_11 };
    static const TQUMethod slot_12 = {"menuAboutToShow", 0, 0 };
    static const TQUMethod slot_13 = {"slotPlaceChanged", 0, 0 };
    static const TQUMethod slot_14 = {"doLineUp", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "setRightJustification(bool)", &slot_0, TQMetaData::Public },
	{ "setUsesBigPixmaps(bool)", &slot_1, TQMetaData::Public },
	{ "setUsesTextLabel(bool)", &slot_2, TQMetaData::Public },
	{ "setDockWindowsMovable(bool)", &slot_3, TQMetaData::Public },
	{ "setOpaqueMoving(bool)", &slot_4, TQMetaData::Public },
	{ "setDockMenuEnabled(bool)", &slot_5, TQMetaData::Public },
	{ "whatsThis()", &slot_6, TQMetaData::Public },
	{ "setAppropriate(TQDockWindow*,bool)", &slot_7, TQMetaData::Public },
	{ "customize()", &slot_8, TQMetaData::Public },
	{ "setToolBarsMovable(bool)", &slot_9, TQMetaData::Public },
	{ "setUpLayout()", &slot_10, TQMetaData::Protected },
	{ "showDockMenu(const TQPoint&)", &slot_11, TQMetaData::Protected },
	{ "menuAboutToShow()", &slot_12, TQMetaData::Protected },
	{ "slotPlaceChanged()", &slot_13, TQMetaData::Private },
	{ "doLineUp()", &slot_14, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"pixmapSizeChanged", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"usesTextLabelChanged", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ 0, &static_QUType_ptr, "TQDockWindow", TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"dockWindowPositionChanged", 1, param_signal_2 };
    static const TQUParameter param_signal_3[] = {
	{ 0, &static_QUType_ptr, "TQToolBar", TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"toolBarPositionChanged", 1, param_signal_3 };
    static const TQMetaData signal_tbl[] = {
	{ "pixmapSizeChanged(bool)", &signal_0, TQMetaData::Public },
	{ "usesTextLabelChanged(bool)", &signal_1, TQMetaData::Public },
	{ "dockWindowPositionChanged(TQDockWindow*)", &signal_2, TQMetaData::Public },
	{ "toolBarPositionChanged(TQToolBar*)", &signal_3, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[5] = {
 	{ "bool","rightJustification", 0x12001103, &TQMainWindow::metaObj, 0, -1 },
	{ "bool","usesBigPixmaps", 0x12000103, &TQMainWindow::metaObj, 0, -1 },
	{ "bool","usesTextLabel", 0x12000103, &TQMainWindow::metaObj, 0, -1 },
	{ "bool","dockWindowsMovable", 0x12000103, &TQMainWindow::metaObj, 0, -1 },
	{ "bool","opaqueMoving", 0x12000103, &TQMainWindow::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQMainWindow", parentObject,
	slot_tbl, 15,
	signal_tbl, 4,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 5,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQMainWindow.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL pixmapSizeChanged
void TQMainWindow::pixmapSizeChanged( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 0, t0 );
}

// TQ_SIGNAL usesTextLabelChanged
void TQMainWindow::usesTextLabelChanged( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 1, t0 );
}

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

// TQ_SIGNAL dockWindowPositionChanged
void TQMainWindow::dockWindowPositionChanged( TQDockWindow* 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 toolBarPositionChanged
void TQMainWindow::toolBarPositionChanged( TQToolBar* 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 );
}

bool TQMainWindow::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setRightJustification((bool)static_QUType_bool.get(_o+1)); break;
    case 1: setUsesBigPixmaps((bool)static_QUType_bool.get(_o+1)); break;
    case 2: setUsesTextLabel((bool)static_QUType_bool.get(_o+1)); break;
    case 3: setDockWindowsMovable((bool)static_QUType_bool.get(_o+1)); break;
    case 4: setOpaqueMoving((bool)static_QUType_bool.get(_o+1)); break;
    case 5: setDockMenuEnabled((bool)static_QUType_bool.get(_o+1)); break;
    case 6: whatsThis(); break;
    case 7: setAppropriate((TQDockWindow*)static_QUType_ptr.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
    case 8: customize(); break;
    case 9: setToolBarsMovable((bool)static_QUType_bool.get(_o+1)); break;
    case 10: setUpLayout(); break;
    case 11: static_QUType_bool.set(_o,showDockMenu((const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+1)))); break;
    case 12: menuAboutToShow(); break;
    case 13: slotPlaceChanged(); break;
    case 14: doLineUp(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQMainWindow::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: pixmapSizeChanged((bool)static_QUType_bool.get(_o+1)); break;
    case 1: usesTextLabelChanged((bool)static_QUType_bool.get(_o+1)); break;
    case 2: dockWindowPositionChanged((TQDockWindow*)static_QUType_ptr.get(_o+1)); break;
    case 3: toolBarPositionChanged((TQToolBar*)static_QUType_ptr.get(_o+1)); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQMainWindow::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setRightJustification(v->asBool()); break;
	case 1: *v = TQVariant( this->rightJustification() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setUsesBigPixmaps(v->asBool()); break;
	case 1: *v = TQVariant( this->usesBigPixmaps() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setUsesTextLabel(v->asBool()); break;
	case 1: *v = TQVariant( this->usesTextLabel() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setDockWindowsMovable(v->asBool()); break;
	case 1: *v = TQVariant( this->dockWindowsMovable() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: 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;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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