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

TQMetaObject *PreferencesBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PreferencesBase( "PreferencesBase", &PreferencesBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* PreferencesBase::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 = {"init", 0, 0 };
    static const TQUMethod slot_1 = {"destroy", 0, 0 };
    static const TQUMethod slot_2 = {"colorClicked", 0, 0 };
    static const TQUMethod slot_3 = {"reInit", 0, 0 };
    static const TQUMethod slot_4 = {"save", 0, 0 };
    static const TQUMethod slot_5 = {"updatePreview", 0, 0 };
    static const TQUParameter param_slot_6[] = {
	{ "b", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"boldChanged", 1, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ "element", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"elementChanged", 1, param_slot_7 };
    static const TQUParameter param_slot_8[] = {
	{ "f", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"familyChanged", 1, param_slot_8 };
    static const TQUParameter param_slot_9[] = {
	{ "b", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"italicChanged", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ "c", &static_QUType_varptr, "\x0a", TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"setColorPixmap", 1, param_slot_10 };
    static const TQUParameter param_slot_11[] = {
	{ "p", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_11 = {"setPath", 1, param_slot_11 };
    static const TQUParameter param_slot_12[] = {
	{ "s", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_12 = {"sizeChanged", 1, param_slot_12 };
    static const TQUParameter param_slot_13[] = {
	{ "b", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_13 = {"underlineChanged", 1, param_slot_13 };
    static const TQUMethod slot_14 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "init()", &slot_0, TQMetaData::Public },
	{ "destroy()", &slot_1, TQMetaData::Public },
	{ "colorClicked()", &slot_2, TQMetaData::Public },
	{ "reInit()", &slot_3, TQMetaData::Public },
	{ "save()", &slot_4, TQMetaData::Public },
	{ "updatePreview()", &slot_5, TQMetaData::Public },
	{ "boldChanged(bool)", &slot_6, TQMetaData::Public },
	{ "elementChanged(const TQString&)", &slot_7, TQMetaData::Public },
	{ "familyChanged(const TQString&)", &slot_8, TQMetaData::Public },
	{ "italicChanged(bool)", &slot_9, TQMetaData::Public },
	{ "setColorPixmap(const TQColor&)", &slot_10, TQMetaData::Public },
	{ "setPath(const TQString&)", &slot_11, TQMetaData::Public },
	{ "sizeChanged(int)", &slot_12, TQMetaData::Public },
	{ "underlineChanged(bool)", &slot_13, TQMetaData::Public },
	{ "languageChange()", &slot_14, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"PreferencesBase", parentObject,
	slot_tbl, 15,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_PreferencesBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool PreferencesBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: init(); break;
    case 1: destroy(); break;
    case 2: colorClicked(); break;
    case 3: reInit(); break;
    case 4: save(); break;
    case 5: updatePreview(); break;
    case 6: boldChanged((bool)static_QUType_bool.get(_o+1)); break;
    case 7: elementChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 8: familyChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 9: italicChanged((bool)static_QUType_bool.get(_o+1)); break;
    case 10: setColorPixmap((const TQColor&)*((const TQColor*)static_QUType_ptr.get(_o+1))); break;
    case 11: setPath((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 12: sizeChanged((int)static_QUType_int.get(_o+1)); break;
    case 13: underlineChanged((bool)static_QUType_bool.get(_o+1)); break;
    case 14: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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