/****************************************************************************
** TQDateTimeEditBase meta object code from reading C++ file 'ntqdatetimeedit.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/ntqdatetimeedit.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

const char *TQDateTimeEditBase::className() const
{
    return "TQDateTimeEditBase";
}

TQMetaObject *TQDateTimeEditBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDateTimeEditBase( "TQDateTimeEditBase", &TQDateTimeEditBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDateTimeEditBase::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 TQUMethod slot_0 = {"stepUp", 0, 0 };
    static const TQUMethod slot_1 = {"stepDown", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "stepUp()", &slot_0, TQMetaData::Public },
	{ "stepDown()", &slot_1, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TQDateTimeEditBase", parentObject,
	slot_tbl, 2,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDateTimeEditBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQDateTimeEditBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: stepUp(); break;
    case 1: stepDown(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQDateTimeEditBase::tqt_property( int id, int f, TQVariant* v)
{
    return TQWidget::tqt_property( id, f, v);
}

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


#include <ntqvariant.h>
const char *TQDateEdit::className() const
{
    return "TQDateEdit";
}

TQMetaObject *TQDateEdit::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDateEdit( "TQDateEdit", &TQDateEdit::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDateEdit::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 = TQDateTimeEditBase::staticMetaObject();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "DMY",  (int) TQDateEdit::DMY },
	{ "MDY",  (int) TQDateEdit::MDY },
	{ "YMD",  (int) TQDateEdit::YMD },
	{ "YDM",  (int) TQDateEdit::YDM }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "Order", 4, enum_0, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ "date", &static_QUType_varptr, "\x1a", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setDate", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"updateButtons", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "setDate(const TQDate&)", &slot_0, TQMetaData::Public },
	{ "updateButtons()", &slot_1, TQMetaData::Protected }
    };
    static const TQUParameter param_signal_0[] = {
	{ "date", &static_QUType_varptr, "\x1a", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"valueChanged", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "valueChanged(const TQDate&)", &signal_0, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[5] = {
 	{ "Order","order", 0x0107, &TQDateEdit::metaObj, &enum_tbl[0], -1 },
	{ "TQDate","date", 0x1a000103, &TQDateEdit::metaObj, 0, -1 },
	{ "bool","autoAdvance", 0x12000103, &TQDateEdit::metaObj, 0, -1 },
	{ "TQDate","maxValue", 0x1a000103, &TQDateEdit::metaObj, 0, -1 },
	{ "TQDate","minValue", 0x1a000103, &TQDateEdit::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQDateEdit", parentObject,
	slot_tbl, 2,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 5,
	enum_tbl, 1,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDateEdit.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

#include <ntqobjectdefs.h>
#include <ntqsignalslotimp.h>

// TQ_SIGNAL valueChanged
void TQDateEdit::valueChanged( const TQDate& t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_varptr.set(o+1,&t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

bool TQDateEdit::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setDate((const TQDate&)*((const TQDate*)static_QUType_ptr.get(_o+1))); break;
    case 1: updateButtons(); break;
    default:
	return TQDateTimeEditBase::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQDateEdit::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: valueChanged((const TQDate&)*((const TQDate*)static_QUType_ptr.get(_o+1))); break;
    default:
	return TQDateTimeEditBase::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQDateEdit::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setOrder((Order&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->order() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setDate(v->asDate()); break;
	case 1: *v = TQVariant( this->date() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setAutoAdvance(v->asBool()); break;
	case 1: *v = TQVariant( this->autoAdvance() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setMaxValue(v->asDate()); break;
	case 1: *v = TQVariant( this->maxValue() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setMinValue(v->asDate()); break;
	case 1: *v = TQVariant( this->minValue() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQDateTimeEditBase::tqt_property( id, f, v );
    }
    return true;
}

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


const char *TQTimeEdit::className() const
{
    return "TQTimeEdit";
}

TQMetaObject *TQTimeEdit::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQTimeEdit( "TQTimeEdit", &TQTimeEdit::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQTimeEdit::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 = TQDateTimeEditBase::staticMetaObject();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "Hours",  (int) TQTimeEdit::Hours },
	{ "Minutes",  (int) TQTimeEdit::Minutes },
	{ "Seconds",  (int) TQTimeEdit::Seconds },
	{ "AMPM",  (int) TQTimeEdit::AMPM }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "Display", 4, enum_0, true }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ "time", &static_QUType_varptr, "\x1b", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setTime", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"updateButtons", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "setTime(const TQTime&)", &slot_0, TQMetaData::Public },
	{ "updateButtons()", &slot_1, TQMetaData::Protected }
    };
    static const TQUParameter param_signal_0[] = {
	{ "time", &static_QUType_varptr, "\x1b", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"valueChanged", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "valueChanged(const TQTime&)", &signal_0, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[5] = {
 	{ "TQTime","time", 0x1b000103, &TQTimeEdit::metaObj, 0, -1 },
	{ "bool","autoAdvance", 0x12000103, &TQTimeEdit::metaObj, 0, -1 },
	{ "TQTime","maxValue", 0x1b000103, &TQTimeEdit::metaObj, 0, -1 },
	{ "TQTime","minValue", 0x1b000103, &TQTimeEdit::metaObj, 0, -1 },
	{ "Display","display", 0x0107, &TQTimeEdit::metaObj, &enum_tbl[0], -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQTimeEdit", parentObject,
	slot_tbl, 2,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 5,
	enum_tbl, 1,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQTimeEdit.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL valueChanged
void TQTimeEdit::valueChanged( const TQTime& t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_varptr.set(o+1,&t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

bool TQTimeEdit::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setTime((const TQTime&)*((const TQTime*)static_QUType_ptr.get(_o+1))); break;
    case 1: updateButtons(); break;
    default:
	return TQDateTimeEditBase::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQTimeEdit::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: valueChanged((const TQTime&)*((const TQTime*)static_QUType_ptr.get(_o+1))); break;
    default:
	return TQDateTimeEditBase::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQTimeEdit::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setTime(v->asTime()); break;
	case 1: *v = TQVariant( this->time() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setAutoAdvance(v->asBool()); break;
	case 1: *v = TQVariant( this->autoAdvance() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setMaxValue(v->asTime()); break;
	case 1: *v = TQVariant( this->maxValue() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setMinValue(v->asTime()); break;
	case 1: *v = TQVariant( this->minValue() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setDisplay(v->asUInt()); break;
	case 1: *v = TQVariant( (int)this->display() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQDateTimeEditBase::tqt_property( id, f, v );
    }
    return true;
}

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


const char *TQDateTimeEdit::className() const
{
    return "TQDateTimeEdit";
}

TQMetaObject *TQDateTimeEdit::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDateTimeEdit( "TQDateTimeEdit", &TQDateTimeEdit::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDateTimeEdit::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[] = {
	{ "dt", &static_QUType_varptr, "\x1c", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setDateTime", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "d", &static_QUType_varptr, "\x1a", TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"newValue", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "t", &static_QUType_varptr, "\x1b", TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"newValue", 1, param_slot_2 };
    static const TQMetaData slot_tbl[] = {
	{ "setDateTime(const TQDateTime&)", &slot_0, TQMetaData::Public },
	{ "newValue(const TQDate&)", &slot_1, TQMetaData::Protected },
	{ "newValue(const TQTime&)", &slot_2, TQMetaData::Protected }
    };
    static const TQUParameter param_signal_0[] = {
	{ "datetime", &static_QUType_varptr, "\x1c", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"valueChanged", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "valueChanged(const TQDateTime&)", &signal_0, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[1] = {
 	{ "TQDateTime","dateTime", 0x1c000103, &TQDateTimeEdit::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQDateTimeEdit", parentObject,
	slot_tbl, 3,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 1,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDateTimeEdit.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL valueChanged
void TQDateTimeEdit::valueChanged( const TQDateTime& t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_varptr.set(o+1,&t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

bool TQDateTimeEdit::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setDateTime((const TQDateTime&)*((const TQDateTime*)static_QUType_ptr.get(_o+1))); break;
    case 1: newValue((const TQDate&)*((const TQDate*)static_QUType_ptr.get(_o+1))); break;
    case 2: newValue((const TQTime&)*((const TQTime*)static_QUType_ptr.get(_o+1))); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQDateTimeEdit::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setDateTime(v->asDateTime()); break;
	case 1: *v = TQVariant( this->dateTime() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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