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

TQMetaObject *TQTabWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQTabWidget( "TQTabWidget", &TQTabWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQTabWidget::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();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "Top",  (int) TQTabWidget::Top },
	{ "Bottom",  (int) TQTabWidget::Bottom }
    };
    static const TQMetaEnum::Item enum_1[] = {
	{ "Rounded",  (int) TQTabWidget::Rounded },
	{ "Triangular",  (int) TQTabWidget::Triangular }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "TabPosition", 2, enum_0, false },
	{ "TabShape", 2, enum_1, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setCurrentPage", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ 0, &static_QUType_ptr, "TQWidget", TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"showPage", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_ptr, "TQWidget", TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"removePage", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"showTab", 1, param_slot_3 };
    static const TQMetaData slot_tbl[] = {
	{ "setCurrentPage(int)", &slot_0, TQMetaData::Public },
	{ "showPage(TQWidget*)", &slot_1, TQMetaData::Public },
	{ "removePage(TQWidget*)", &slot_2, TQMetaData::Public },
	{ "showTab(int)", &slot_3, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_ptr, "TQWidget", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"currentChanged", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"selected", 1, param_signal_1 };
    static const TQMetaData signal_tbl[] = {
	{ "currentChanged(TQWidget*)", &signal_0, TQMetaData::Protected },
	{ "selected(const TQString&)", &signal_1, TQMetaData::Protected }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[6] = {
 	{ "TabPosition","tabPosition", 0x0107, &TQTabWidget::metaObj, &enum_tbl[0], -1 },
	{ "TabShape","tabShape", 0x0107, &TQTabWidget::metaObj, &enum_tbl[1], -1 },
	{ "int","margin", 0x10000103, &TQTabWidget::metaObj, 0, -1 },
	{ "int","currentPage", 0x10000103, &TQTabWidget::metaObj, 0, -1 },
	{ "int","count", 0x10000001, &TQTabWidget::metaObj, 0, -1 },
	{ "bool","autoMask", 0x12020200, &TQTabWidget::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQTabWidget", parentObject,
	slot_tbl, 4,
	signal_tbl, 2,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 6,
	enum_tbl, 2,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQTabWidget.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL currentChanged
void TQTabWidget::currentChanged( 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 );
}

// TQ_SIGNAL selected
void TQTabWidget::selected( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
}

bool TQTabWidget::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setCurrentPage((int)static_QUType_int.get(_o+1)); break;
    case 1: showPage((TQWidget*)static_QUType_ptr.get(_o+1)); break;
    case 2: removePage((TQWidget*)static_QUType_ptr.get(_o+1)); break;
    case 3: showTab((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQTabWidget::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: currentChanged((TQWidget*)static_QUType_ptr.get(_o+1)); break;
    case 1: selected((const TQString&)static_QUType_TQString.get(_o+1)); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQTabWidget::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setTabPosition((TabPosition&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->tabPosition() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setTabShape((TabShape&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->tabShape() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setMargin(v->asInt()); break;
	case 1: *v = TQVariant( this->margin() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setCurrentPage(v->asInt()); break;
	case 1: *v = TQVariant( this->currentPageIndex() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 1: *v = TQVariant( this->count() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: case 1: case 5: goto resolve;
	case 3: case 4: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
resolve:
    return TQWidget::tqt_property( staticMetaObject()->resolveProperty(id), f, v );
}

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