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

TQMetaObject *HelpWindow::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_HelpWindow( "HelpWindow", &HelpWindow::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* HelpWindow::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 = TQTextBrowser::staticMetaObject();
    static const TQUMethod slot_0 = {"copy", 0, 0 };
    static const TQUMethod slot_1 = {"ensureCursorVisible", 0, 0 };
    static const TQUMethod slot_2 = {"openLinkInNewWindow", 0, 0 };
    static const TQUMethod slot_3 = {"openLinkInNewPage", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"updateForward", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"updateBackward", 1, param_slot_5 };
    static const TQMetaData slot_tbl[] = {
	{ "copy()", &slot_0, TQMetaData::Public },
	{ "ensureCursorVisible()", &slot_1, TQMetaData::Protected },
	{ "openLinkInNewWindow()", &slot_2, TQMetaData::Private },
	{ "openLinkInNewPage()", &slot_3, TQMetaData::Private },
	{ "updateForward(bool)", &slot_4, TQMetaData::Private },
	{ "updateBackward(bool)", &slot_5, TQMetaData::Private }
    };
    static const TQUMethod signal_0 = {"chooseWebBrowser", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "chooseWebBrowser()", &signal_0, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"HelpWindow", parentObject,
	slot_tbl, 6,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_HelpWindow.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL chooseWebBrowser
void HelpWindow::chooseWebBrowser()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

bool HelpWindow::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: copy(); break;
    case 1: ensureCursorVisible(); break;
    case 2: openLinkInNewWindow(); break;
    case 3: openLinkInNewPage(); break;
    case 4: updateForward((bool)static_QUType_bool.get(_o+1)); break;
    case 5: updateBackward((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return TQTextBrowser::tqt_invoke( _id, _o );
    }
    return true;
}

bool HelpWindow::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: chooseWebBrowser(); break;
    default:
	return TQTextBrowser::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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