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

TQMetaObject *TQComboBox::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQComboBox( "TQComboBox", &TQComboBox::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQComboBox::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[] = {
	{ "NoInsertion",  (int) TQComboBox::NoInsertion },
	{ "AtTop",  (int) TQComboBox::AtTop },
	{ "AtCurrent",  (int) TQComboBox::AtCurrent },
	{ "AtBottom",  (int) TQComboBox::AtBottom },
	{ "AfterCurrent",  (int) TQComboBox::AfterCurrent },
	{ "BeforeCurrent",  (int) TQComboBox::BeforeCurrent }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "Policy", 6, enum_0, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUMethod slot_0 = {"clear", 0, 0 };
    static const TQUMethod slot_1 = {"clearValidator", 0, 0 };
    static const TQUMethod slot_2 = {"clearEdit", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"setEditText", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"internalActivate", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"internalHighlight", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"internalClickTimeout", 0, 0 };
    static const TQUMethod slot_7 = {"returnPressed", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "clear()", &slot_0, TQMetaData::Public },
	{ "clearValidator()", &slot_1, TQMetaData::Public },
	{ "clearEdit()", &slot_2, TQMetaData::Public },
	{ "setEditText(const TQString&)", &slot_3, TQMetaData::Public },
	{ "internalActivate(int)", &slot_4, TQMetaData::Private },
	{ "internalHighlight(int)", &slot_5, TQMetaData::Private },
	{ "internalClickTimeout()", &slot_6, TQMetaData::Private },
	{ "returnPressed()", &slot_7, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "index", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"activated", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "index", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"highlighted", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"activated", 1, param_signal_2 };
    static const TQUParameter param_signal_3[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"highlighted", 1, param_signal_3 };
    static const TQUParameter param_signal_4[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"textChanged", 1, param_signal_4 };
    static const TQMetaData signal_tbl[] = {
	{ "activated(int)", &signal_0, TQMetaData::Public },
	{ "highlighted(int)", &signal_1, TQMetaData::Public },
	{ "activated(const TQString&)", &signal_2, TQMetaData::Public },
	{ "highlighted(const TQString&)", &signal_3, TQMetaData::Public },
	{ "textChanged(const TQString&)", &signal_4, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[11] = {
 	{ "bool","editable", 0x12000103, &TQComboBox::metaObj, 0, -1 },
	{ "int","count", 0x10000001, &TQComboBox::metaObj, 0, -1 },
	{ "TQString","currentText", 0x3001103, &TQComboBox::metaObj, 0, -1 },
	{ "int","currentItem", 0x10000103, &TQComboBox::metaObj, 0, -1 },
	{ "bool","autoResize", 0x12001103, &TQComboBox::metaObj, 0, -1 },
	{ "int","sizeLimit", 0x10000103, &TQComboBox::metaObj, 0, -1 },
	{ "int","maxCount", 0x10000103, &TQComboBox::metaObj, 0, -1 },
	{ "Policy","insertionPolicy", 0x0107, &TQComboBox::metaObj, &enum_tbl[0], -1 },
	{ "bool","autoCompletion", 0x12000103, &TQComboBox::metaObj, 0, -1 },
	{ "bool","duplicatesEnabled", 0x12000103, &TQComboBox::metaObj, 0, -1 },
	{ "bool","autoMask", 0x12020200, &TQComboBox::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQComboBox", parentObject,
	slot_tbl, 8,
	signal_tbl, 5,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 11,
	enum_tbl, 1,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQComboBox.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL highlighted
void TQComboBox::highlighted( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
}

// TQ_SIGNAL activated
void TQComboBox::activated( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 2, t0 );
}

// TQ_SIGNAL highlighted
void TQComboBox::highlighted( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 3, t0 );
}

// TQ_SIGNAL textChanged
void TQComboBox::textChanged( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 4, t0 );
}

bool TQComboBox::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: clear(); break;
    case 1: clearValidator(); break;
    case 2: clearEdit(); break;
    case 3: setEditText((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 4: internalActivate((int)static_QUType_int.get(_o+1)); break;
    case 5: internalHighlight((int)static_QUType_int.get(_o+1)); break;
    case 6: internalClickTimeout(); break;
    case 7: returnPressed(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQComboBox::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setEditable(v->asBool()); break;
	case 1: *v = TQVariant( this->editable() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 1: *v = TQVariant( this->count() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setCurrentText(v->asString()); break;
	case 1: *v = TQVariant( this->currentText() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setCurrentItem(v->asInt()); break;
	case 1: *v = TQVariant( this->currentItem() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setAutoResize(v->asBool()); break;
	case 1: *v = TQVariant( this->autoResize() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setSizeLimit(v->asInt()); break;
	case 1: *v = TQVariant( this->sizeLimit() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setMaxCount(v->asInt()); break;
	case 1: *v = TQVariant( this->maxCount() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setInsertionPolicy((Policy&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->insertionPolicy() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 8: switch( f ) {
	case 0: setAutoCompletion(v->asBool()); break;
	case 1: *v = TQVariant( this->autoCompletion() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: switch( f ) {
	case 0: setDuplicatesEnabled(v->asBool()); break;
	case 1: *v = TQVariant( this->duplicatesEnabled() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 10: switch( f ) {
	case 0: case 1: case 5: goto resolve;
	case 3: case 4: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
resolve:
    return TQWidget::tqt_property( staticMetaObject()->resolveProperty(id), f, v );
}

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