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

TQMetaObject *TQDial::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDial( "TQDial", &TQDial::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDial::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[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setValue", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"addLine", 0, 0 };
    static const TQUMethod slot_2 = {"subtractLine", 0, 0 };
    static const TQUMethod slot_3 = {"addPage", 0, 0 };
    static const TQUMethod slot_4 = {"subtractPage", 0, 0 };
    static const TQUParameter param_slot_5[] = {
	{ "b", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"setNotchesVisible", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ "on", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"setWrapping", 1, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ "enable", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"setTracking", 1, param_slot_7 };
    static const TQMetaData slot_tbl[] = {
	{ "setValue(int)", &slot_0, TQMetaData::Public },
	{ "addLine()", &slot_1, TQMetaData::Public },
	{ "subtractLine()", &slot_2, TQMetaData::Public },
	{ "addPage()", &slot_3, TQMetaData::Public },
	{ "subtractPage()", &slot_4, TQMetaData::Public },
	{ "setNotchesVisible(bool)", &slot_5, TQMetaData::Public },
	{ "setWrapping(bool)", &slot_6, TQMetaData::Public },
	{ "setTracking(bool)", &slot_7, TQMetaData::Public }
    };
    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 TQUMethod signal_1 = {"dialPressed", 0, 0 };
    static const TQUParameter param_signal_2[] = {
	{ "value", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"dialMoved", 1, param_signal_2 };
    static const TQUMethod signal_3 = {"dialReleased", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "valueChanged(int)", &signal_0, TQMetaData::Public },
	{ "dialPressed()", &signal_1, TQMetaData::Public },
	{ "dialMoved(int)", &signal_2, TQMetaData::Public },
	{ "dialReleased()", &signal_3, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[10] = {
 	{ "bool","tracking", 0x12000103, &TQDial::metaObj, 0, -1 },
	{ "bool","wrapping", 0x12000103, &TQDial::metaObj, 0, -1 },
	{ "int","notchSize", 0x10000001, &TQDial::metaObj, 0, -1 },
	{ "double","notchTarget", 0x13000103, &TQDial::metaObj, 0, -1 },
	{ "bool","notchesVisible", 0x12000103, &TQDial::metaObj, 0, -1 },
	{ "int","minValue", 0x10000103, &TQDial::metaObj, 0, -1 },
	{ "int","maxValue", 0x10000103, &TQDial::metaObj, 0, -1 },
	{ "int","lineStep", 0x10000103, &TQDial::metaObj, 0, -1 },
	{ "int","pageStep", 0x10000103, &TQDial::metaObj, 0, -1 },
	{ "int","value", 0x10000103, &TQDial::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQDial", parentObject,
	slot_tbl, 8,
	signal_tbl, 4,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 10,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDial.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

// TQ_SIGNAL dialReleased
void TQDial::dialReleased()
{
    activate_signal( staticMetaObject()->signalOffset() + 3 );
}

bool TQDial::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setValue((int)static_QUType_int.get(_o+1)); break;
    case 1: addLine(); break;
    case 2: subtractLine(); break;
    case 3: addPage(); break;
    case 4: subtractPage(); break;
    case 5: setNotchesVisible((bool)static_QUType_bool.get(_o+1)); break;
    case 6: setWrapping((bool)static_QUType_bool.get(_o+1)); break;
    case 7: setTracking((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQDial::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: valueChanged((int)static_QUType_int.get(_o+1)); break;
    case 1: dialPressed(); break;
    case 2: dialMoved((int)static_QUType_int.get(_o+1)); break;
    case 3: dialReleased(); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQDial::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: 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 1: 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 2: switch( f ) {
	case 1: *v = TQVariant( this->notchSize() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setNotchTarget(v->asDouble()); break;
	case 1: *v = TQVariant( this->notchTarget() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setNotchesVisible(v->asBool()); break;
	case 1: *v = TQVariant( this->notchesVisible() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: 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 6: 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 7: 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 8: switch( f ) {
	case 0: setPageStep(v->asInt()); break;
	case 1: *v = TQVariant( this->pageStep() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: 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 TQDial::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
