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

TQMetaObject *TQToolButton::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQToolButton( "TQToolButton", &TQToolButton::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQToolButton::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 = TQButton::staticMetaObject();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "BesideIcon",  (int) TQToolButton::BesideIcon },
	{ "BelowIcon",  (int) TQToolButton::BelowIcon },
	{ "Right",  (int) TQToolButton::Right },
	{ "Under",  (int) TQToolButton::Under }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "TextPosition", 4, enum_0, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ "enable", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setUsesBigPixmap", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "enable", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"setUsesTextLabel", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In },
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setTextLabel", 2, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ "enable", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"setToggleButton", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ "enable", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"setOn", 1, param_slot_4 };
    static const TQUMethod slot_5 = {"toggle", 0, 0 };
    static const TQUParameter param_slot_6[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"setTextLabel", 1, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ "pos", &static_QUType_enum, 
#ifndef TQT_NO_PROPERTIES
	  &enum_tbl[0]
#else
	  0
#endif // TQT_NO_PROPERTIES
	  , TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"setTextPosition", 1, param_slot_7 };
    static const TQUMethod slot_8 = {"popupTimerDone", 0, 0 };
    static const TQUMethod slot_9 = {"popupPressed", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "setUsesBigPixmap(bool)", &slot_0, TQMetaData::Public },
	{ "setUsesTextLabel(bool)", &slot_1, TQMetaData::Public },
	{ "setTextLabel(const TQString&,bool)", &slot_2, TQMetaData::Public },
	{ "setToggleButton(bool)", &slot_3, TQMetaData::Public },
	{ "setOn(bool)", &slot_4, TQMetaData::Public },
	{ "toggle()", &slot_5, TQMetaData::Public },
	{ "setTextLabel(const TQString&)", &slot_6, TQMetaData::Public },
	{ "setTextPosition(TextPosition)", &slot_7, TQMetaData::Public },
	{ "popupTimerDone()", &slot_8, TQMetaData::Private },
	{ "popupPressed()", &slot_9, TQMetaData::Private }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[13] = {
 	{ "TQIconSet","iconSet", 0xd000103, &TQToolButton::metaObj, 0, -1 },
	{ "TQIconSet","onIconSet", 0xd011103, &TQToolButton::metaObj, 0, -1 },
	{ "TQIconSet","offIconSet", 0xd011103, &TQToolButton::metaObj, 0, -1 },
	{ "bool","usesBigPixmap", 0x12000103, &TQToolButton::metaObj, 0, -1 },
	{ "bool","usesTextLabel", 0x12000103, &TQToolButton::metaObj, 0, -1 },
	{ "TQString","textLabel", 0x3000103, &TQToolButton::metaObj, 0, -1 },
	{ "int","popupDelay", 0x10000103, &TQToolButton::metaObj, 0, -1 },
	{ "bool","autoRaise", 0x12000103, &TQToolButton::metaObj, 0, -1 },
	{ "TextPosition","textPosition", 0x0107, &TQToolButton::metaObj, &enum_tbl[0], -1 },
	{ "bool","toggleButton", 0x1202a302, &TQToolButton::metaObj, 0, -1 },
	{ "bool","on", 0x1202a302, &TQToolButton::metaObj, 0, -1 },
	{ "TQPixmap","pixmap", 0x6019200, &TQToolButton::metaObj, 0, -1 },
	{ "BackgroundMode","backgroundMode", 0x2820c, &TQToolButton::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQToolButton", parentObject,
	slot_tbl, 10,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 13,
	enum_tbl, 1,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQToolButton.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQToolButton::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setUsesBigPixmap((bool)static_QUType_bool.get(_o+1)); break;
    case 1: setUsesTextLabel((bool)static_QUType_bool.get(_o+1)); break;
    case 2: setTextLabel((const TQString&)static_QUType_TQString.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
    case 3: setToggleButton((bool)static_QUType_bool.get(_o+1)); break;
    case 4: setOn((bool)static_QUType_bool.get(_o+1)); break;
    case 5: toggle(); break;
    case 6: setTextLabel((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 7: setTextPosition((TextPosition)static_QUType_enum.get(_o+1)); break;
    case 8: popupTimerDone(); break;
    case 9: popupPressed(); break;
    default:
	return TQButton::tqt_invoke( _id, _o );
    }
    return true;
}

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

bool TQToolButton::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setIconSet(v->asIconSet()); break;
	case 1: *v = TQVariant( this->iconSet() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setOnIconSet(v->asIconSet()); break;
	case 1: *v = TQVariant( this->onIconSet() ); break;
	case 4: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setOffIconSet(v->asIconSet()); break;
	case 1: *v = TQVariant( this->offIconSet() ); break;
	case 4: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setUsesBigPixmap(v->asBool()); break;
	case 1: *v = TQVariant( this->usesBigPixmap() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setUsesTextLabel(v->asBool()); break;
	case 1: *v = TQVariant( this->usesTextLabel() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setTextLabel(v->asString()); break;
	case 1: *v = TQVariant( this->textLabel() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setPopupDelay(v->asInt()); break;
	case 1: *v = TQVariant( this->popupDelay() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setAutoRaise(v->asBool()); break;
	case 1: *v = TQVariant( this->autoRaise() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 8: switch( f ) {
	case 0: setTextPosition((TextPosition&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->textPosition() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: switch( f ) {
	case 0: setToggleButton(v->asBool()); break;
	case 1: case 3: case 4: case 5: goto resolve;
	default: return false;
    } break;
    case 10: switch( f ) {
	case 0: setOn(v->asBool()); break;
	case 1: case 3: case 4: case 5: goto resolve;
	default: return false;
    } break;
    case 11: switch( f ) {
	case 0: case 1: case 4: goto resolve;
	default: return false;
    } break;
    case 12: switch( f ) {
	case 0: case 1: case 4: case 5: goto resolve;
	case 3: break;
	default: return false;
    } break;
    default:
	return TQButton::tqt_property( id, f, v );
    }
    return true;
resolve:
    return TQButton::tqt_property( staticMetaObject()->resolveProperty(id), f, v );
}

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