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

TQMetaObject *SearchValidator::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_SearchValidator( "SearchValidator", &SearchValidator::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* SearchValidator::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 = TQValidator::staticMetaObject();
    metaObj = TQMetaObject::new_metaobject(
	"SearchValidator", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_SearchValidator.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool SearchValidator::tqt_invoke( int _id, TQUObject* _o )
{
    return TQValidator::tqt_invoke(_id,_o);
}

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

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

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


const char *HelpDialog::className() const
{
    return "HelpDialog";
}

TQMetaObject *HelpDialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_HelpDialog( "HelpDialog", &HelpDialog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* HelpDialog::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 = HelpDialogBase::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"showTopic", 3, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_ptr, "TQListViewItem", TQUParameter::In },
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"showTopic", 3, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"showTopic", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"loadIndexFile", 0, 0 };
    static const TQUMethod slot_4 = {"insertContents", 0, 0 };
    static const TQUMethod slot_5 = {"setupFullTextIndex", 0, 0 };
    static const TQUParameter param_slot_6[] = {
	{ "s", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"currentTabChanged", 1, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ "i", &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"currentIndexChanged", 1, param_slot_7 };
    static const TQUMethod slot_8 = {"showTopic", 0, 0 };
    static const TQUParameter param_slot_9[] = {
	{ "s", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"searchInIndex", 1, param_slot_9 };
    static const TQUMethod slot_10 = {"addBookmark", 0, 0 };
    static const TQUMethod slot_11 = {"removeBookmark", 0, 0 };
    static const TQUParameter param_slot_12[] = {
	{ "i", &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_12 = {"currentBookmarkChanged", 1, param_slot_12 };
    static const TQUParameter param_slot_13[] = {
	{ "i", &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_13 = {"currentContentsChanged", 1, param_slot_13 };
    static const TQUMethod slot_14 = {"startSearch", 0, 0 };
    static const TQUMethod slot_15 = {"showSearchHelp", 0, 0 };
    static const TQUMethod slot_16 = {"initialize", 0, 0 };
    static const TQUMethod slot_17 = {"toggleContents", 0, 0 };
    static const TQUMethod slot_18 = {"toggleIndex", 0, 0 };
    static const TQUMethod slot_19 = {"toggleBookmarks", 0, 0 };
    static const TQUMethod slot_20 = {"toggleSearch", 0, 0 };
    static const TQUMethod slot_21 = {"lastWinClosed", 0, 0 };
    static const TQUParameter param_slot_22[] = {
	{ "button", &static_QUType_int, 0, TQUParameter::In },
	{ "i", &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ "p", &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod slot_22 = {"showResultPage", 3, param_slot_22 };
    static const TQUParameter param_slot_23[] = {
	{ "i", &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod slot_23 = {"showResultPage", 1, param_slot_23 };
    static const TQUParameter param_slot_24[] = {
	{ "prog", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_24 = {"setIndexingProgress", 1, param_slot_24 };
    static const TQUParameter param_slot_25[] = {
	{ "item", &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ "pos", &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod slot_25 = {"showItemMenu", 2, param_slot_25 };
    static const TQUParameter param_slot_26[] = {
	{ "item", &static_QUType_ptr, "TQListViewItem", TQUParameter::In },
	{ "pos", &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod slot_26 = {"showItemMenu", 2, param_slot_26 };
    static const TQUMethod slot_27 = {"insertBookmarks", 0, 0 };
    static const TQUMethod slot_28 = {"processEvents", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "showTopic(int,TQListBoxItem*,const TQPoint&)", &slot_0, TQMetaData::Protected },
	{ "showTopic(int,TQListViewItem*,const TQPoint&)", &slot_1, TQMetaData::Protected },
	{ "showTopic(TQListViewItem*)", &slot_2, TQMetaData::Protected },
	{ "loadIndexFile()", &slot_3, TQMetaData::Protected },
	{ "insertContents()", &slot_4, TQMetaData::Protected },
	{ "setupFullTextIndex()", &slot_5, TQMetaData::Protected },
	{ "currentTabChanged(const TQString&)", &slot_6, TQMetaData::Protected },
	{ "currentIndexChanged(TQListBoxItem*)", &slot_7, TQMetaData::Protected },
	{ "showTopic()", &slot_8, TQMetaData::Protected },
	{ "searchInIndex(const TQString&)", &slot_9, TQMetaData::Protected },
	{ "addBookmark()", &slot_10, TQMetaData::Protected },
	{ "removeBookmark()", &slot_11, TQMetaData::Protected },
	{ "currentBookmarkChanged(TQListViewItem*)", &slot_12, TQMetaData::Protected },
	{ "currentContentsChanged(TQListViewItem*)", &slot_13, TQMetaData::Protected },
	{ "startSearch()", &slot_14, TQMetaData::Protected },
	{ "showSearchHelp()", &slot_15, TQMetaData::Protected },
	{ "initialize()", &slot_16, TQMetaData::Public },
	{ "toggleContents()", &slot_17, TQMetaData::Public },
	{ "toggleIndex()", &slot_18, TQMetaData::Public },
	{ "toggleBookmarks()", &slot_19, TQMetaData::Public },
	{ "toggleSearch()", &slot_20, TQMetaData::Public },
	{ "lastWinClosed()", &slot_21, TQMetaData::Private },
	{ "showResultPage(int,TQListBoxItem*,const TQPoint&)", &slot_22, TQMetaData::Private },
	{ "showResultPage(TQListBoxItem*)", &slot_23, TQMetaData::Private },
	{ "setIndexingProgress(int)", &slot_24, TQMetaData::Private },
	{ "showItemMenu(TQListBoxItem*,const TQPoint&)", &slot_25, TQMetaData::Private },
	{ "showItemMenu(TQListViewItem*,const TQPoint&)", &slot_26, TQMetaData::Private },
	{ "insertBookmarks()", &slot_27, TQMetaData::Private },
	{ "processEvents()", &slot_28, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "s", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"showLink", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "s", &static_QUType_TQString, 0, TQUParameter::In },
	{ "terms", &static_QUType_varptr, "\x04", TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"showSearchLink", 2, param_signal_1 };
    static const TQMetaData signal_tbl[] = {
	{ "showLink(const TQString&)", &signal_0, TQMetaData::Public },
	{ "showSearchLink(const TQString&,const TQStringList&)", &signal_1, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"HelpDialog", parentObject,
	slot_tbl, 29,
	signal_tbl, 2,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_HelpDialog.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL showLink
void HelpDialog::showLink( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

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

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

bool HelpDialog::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: showTopic((int)static_QUType_int.get(_o+1),(TQListBoxItem*)static_QUType_ptr.get(_o+2),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+3))); break;
    case 1: showTopic((int)static_QUType_int.get(_o+1),(TQListViewItem*)static_QUType_ptr.get(_o+2),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+3))); break;
    case 2: showTopic((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 3: loadIndexFile(); break;
    case 4: insertContents(); break;
    case 5: setupFullTextIndex(); break;
    case 6: currentTabChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 7: currentIndexChanged((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 8: showTopic(); break;
    case 9: searchInIndex((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 10: addBookmark(); break;
    case 11: removeBookmark(); break;
    case 12: currentBookmarkChanged((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 13: currentContentsChanged((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 14: startSearch(); break;
    case 15: showSearchHelp(); break;
    case 16: initialize(); break;
    case 17: toggleContents(); break;
    case 18: toggleIndex(); break;
    case 19: toggleBookmarks(); break;
    case 20: toggleSearch(); break;
    case 21: lastWinClosed(); break;
    case 22: showResultPage((int)static_QUType_int.get(_o+1),(TQListBoxItem*)static_QUType_ptr.get(_o+2),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+3))); break;
    case 23: showResultPage((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 24: setIndexingProgress((int)static_QUType_int.get(_o+1)); break;
    case 25: showItemMenu((TQListBoxItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2))); break;
    case 26: showItemMenu((TQListViewItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2))); break;
    case 27: insertBookmarks(); break;
    case 28: processEvents(); break;
    default:
	return HelpDialogBase::tqt_invoke( _id, _o );
    }
    return true;
}

bool HelpDialog::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: showLink((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: showSearchLink((const TQString&)static_QUType_TQString.get(_o+1),(const TQStringList&)*((const TQStringList*)static_QUType_ptr.get(_o+2))); break;
    default:
	return HelpDialogBase::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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