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

TQMetaObject *PageCurl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PageCurl( "PageCurl", &PageCurl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* PageCurl::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 signal_0 = {"prevPage", 0, 0 };
    static const TQUMethod signal_1 = {"nextPage", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "prevPage()", &signal_0, TQMetaData::Protected },
	{ "nextPage()", &signal_1, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"PageCurl", parentObject,
	0, 0,
	signal_tbl, 2,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_PageCurl.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL nextPage
void PageCurl::nextPage()
{
    activate_signal( staticMetaObject()->signalOffset() + 1 );
}

bool PageCurl::tqt_invoke( int _id, TQUObject* _o )
{
    return TQWidget::tqt_invoke(_id,_o);
}

bool PageCurl::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: prevPage(); break;
    case 1: nextPage(); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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


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

TQMetaObject *EditorPage::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_EditorPage( "EditorPage", &EditorPage::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* EditorPage::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 = TQFrame::staticMetaObject();
    static const TQUMethod slot_0 = {"handleTranslationChanges", 0, 0 };
    static const TQUMethod slot_1 = {"handleSourceChanges", 0, 0 };
    static const TQUMethod slot_2 = {"handleCommentChanges", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "handleTranslationChanges()", &slot_0, TQMetaData::Private },
	{ "handleSourceChanges()", &slot_1, TQMetaData::Private },
	{ "handleCommentChanges()", &slot_2, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "height", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"pageHeightUpdated", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "pageHeightUpdated(int)", &signal_0, TQMetaData::Private }
    };
    metaObj = TQMetaObject::new_metaobject(
	"EditorPage", parentObject,
	slot_tbl, 3,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_EditorPage.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL pageHeightUpdated
void EditorPage::pageHeightUpdated( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

bool EditorPage::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: handleTranslationChanges(); break;
    case 1: handleSourceChanges(); break;
    case 2: handleCommentChanges(); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

bool EditorPage::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: pageHeightUpdated((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQFrame::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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


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

TQMetaObject *MessageEditor::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_MessageEditor( "MessageEditor", &MessageEditor::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* MessageEditor::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 = {"undo", 0, 0 };
    static const TQUMethod slot_1 = {"redo", 0, 0 };
    static const TQUMethod slot_2 = {"cut", 0, 0 };
    static const TQUMethod slot_3 = {"copy", 0, 0 };
    static const TQUMethod slot_4 = {"paste", 0, 0 };
    static const TQUMethod slot_5 = {"del", 0, 0 };
    static const TQUMethod slot_6 = {"selectAll", 0, 0 };
    static const TQUMethod slot_7 = {"beginFromSource", 0, 0 };
    static const TQUMethod slot_8 = {"toggleGuessing", 0, 0 };
    static const TQUMethod slot_9 = {"finishAndNext", 0, 0 };
    static const TQUMethod slot_10 = {"emitTranslationChanged", 0, 0 };
    static const TQUParameter param_slot_11[] = {
	{ "accelKey", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_11 = {"guessActivated", 1, param_slot_11 };
    static const TQUParameter param_slot_12[] = {
	{ "item", &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_12 = {"insertPhraseInTranslation", 1, param_slot_12 };
    static const TQUParameter param_slot_13[] = {
	{ "item", &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_13 = {"insertPhraseInTranslationAndLeave", 1, param_slot_13 };
    static const TQUMethod slot_14 = {"updateButtons", 0, 0 };
    static const TQUMethod slot_15 = {"updateCanPaste", 0, 0 };
    static const TQUMethod slot_16 = {"toggleFinished", 0, 0 };
    static const TQUParameter param_slot_17[] = {
	{ "height", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_17 = {"updatePageHeight", 1, param_slot_17 };
    static const TQMetaData slot_tbl[] = {
	{ "undo()", &slot_0, TQMetaData::Public },
	{ "redo()", &slot_1, TQMetaData::Public },
	{ "cut()", &slot_2, TQMetaData::Public },
	{ "copy()", &slot_3, TQMetaData::Public },
	{ "paste()", &slot_4, TQMetaData::Public },
	{ "del()", &slot_5, TQMetaData::Public },
	{ "selectAll()", &slot_6, TQMetaData::Public },
	{ "beginFromSource()", &slot_7, TQMetaData::Public },
	{ "toggleGuessing()", &slot_8, TQMetaData::Public },
	{ "finishAndNext()", &slot_9, TQMetaData::Public },
	{ "emitTranslationChanged()", &slot_10, TQMetaData::Private },
	{ "guessActivated(int)", &slot_11, TQMetaData::Private },
	{ "insertPhraseInTranslation(TQListViewItem*)", &slot_12, TQMetaData::Private },
	{ "insertPhraseInTranslationAndLeave(TQListViewItem*)", &slot_13, TQMetaData::Private },
	{ "updateButtons()", &slot_14, TQMetaData::Private },
	{ "updateCanPaste()", &slot_15, TQMetaData::Private },
	{ "toggleFinished()", &slot_16, TQMetaData::Private },
	{ "updatePageHeight(int)", &slot_17, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "translation", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"translationChanged", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "finished", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"finished", 1, param_signal_1 };
    static const TQUMethod signal_2 = {"prevUnfinished", 0, 0 };
    static const TQUMethod signal_3 = {"nextUnfinished", 0, 0 };
    static const TQUParameter param_signal_4[] = {
	{ "enable", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"updateActions", 1, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ "avail", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"undoAvailable", 1, param_signal_5 };
    static const TQUParameter param_signal_6[] = {
	{ "avail", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_6 = {"redoAvailable", 1, param_signal_6 };
    static const TQUParameter param_signal_7[] = {
	{ "avail", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_7 = {"cutAvailable", 1, param_signal_7 };
    static const TQUParameter param_signal_8[] = {
	{ "avail", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_8 = {"copyAvailable", 1, param_signal_8 };
    static const TQUParameter param_signal_9[] = {
	{ "avail", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod signal_9 = {"pasteAvailable", 1, param_signal_9 };
    static const TQUMethod signal_10 = {"focusSourceList", 0, 0 };
    static const TQUMethod signal_11 = {"focusPhraseList", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "translationChanged(const TQString&)", &signal_0, TQMetaData::Public },
	{ "finished(bool)", &signal_1, TQMetaData::Public },
	{ "prevUnfinished()", &signal_2, TQMetaData::Public },
	{ "nextUnfinished()", &signal_3, TQMetaData::Public },
	{ "updateActions(bool)", &signal_4, TQMetaData::Public },
	{ "undoAvailable(bool)", &signal_5, TQMetaData::Public },
	{ "redoAvailable(bool)", &signal_6, TQMetaData::Public },
	{ "cutAvailable(bool)", &signal_7, TQMetaData::Public },
	{ "copyAvailable(bool)", &signal_8, TQMetaData::Public },
	{ "pasteAvailable(bool)", &signal_9, TQMetaData::Public },
	{ "focusSourceList()", &signal_10, TQMetaData::Public },
	{ "focusPhraseList()", &signal_11, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"MessageEditor", parentObject,
	slot_tbl, 18,
	signal_tbl, 12,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_MessageEditor.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

// TQ_SIGNAL prevUnfinished
void MessageEditor::prevUnfinished()
{
    activate_signal( staticMetaObject()->signalOffset() + 2 );
}

// TQ_SIGNAL nextUnfinished
void MessageEditor::nextUnfinished()
{
    activate_signal( staticMetaObject()->signalOffset() + 3 );
}

// TQ_SIGNAL updateActions
void MessageEditor::updateActions( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 4, t0 );
}

// TQ_SIGNAL undoAvailable
void MessageEditor::undoAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 5, t0 );
}

// TQ_SIGNAL redoAvailable
void MessageEditor::redoAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 6, t0 );
}

// TQ_SIGNAL cutAvailable
void MessageEditor::cutAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 7, t0 );
}

// TQ_SIGNAL copyAvailable
void MessageEditor::copyAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 8, t0 );
}

// TQ_SIGNAL pasteAvailable
void MessageEditor::pasteAvailable( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 9, t0 );
}

// TQ_SIGNAL focusSourceList
void MessageEditor::focusSourceList()
{
    activate_signal( staticMetaObject()->signalOffset() + 10 );
}

// TQ_SIGNAL focusPhraseList
void MessageEditor::focusPhraseList()
{
    activate_signal( staticMetaObject()->signalOffset() + 11 );
}

bool MessageEditor::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: undo(); break;
    case 1: redo(); break;
    case 2: cut(); break;
    case 3: copy(); break;
    case 4: paste(); break;
    case 5: del(); break;
    case 6: selectAll(); break;
    case 7: beginFromSource(); break;
    case 8: toggleGuessing(); break;
    case 9: finishAndNext(); break;
    case 10: emitTranslationChanged(); break;
    case 11: guessActivated((int)static_QUType_int.get(_o+1)); break;
    case 12: insertPhraseInTranslation((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 13: insertPhraseInTranslationAndLeave((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 14: updateButtons(); break;
    case 15: updateCanPaste(); break;
    case 16: toggleFinished(); break;
    case 17: updatePageHeight((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool MessageEditor::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: translationChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: finished((bool)static_QUType_bool.get(_o+1)); break;
    case 2: prevUnfinished(); break;
    case 3: nextUnfinished(); break;
    case 4: updateActions((bool)static_QUType_bool.get(_o+1)); break;
    case 5: undoAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 6: redoAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 7: cutAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 8: copyAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 9: pasteAvailable((bool)static_QUType_bool.get(_o+1)); break;
    case 10: focusSourceList(); break;
    case 11: focusPhraseList(); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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