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

TQMetaObject *TQHeader::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQHeader( "TQHeader", &TQHeader::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQHeader::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[] = {
	{ "enable", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setUpdatesEnabled", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "pos", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"setOffset", 1, param_slot_1 };
    static const TQMetaData slot_tbl[] = {
	{ "setUpdatesEnabled(bool)", &slot_0, TQMetaData::Public },
	{ "setOffset(int)", &slot_1, TQMetaData::Public }
    };
    static const TQUParameter param_signal_0[] = {
	{ "section", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"clicked", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "section", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"pressed", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ "section", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"released", 1, param_signal_2 };
    static const TQUParameter param_signal_3[] = {
	{ "section", &static_QUType_int, 0, TQUParameter::In },
	{ "oldSize", &static_QUType_int, 0, TQUParameter::In },
	{ "newSize", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"sizeChange", 3, param_signal_3 };
    static const TQUParameter param_signal_4[] = {
	{ "section", &static_QUType_int, 0, TQUParameter::In },
	{ "fromIndex", &static_QUType_int, 0, TQUParameter::In },
	{ "toIndex", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"indexChange", 3, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"sectionClicked", 1, param_signal_5 };
    static const TQUParameter param_signal_6[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_6 = {"moved", 2, param_signal_6 };
    static const TQUParameter param_signal_7[] = {
	{ "section", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_7 = {"sectionHandleDoubleClicked", 1, param_signal_7 };
    static const TQMetaData signal_tbl[] = {
	{ "clicked(int)", &signal_0, TQMetaData::Public },
	{ "pressed(int)", &signal_1, TQMetaData::Public },
	{ "released(int)", &signal_2, TQMetaData::Public },
	{ "sizeChange(int,int,int)", &signal_3, TQMetaData::Public },
	{ "indexChange(int,int,int)", &signal_4, TQMetaData::Public },
	{ "sectionClicked(int)", &signal_5, TQMetaData::Public },
	{ "moved(int,int)", &signal_6, TQMetaData::Public },
	{ "sectionHandleDoubleClicked(int)", &signal_7, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[6] = {
 	{ "Orientation","orientation", 0x010f, &TQHeader::metaObj, 0, -1 },
	{ "bool","tracking", 0x12000103, &TQHeader::metaObj, 0, -1 },
	{ "int","count", 0x10000001, &TQHeader::metaObj, 0, -1 },
	{ "int","offset", 0x10000103, &TQHeader::metaObj, 0, -1 },
	{ "bool","moving", 0x12000003, &TQHeader::metaObj, 0, -1 },
	{ "bool","stretching", 0x12000003, &TQHeader::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQHeader", parentObject,
	slot_tbl, 2,
	signal_tbl, 8,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 6,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQHeader.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL clicked
void TQHeader::clicked( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

// TQ_SIGNAL pressed
void TQHeader::pressed( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
}

// TQ_SIGNAL released
void TQHeader::released( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 2, t0 );
}

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

// TQ_SIGNAL sizeChange
void TQHeader::sizeChange( int t0, int t1, int t2 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 3 );
    if ( !clist )
	return;
    TQUObject o[4];
    static_QUType_int.set(o+1,t0);
    static_QUType_int.set(o+2,t1);
    static_QUType_int.set(o+3,t2);
    o[3].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL indexChange
void TQHeader::indexChange( int t0, int t1, int t2 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 4 );
    if ( !clist )
	return;
    TQUObject o[4];
    static_QUType_int.set(o+1,t0);
    static_QUType_int.set(o+2,t1);
    static_QUType_int.set(o+3,t2);
    o[3].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL sectionClicked
void TQHeader::sectionClicked( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 5, t0 );
}

// TQ_SIGNAL moved
void TQHeader::moved( int t0, int t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 6 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_int.set(o+1,t0);
    static_QUType_int.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL sectionHandleDoubleClicked
void TQHeader::sectionHandleDoubleClicked( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 7, t0 );
}

bool TQHeader::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setUpdatesEnabled((bool)static_QUType_bool.get(_o+1)); break;
    case 1: setOffset((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQHeader::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: clicked((int)static_QUType_int.get(_o+1)); break;
    case 1: pressed((int)static_QUType_int.get(_o+1)); break;
    case 2: released((int)static_QUType_int.get(_o+1)); break;
    case 3: sizeChange((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(int)static_QUType_int.get(_o+3)); break;
    case 4: indexChange((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(int)static_QUType_int.get(_o+3)); break;
    case 5: sectionClicked((int)static_QUType_int.get(_o+1)); break;
    case 6: moved((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 7: sectionHandleDoubleClicked((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQHeader::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setOrientation((Orientation&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->orientation() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setTracking(v->asBool()); break;
	case 1: *v = TQVariant( this->tracking() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 1: *v = TQVariant( this->count() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: 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 4: 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 5: switch( f ) {
	case 0: setStretchEnabled(v->asBool()); break;
	case 1: *v = TQVariant( this->isStretchEnabled() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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