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

TQMetaObject *TQTextBrowser::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQTextBrowser( "TQTextBrowser", &TQTextBrowser::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQTextBrowser::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 = TQTextEdit::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ "name", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setSource", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"backward", 0, 0 };
    static const TQUMethod slot_2 = {"forward", 0, 0 };
    static const TQUMethod slot_3 = {"home", 0, 0 };
    static const TQUMethod slot_4 = {"reload", 0, 0 };
    static const TQUParameter param_slot_5[] = {
	{ "txt", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"setText", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ "txt", &static_QUType_TQString, 0, TQUParameter::In },
	{ "context", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"setText", 2, param_slot_6 };
    static const TQMetaData slot_tbl[] = {
	{ "setSource(const TQString&)", &slot_0, TQMetaData::Public },
	{ "backward()", &slot_1, TQMetaData::Public },
	{ "forward()", &slot_2, TQMetaData::Public },
	{ "home()", &slot_3, TQMetaData::Public },
	{ "reload()", &slot_4, TQMetaData::Public },
	{ "setText(const TQString&)", &slot_5, TQMetaData::Public },
	{ "setText(const TQString&,const TQString&)", &slot_6, TQMetaData::Public }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"backwardAvailable", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"forwardAvailable", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"sourceChanged", 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 = {"linkClicked", 1, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In },
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"anchorClicked", 2, param_signal_5 };
    static const TQMetaData signal_tbl[] = {
	{ "backwardAvailable(bool)", &signal_0, TQMetaData::Public },
	{ "forwardAvailable(bool)", &signal_1, TQMetaData::Public },
	{ "sourceChanged(const TQString&)", &signal_2, TQMetaData::Public },
	{ "highlighted(const TQString&)", &signal_3, TQMetaData::Public },
	{ "linkClicked(const TQString&)", &signal_4, TQMetaData::Public },
	{ "anchorClicked(const TQString&,const TQString&)", &signal_5, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[6] = {
 	{ "TQString","source", 0x3000103, &TQTextBrowser::metaObj, 0, -1 },
	{ "int","undoDepth", 0x10025200, &TQTextBrowser::metaObj, 0, -1 },
	{ "bool","overwriteMode", 0x12025200, &TQTextBrowser::metaObj, 0, -1 },
	{ "bool","modified", 0x12026200, &TQTextBrowser::metaObj, 0, -1 },
	{ "bool","readOnly", 0x12025200, &TQTextBrowser::metaObj, 0, -1 },
	{ "bool","undoRedoEnabled", 0x12025200, &TQTextBrowser::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQTextBrowser", parentObject,
	slot_tbl, 7,
	signal_tbl, 6,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 6,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQTextBrowser.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL backwardAvailable
void TQTextBrowser::backwardAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 0, t0 );
}

// TQ_SIGNAL forwardAvailable
void TQTextBrowser::forwardAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 1, t0 );
}

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

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

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

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

// TQ_SIGNAL anchorClicked
void TQTextBrowser::anchorClicked( const TQString& t0, const TQString& t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 5 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_TQString.set(o+1,t0);
    static_QUType_TQString.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

bool TQTextBrowser::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setSource((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: backward(); break;
    case 2: forward(); break;
    case 3: home(); break;
    case 4: reload(); break;
    case 5: setText((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 6: setText((const TQString&)static_QUType_TQString.get(_o+1),(const TQString&)static_QUType_TQString.get(_o+2)); break;
    default:
	return TQTextEdit::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQTextBrowser::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: backwardAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 1: forwardAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 2: sourceChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 3: highlighted((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 4: linkClicked((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 5: anchorClicked((const TQString&)static_QUType_TQString.get(_o+1),(const TQString&)static_QUType_TQString.get(_o+2)); break;
    default:
	return TQTextEdit::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQTextBrowser::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setSource(v->asString()); break;
	case 1: *v = TQVariant( this->source() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: case 1: case 5: goto resolve;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: case 1: case 5: goto resolve;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: case 1: case 3: case 5: goto resolve;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: case 1: case 5: goto resolve;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: case 1: case 5: goto resolve;
	default: return false;
    } break;
    default:
	return TQTextEdit::tqt_property( id, f, v );
    }
    return true;
resolve:
    return TQTextEdit::tqt_property( staticMetaObject()->resolveProperty(id), f, v );
}

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