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

TQMetaObject *TrWindow::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TrWindow( "TrWindow", &TrWindow::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TrWindow::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 = TQMainWindow::staticMetaObject();
    static const TQUMethod slot_0 = {"doneAndNext", 0, 0 };
    static const TQUMethod slot_1 = {"prev", 0, 0 };
    static const TQUMethod slot_2 = {"next", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"recentFileActivated", 1, param_slot_3 };
    static const TQUMethod slot_4 = {"setupRecentFilesMenu", 0, 0 };
    static const TQUMethod slot_5 = {"open", 0, 0 };
    static const TQUMethod slot_6 = {"save", 0, 0 };
    static const TQUMethod slot_7 = {"saveAs", 0, 0 };
    static const TQUMethod slot_8 = {"release", 0, 0 };
    static const TQUMethod slot_9 = {"print", 0, 0 };
    static const TQUMethod slot_10 = {"find", 0, 0 };
    static const TQUMethod slot_11 = {"findAgain", 0, 0 };
    static const TQUMethod slot_12 = {"replace", 0, 0 };
    static const TQUMethod slot_13 = {"newPhraseBook", 0, 0 };
    static const TQUMethod slot_14 = {"openPhraseBook", 0, 0 };
    static const TQUParameter param_slot_15[] = {
	{ "id", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_15 = {"closePhraseBook", 1, param_slot_15 };
    static const TQUParameter param_slot_16[] = {
	{ "id", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_16 = {"editPhraseBook", 1, param_slot_16 };
    static const TQUParameter param_slot_17[] = {
	{ "id", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_17 = {"printPhraseBook", 1, param_slot_17 };
    static const TQUMethod slot_18 = {"manual", 0, 0 };
    static const TQUMethod slot_19 = {"revertSorting", 0, 0 };
    static const TQUMethod slot_20 = {"about", 0, 0 };
    static const TQUMethod slot_21 = {"aboutTQt", 0, 0 };
    static const TQUMethod slot_22 = {"setupPhrase", 0, 0 };
    static const TQUParameter param_slot_23[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::Out }
    };
    static const TQUMethod slot_23 = {"maybeSave", 1, param_slot_23 };
    static const TQUMethod slot_24 = {"updateCaption", 0, 0 };
    static const TQUParameter param_slot_25[] = {
	{ "item", &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_25 = {"showNewScope", 1, param_slot_25 };
    static const TQUParameter param_slot_26[] = {
	{ "item", &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_26 = {"showNewCurrent", 1, param_slot_26 };
    static const TQUParameter param_slot_27[] = {
	{ "translation", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_27 = {"updateTranslation", 1, param_slot_27 };
    static const TQUParameter param_slot_28[] = {
	{ "finished", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_28 = {"updateFinished", 1, param_slot_28 };
    static const TQUParameter param_slot_29[] = {
	{ "item", &static_QUType_ptr, "TQListViewItem", TQUParameter::In },
	{ "p", &static_QUType_varptr, "\x0e", TQUParameter::In },
	{ "column", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_29 = {"toggleFinished", 3, param_slot_29 };
    static const TQUMethod slot_30 = {"prevUnfinished", 0, 0 };
    static const TQUMethod slot_31 = {"nextUnfinished", 0, 0 };
    static const TQUParameter param_slot_32[] = {
	{ "text", &static_QUType_TQString, 0, TQUParameter::In },
	{ "where", &static_QUType_int, 0, TQUParameter::In },
	{ "matchCase", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_32 = {"findNext", 3, param_slot_32 };
    static const TQUMethod slot_33 = {"revalidate", 0, 0 };
    static const TQUMethod slot_34 = {"toggleGuessing", 0, 0 };
    static const TQUMethod slot_35 = {"focusSourceList", 0, 0 };
    static const TQUMethod slot_36 = {"focusPhraseList", 0, 0 };
    static const TQUMethod slot_37 = {"updateClosePhraseBook", 0, 0 };
    static const TQUMethod slot_38 = {"toggleStatistics", 0, 0 };
    static const TQUMethod slot_39 = {"updateStatistics", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "doneAndNext()", &slot_0, TQMetaData::Private },
	{ "prev()", &slot_1, TQMetaData::Private },
	{ "next()", &slot_2, TQMetaData::Private },
	{ "recentFileActivated(int)", &slot_3, TQMetaData::Private },
	{ "setupRecentFilesMenu()", &slot_4, TQMetaData::Private },
	{ "open()", &slot_5, TQMetaData::Private },
	{ "save()", &slot_6, TQMetaData::Private },
	{ "saveAs()", &slot_7, TQMetaData::Private },
	{ "release()", &slot_8, TQMetaData::Private },
	{ "print()", &slot_9, TQMetaData::Private },
	{ "find()", &slot_10, TQMetaData::Private },
	{ "findAgain()", &slot_11, TQMetaData::Private },
	{ "replace()", &slot_12, TQMetaData::Private },
	{ "newPhraseBook()", &slot_13, TQMetaData::Private },
	{ "openPhraseBook()", &slot_14, TQMetaData::Private },
	{ "closePhraseBook(int)", &slot_15, TQMetaData::Private },
	{ "editPhraseBook(int)", &slot_16, TQMetaData::Private },
	{ "printPhraseBook(int)", &slot_17, TQMetaData::Private },
	{ "manual()", &slot_18, TQMetaData::Private },
	{ "revertSorting()", &slot_19, TQMetaData::Private },
	{ "about()", &slot_20, TQMetaData::Private },
	{ "aboutTQt()", &slot_21, TQMetaData::Private },
	{ "setupPhrase()", &slot_22, TQMetaData::Private },
	{ "maybeSave()", &slot_23, TQMetaData::Private },
	{ "updateCaption()", &slot_24, TQMetaData::Private },
	{ "showNewScope(TQListViewItem*)", &slot_25, TQMetaData::Private },
	{ "showNewCurrent(TQListViewItem*)", &slot_26, TQMetaData::Private },
	{ "updateTranslation(const TQString&)", &slot_27, TQMetaData::Private },
	{ "updateFinished(bool)", &slot_28, TQMetaData::Private },
	{ "toggleFinished(TQListViewItem*,const TQPoint&,int)", &slot_29, TQMetaData::Private },
	{ "prevUnfinished()", &slot_30, TQMetaData::Private },
	{ "nextUnfinished()", &slot_31, TQMetaData::Private },
	{ "findNext(const TQString&,int,bool)", &slot_32, TQMetaData::Private },
	{ "revalidate()", &slot_33, TQMetaData::Private },
	{ "toggleGuessing()", &slot_34, TQMetaData::Private },
	{ "focusSourceList()", &slot_35, TQMetaData::Private },
	{ "focusPhraseList()", &slot_36, TQMetaData::Private },
	{ "updateClosePhraseBook()", &slot_37, TQMetaData::Private },
	{ "toggleStatistics()", &slot_38, TQMetaData::Private },
	{ "updateStatistics()", &slot_39, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "w", &static_QUType_int, 0, TQUParameter::In },
	{ "c", &static_QUType_int, 0, TQUParameter::In },
	{ "cs", &static_QUType_int, 0, TQUParameter::In },
	{ "w2", &static_QUType_int, 0, TQUParameter::In },
	{ "c2", &static_QUType_int, 0, TQUParameter::In },
	{ "cs2", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"statsChanged", 6, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "statsChanged(int,int,int,int,int,int)", &signal_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TrWindow", parentObject,
	slot_tbl, 40,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TrWindow.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL statsChanged
void TrWindow::statsChanged( int t0, int t1, int t2, int t3, int t4, int t5 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    TQUObject o[7];
    static_QUType_int.set(o+1,t0);
    static_QUType_int.set(o+2,t1);
    static_QUType_int.set(o+3,t2);
    static_QUType_int.set(o+4,t3);
    static_QUType_int.set(o+5,t4);
    static_QUType_int.set(o+6,t5);
    o[6].isLastObject = true;
    activate_signal( clist, o );
}

bool TrWindow::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: doneAndNext(); break;
    case 1: prev(); break;
    case 2: next(); break;
    case 3: recentFileActivated((int)static_QUType_int.get(_o+1)); break;
    case 4: setupRecentFilesMenu(); break;
    case 5: open(); break;
    case 6: save(); break;
    case 7: saveAs(); break;
    case 8: release(); break;
    case 9: print(); break;
    case 10: find(); break;
    case 11: findAgain(); break;
    case 12: replace(); break;
    case 13: newPhraseBook(); break;
    case 14: openPhraseBook(); break;
    case 15: closePhraseBook((int)static_QUType_int.get(_o+1)); break;
    case 16: editPhraseBook((int)static_QUType_int.get(_o+1)); break;
    case 17: printPhraseBook((int)static_QUType_int.get(_o+1)); break;
    case 18: manual(); break;
    case 19: revertSorting(); break;
    case 20: about(); break;
    case 21: aboutTQt(); break;
    case 22: setupPhrase(); break;
    case 23: static_QUType_bool.set(_o,maybeSave()); break;
    case 24: updateCaption(); break;
    case 25: showNewScope((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 26: showNewCurrent((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 27: updateTranslation((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 28: updateFinished((bool)static_QUType_bool.get(_o+1)); break;
    case 29: toggleFinished((TQListViewItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2)),(int)static_QUType_int.get(_o+3)); break;
    case 30: prevUnfinished(); break;
    case 31: nextUnfinished(); break;
    case 32: findNext((const TQString&)static_QUType_TQString.get(_o+1),(int)static_QUType_int.get(_o+2),(bool)static_QUType_bool.get(_o+3)); break;
    case 33: revalidate(); break;
    case 34: toggleGuessing(); break;
    case 35: focusSourceList(); break;
    case 36: focusPhraseList(); break;
    case 37: updateClosePhraseBook(); break;
    case 38: toggleStatistics(); break;
    case 39: updateStatistics(); break;
    default:
	return TQMainWindow::tqt_invoke( _id, _o );
    }
    return true;
}

bool TrWindow::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: statsChanged((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(int)static_QUType_int.get(_o+3),(int)static_QUType_int.get(_o+4),(int)static_QUType_int.get(_o+5),(int)static_QUType_int.get(_o+6)); break;
    default:
	return TQMainWindow::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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