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

TQMetaObject *TQProgressBar::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQProgressBar( "TQProgressBar", &TQProgressBar::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQProgressBar::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();
    static const TQUMethod slot_0 = {"reset", 0, 0 };
    static const TQUParameter param_slot_1[] = {
	{ "totalSteps", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"setTotalSteps", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "progress", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setProgress", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ "progress", &static_QUType_int, 0, TQUParameter::In },
	{ "totalSteps", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"setProgress", 2, param_slot_3 };
    static const TQMetaData slot_tbl[] = {
	{ "reset()", &slot_0, TQMetaData::Public },
	{ "setTotalSteps(int)", &slot_1, TQMetaData::Public },
	{ "setProgress(int)", &slot_2, TQMetaData::Public },
	{ "setProgress(int,int)", &slot_3, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[7] = {
 	{ "int","totalSteps", 0x10000103, &TQProgressBar::metaObj, 0, -1 },
	{ "int","progress", 0x10000103, &TQProgressBar::metaObj, 0, -1 },
	{ "TQString","progressString", 0x3000001, &TQProgressBar::metaObj, 0, -1 },
	{ "bool","centerIndicator", 0x12000103, &TQProgressBar::metaObj, 0, -1 },
	{ "bool","indicatorFollowsStyle", 0x12000103, &TQProgressBar::metaObj, 0, -1 },
	{ "bool","percentageVisible", 0x12000103, &TQProgressBar::metaObj, 0, -1 },
	{ "Orientation","orientation", 0x010f, &TQProgressBar::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQProgressBar", parentObject,
	slot_tbl, 4,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 7,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQProgressBar.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQProgressBar::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: reset(); break;
    case 1: setTotalSteps((int)static_QUType_int.get(_o+1)); break;
    case 2: setProgress((int)static_QUType_int.get(_o+1)); break;
    case 3: setProgress((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQProgressBar::tqt_emit( int _id, TQUObject* _o )
{
    return TQFrame::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool TQProgressBar::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setTotalSteps(v->asInt()); break;
	case 1: *v = TQVariant( this->totalSteps() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setProgress(v->asInt()); break;
	case 1: *v = TQVariant( this->progress() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 1: *v = TQVariant( this->progressString() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setCenterIndicator(v->asBool()); break;
	case 1: *v = TQVariant( this->centerIndicator() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setIndicatorFollowsStyle(v->asBool()); break;
	case 1: *v = TQVariant( this->indicatorFollowsStyle() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setPercentageVisible(v->asBool()); break;
	case 1: *v = TQVariant( this->percentageVisible() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: 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;
    default:
	return TQFrame::tqt_property( id, f, v );
    }
    return true;
}

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