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

TQMetaObject *TQProgressDialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQProgressDialog( "TQProgressDialog", &TQProgressDialog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQProgressDialog::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"cancel", 0, 0 };
    static const TQUMethod slot_1 = {"reset", 0, 0 };
    static const TQUParameter param_slot_2[] = {
	{ "totalSteps", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setTotalSteps", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ "progress", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"setProgress", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ "progress", &static_QUType_int, 0, TQUParameter::In },
	{ "totalSteps", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"setProgress", 2, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"setLabelText", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"setCancelButtonText", 1, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ "ms", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"setMinimumDuration", 1, param_slot_7 };
    static const TQUMethod slot_8 = {"forceShow", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "cancel()", &slot_0, TQMetaData::Public },
	{ "reset()", &slot_1, TQMetaData::Public },
	{ "setTotalSteps(int)", &slot_2, TQMetaData::Public },
	{ "setProgress(int)", &slot_3, TQMetaData::Public },
	{ "setProgress(int,int)", &slot_4, TQMetaData::Public },
	{ "setLabelText(const TQString&)", &slot_5, TQMetaData::Public },
	{ "setCancelButtonText(const TQString&)", &slot_6, TQMetaData::Public },
	{ "setMinimumDuration(int)", &slot_7, TQMetaData::Public },
	{ "forceShow()", &slot_8, TQMetaData::Protected }
    };
    static const TQUMethod signal_0 = {"cancelled", 0, 0 };
    static const TQUMethod signal_1 = {"canceled", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "cancelled()", &signal_0, TQMetaData::Public },
	{ "canceled()", &signal_1, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[8] = {
 	{ "bool","wasCancelled", 0x12011001, &TQProgressDialog::metaObj, 0, -1 },
	{ "bool","wasCanceled", 0x12000001, &TQProgressDialog::metaObj, 0, -1 },
	{ "int","totalSteps", 0x10000103, &TQProgressDialog::metaObj, 0, -1 },
	{ "int","progress", 0x10000103, &TQProgressDialog::metaObj, 0, -1 },
	{ "bool","autoReset", 0x12000103, &TQProgressDialog::metaObj, 0, -1 },
	{ "bool","autoClose", 0x12000103, &TQProgressDialog::metaObj, 0, -1 },
	{ "int","minimumDuration", 0x10000103, &TQProgressDialog::metaObj, 0, -1 },
	{ "TQString","labelText", 0x3000103, &TQProgressDialog::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQProgressDialog", parentObject,
	slot_tbl, 9,
	signal_tbl, 2,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 8,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQProgressDialog.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL cancelled
void TQProgressDialog::cancelled()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

// TQ_SIGNAL canceled
void TQProgressDialog::canceled()
{
    activate_signal( staticMetaObject()->signalOffset() + 1 );
}

bool TQProgressDialog::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: cancel(); break;
    case 1: reset(); break;
    case 2: setTotalSteps((int)static_QUType_int.get(_o+1)); break;
    case 3: setProgress((int)static_QUType_int.get(_o+1)); break;
    case 4: setProgress((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 5: setLabelText((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 6: setCancelButtonText((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 7: setMinimumDuration((int)static_QUType_int.get(_o+1)); break;
    case 8: forceShow(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQProgressDialog::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: cancelled(); break;
    case 1: canceled(); break;
    default:
	return TQDialog::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQProgressDialog::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 1: *v = TQVariant( this->wasCancelled() ); break;
	case 4: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 1: *v = TQVariant( this->wasCanceled() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: 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 3: 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 4: switch( f ) {
	case 0: setAutoReset(v->asBool()); break;
	case 1: *v = TQVariant( this->autoReset() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setAutoClose(v->asBool()); break;
	case 1: *v = TQVariant( this->autoClose() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setMinimumDuration(v->asInt()); break;
	case 1: *v = TQVariant( this->minimumDuration() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setLabelText(v->asString()); break;
	case 1: *v = TQVariant( this->labelText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQDialog::tqt_property( id, f, v );
    }
    return true;
}

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