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

TQMetaObject *MainWindow::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_MainWindow( "MainWindow", &MainWindow::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* MainWindow::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 = MainWindowBase::staticMetaObject();
    static const TQUMethod slot_0 = {"buildPalette", 0, 0 };
    static const TQUMethod slot_1 = {"buildFont", 0, 0 };
    static const TQUMethod slot_2 = {"tunePalette", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"paletteSelected", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"styleSelected", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"familySelected", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"substituteSelected", 1, param_slot_6 };
    static const TQUMethod slot_7 = {"removeSubstitute", 0, 0 };
    static const TQUMethod slot_8 = {"addSubstitute", 0, 0 };
    static const TQUMethod slot_9 = {"downSubstitute", 0, 0 };
    static const TQUMethod slot_10 = {"upSubstitute", 0, 0 };
    static const TQUMethod slot_11 = {"removeLibpath", 0, 0 };
    static const TQUMethod slot_12 = {"addLibpath", 0, 0 };
    static const TQUMethod slot_13 = {"downLibpath", 0, 0 };
    static const TQUMethod slot_14 = {"upLibpath", 0, 0 };
    static const TQUMethod slot_15 = {"browseLibpath", 0, 0 };
    static const TQUMethod slot_16 = {"removeFontpath", 0, 0 };
    static const TQUMethod slot_17 = {"addFontpath", 0, 0 };
    static const TQUMethod slot_18 = {"downFontpath", 0, 0 };
    static const TQUMethod slot_19 = {"upFontpath", 0, 0 };
    static const TQUMethod slot_20 = {"browseFontpath", 0, 0 };
    static const TQUMethod slot_21 = {"fileSave", 0, 0 };
    static const TQUMethod slot_22 = {"fileExit", 0, 0 };
    static const TQUMethod slot_23 = {"somethingModified", 0, 0 };
    static const TQUMethod slot_24 = {"helpAbout", 0, 0 };
    static const TQUMethod slot_25 = {"helpAboutTQt", 0, 0 };
    static const TQUParameter param_slot_26[] = {
	{ 0, &static_QUType_ptr, "TQWidget", TQUParameter::In }
    };
    static const TQUMethod slot_26 = {"pageChanged", 1, param_slot_26 };
    static const TQMetaData slot_tbl[] = {
	{ "buildPalette()", &slot_0, TQMetaData::Public },
	{ "buildFont()", &slot_1, TQMetaData::Public },
	{ "tunePalette()", &slot_2, TQMetaData::Public },
	{ "paletteSelected(int)", &slot_3, TQMetaData::Public },
	{ "styleSelected(const TQString&)", &slot_4, TQMetaData::Public },
	{ "familySelected(const TQString&)", &slot_5, TQMetaData::Public },
	{ "substituteSelected(const TQString&)", &slot_6, TQMetaData::Public },
	{ "removeSubstitute()", &slot_7, TQMetaData::Public },
	{ "addSubstitute()", &slot_8, TQMetaData::Public },
	{ "downSubstitute()", &slot_9, TQMetaData::Public },
	{ "upSubstitute()", &slot_10, TQMetaData::Public },
	{ "removeLibpath()", &slot_11, TQMetaData::Public },
	{ "addLibpath()", &slot_12, TQMetaData::Public },
	{ "downLibpath()", &slot_13, TQMetaData::Public },
	{ "upLibpath()", &slot_14, TQMetaData::Public },
	{ "browseLibpath()", &slot_15, TQMetaData::Public },
	{ "removeFontpath()", &slot_16, TQMetaData::Public },
	{ "addFontpath()", &slot_17, TQMetaData::Public },
	{ "downFontpath()", &slot_18, TQMetaData::Public },
	{ "upFontpath()", &slot_19, TQMetaData::Public },
	{ "browseFontpath()", &slot_20, TQMetaData::Public },
	{ "fileSave()", &slot_21, TQMetaData::Public },
	{ "fileExit()", &slot_22, TQMetaData::Public },
	{ "somethingModified()", &slot_23, TQMetaData::Public },
	{ "helpAbout()", &slot_24, TQMetaData::Public },
	{ "helpAboutTQt()", &slot_25, TQMetaData::Public },
	{ "pageChanged(TQWidget*)", &slot_26, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"MainWindow", parentObject,
	slot_tbl, 27,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_MainWindow.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool MainWindow::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: buildPalette(); break;
    case 1: buildFont(); break;
    case 2: tunePalette(); break;
    case 3: paletteSelected((int)static_QUType_int.get(_o+1)); break;
    case 4: styleSelected((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 5: familySelected((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 6: substituteSelected((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 7: removeSubstitute(); break;
    case 8: addSubstitute(); break;
    case 9: downSubstitute(); break;
    case 10: upSubstitute(); break;
    case 11: removeLibpath(); break;
    case 12: addLibpath(); break;
    case 13: downLibpath(); break;
    case 14: upLibpath(); break;
    case 15: browseLibpath(); break;
    case 16: removeFontpath(); break;
    case 17: addFontpath(); break;
    case 18: downFontpath(); break;
    case 19: upFontpath(); break;
    case 20: browseFontpath(); break;
    case 21: fileSave(); break;
    case 22: fileExit(); break;
    case 23: somethingModified(); break;
    case 24: helpAbout(); break;
    case 25: helpAboutTQt(); break;
    case 26: pageChanged((TQWidget*)static_QUType_ptr.get(_o+1)); break;
    default:
	return MainWindowBase::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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