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

TQMetaObject *TQSpinBox::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQSpinBox( "TQSpinBox", &TQSpinBox::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQSpinBox::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[] = {
	{ "UpDownArrows",  (int) TQSpinBox::UpDownArrows },
	{ "PlusMinus",  (int) TQSpinBox::PlusMinus }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "ButtonSymbols", 2, enum_0, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ "value", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setValue", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "text", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"setPrefix", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "text", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setSuffix", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"stepUp", 0, 0 };
    static const TQUMethod slot_4 = {"stepDown", 0, 0 };
    static const TQUParameter param_slot_5[] = {
	{ "enabled", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"setEnabled", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"selectAll", 0, 0 };
    static const TQUMethod slot_7 = {"textChanged", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "setValue(int)", &slot_0, TQMetaData::Public },
	{ "setPrefix(const TQString&)", &slot_1, TQMetaData::Public },
	{ "setSuffix(const TQString&)", &slot_2, TQMetaData::Public },
	{ "stepUp()", &slot_3, TQMetaData::Public },
	{ "stepDown()", &slot_4, TQMetaData::Public },
	{ "setEnabled(bool)", &slot_5, TQMetaData::Public },
	{ "selectAll()", &slot_6, TQMetaData::Public },
	{ "textChanged()", &slot_7, TQMetaData::Protected }
    };
    static const TQUParameter param_signal_0[] = {
	{ "value", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"valueChanged", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "valueText", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"valueChanged", 1, param_signal_1 };
    static const TQMetaData signal_tbl[] = {
	{ "valueChanged(int)", &signal_0, TQMetaData::Public },
	{ "valueChanged(const TQString&)", &signal_1, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[11] = {
 	{ "TQString","text", 0x3000001, &TQSpinBox::metaObj, 0, -1 },
	{ "TQString","prefix", 0x3000103, &TQSpinBox::metaObj, 0, -1 },
	{ "TQString","suffix", 0x3000103, &TQSpinBox::metaObj, 0, -1 },
	{ "TQString","cleanText", 0x3000001, &TQSpinBox::metaObj, 0, -1 },
	{ "TQString","specialValueText", 0x3000103, &TQSpinBox::metaObj, 0, -1 },
	{ "bool","wrapping", 0x12000103, &TQSpinBox::metaObj, 0, -1 },
	{ "ButtonSymbols","buttonSymbols", 0x0107, &TQSpinBox::metaObj, &enum_tbl[0], -1 },
	{ "int","maxValue", 0x10000103, &TQSpinBox::metaObj, 0, -1 },
	{ "int","minValue", 0x10000103, &TQSpinBox::metaObj, 0, -1 },
	{ "int","lineStep", 0x10000103, &TQSpinBox::metaObj, 0, -1 },
	{ "int","value", 0x10000103, &TQSpinBox::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQSpinBox", parentObject,
	slot_tbl, 8,
	signal_tbl, 2,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 11,
	enum_tbl, 1,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQSpinBox.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

bool TQSpinBox::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setValue((int)static_QUType_int.get(_o+1)); break;
    case 1: setPrefix((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 2: setSuffix((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 3: stepUp(); break;
    case 4: stepDown(); break;
    case 5: setEnabled((bool)static_QUType_bool.get(_o+1)); break;
    case 6: selectAll(); break;
    case 7: textChanged(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQSpinBox::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 1: *v = TQVariant( this->text() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setPrefix(v->asString()); break;
	case 1: *v = TQVariant( this->prefix() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setSuffix(v->asString()); break;
	case 1: *v = TQVariant( this->suffix() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 1: *v = TQVariant( this->cleanText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setSpecialValueText(v->asString()); break;
	case 1: *v = TQVariant( this->specialValueText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setWrapping(v->asBool()); break;
	case 1: *v = TQVariant( this->wrapping() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setButtonSymbols((ButtonSymbols&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->buttonSymbols() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setMaxValue(v->asInt()); break;
	case 1: *v = TQVariant( this->maxValue() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 8: switch( f ) {
	case 0: setMinValue(v->asInt()); break;
	case 1: *v = TQVariant( this->minValue() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: switch( f ) {
	case 0: setLineStep(v->asInt()); break;
	case 1: *v = TQVariant( this->lineStep() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 10: switch( f ) {
	case 0: setValue(v->asInt()); break;
	case 1: *v = TQVariant( this->value() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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