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

TQMetaObject *TQLCDNumber::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQLCDNumber( "TQLCDNumber", &TQLCDNumber::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQLCDNumber::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();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "Hex",  (int) TQLCDNumber::Hex },
	{ "Dec",  (int) TQLCDNumber::Dec },
	{ "Oct",  (int) TQLCDNumber::Oct },
	{ "Bin",  (int) TQLCDNumber::Bin },
	{ "HEX",  (int) TQLCDNumber::HEX },
	{ "DEC",  (int) TQLCDNumber::DEC },
	{ "OCT",  (int) TQLCDNumber::OCT },
	{ "BIN",  (int) TQLCDNumber::BIN }
    };
    static const TQMetaEnum::Item enum_1[] = {
	{ "Outline",  (int) TQLCDNumber::Outline },
	{ "Filled",  (int) TQLCDNumber::Filled },
	{ "Flat",  (int) TQLCDNumber::Flat }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "Mode", 8, enum_0, false },
	{ "SegmentStyle", 3, enum_1, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ "str", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"display", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "num", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"display", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "num", &static_QUType_double, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"display", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"setHexMode", 0, 0 };
    static const TQUMethod slot_4 = {"setDecMode", 0, 0 };
    static const TQUMethod slot_5 = {"setOctMode", 0, 0 };
    static const TQUMethod slot_6 = {"setBinMode", 0, 0 };
    static const TQUParameter param_slot_7[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"setSmallDecimalPoint", 1, param_slot_7 };
    static const TQMetaData slot_tbl[] = {
	{ "display(const TQString&)", &slot_0, TQMetaData::Public },
	{ "display(int)", &slot_1, TQMetaData::Public },
	{ "display(double)", &slot_2, TQMetaData::Public },
	{ "setHexMode()", &slot_3, TQMetaData::Public },
	{ "setDecMode()", &slot_4, TQMetaData::Public },
	{ "setOctMode()", &slot_5, TQMetaData::Public },
	{ "setBinMode()", &slot_6, TQMetaData::Public },
	{ "setSmallDecimalPoint(bool)", &slot_7, TQMetaData::Public }
    };
    static const TQUMethod signal_0 = {"overflow", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "overflow()", &signal_0, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[6] = {
 	{ "bool","smallDecimalPoint", 0x12000103, &TQLCDNumber::metaObj, 0, -1 },
	{ "int","numDigits", 0x10000103, &TQLCDNumber::metaObj, 0, -1 },
	{ "Mode","mode", 0x0107, &TQLCDNumber::metaObj, &enum_tbl[0], -1 },
	{ "SegmentStyle","segmentStyle", 0x0107, &TQLCDNumber::metaObj, &enum_tbl[1], -1 },
	{ "double","value", 0x13000003, &TQLCDNumber::metaObj, 0, -1 },
	{ "int","intValue", 0x10000003, &TQLCDNumber::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQLCDNumber", parentObject,
	slot_tbl, 8,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 6,
	enum_tbl, 2,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQLCDNumber.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

bool TQLCDNumber::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: display((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: display((int)static_QUType_int.get(_o+1)); break;
    case 2: display((double)static_QUType_double.get(_o+1)); break;
    case 3: setHexMode(); break;
    case 4: setDecMode(); break;
    case 5: setOctMode(); break;
    case 6: setBinMode(); break;
    case 7: setSmallDecimalPoint((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQLCDNumber::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: overflow(); break;
    default:
	return TQFrame::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQLCDNumber::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setSmallDecimalPoint(v->asBool()); break;
	case 1: *v = TQVariant( this->smallDecimalPoint() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setNumDigits(v->asInt()); break;
	case 1: *v = TQVariant( this->numDigits() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setMode((Mode&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->mode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setSegmentStyle((SegmentStyle&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->segmentStyle() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: display(v->asDouble()); break;
	case 1: *v = TQVariant( this->value() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: display(v->asInt()); break;
	case 1: *v = TQVariant( this->intValue() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQFrame::tqt_property( id, f, v );
    }
    return true;
}

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