/****************************************************************************
** PrintPreview meta object code from reading C++ file 'printpreview.h'
**
** Created: Tue Aug 28 10:53:45 2007
**      by: The Qt MOC ($Id: $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "../../../opengl/printpreview.h"
#include <qmetaobject.h>
#include <qapplication.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.3.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

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

QMetaObject *PrintPreview::metaObj = 0;
static QMetaObjectCleanUp cleanUp_PrintPreview( "PrintPreview", &PrintPreview::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString PrintPreview::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "PrintPreview", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString PrintPreview::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "PrintPreview", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* PrintPreview::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = QDialog::staticMetaObject();
    static const QUMethod slot_0 = {"updatePreview", 0, 0 };
    static const QUParameter param_slot_1[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_1 = {"flip", 1, param_slot_1 };
    static const QUParameter param_slot_2[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_2 = {"invertColors", 1, param_slot_2 };
    static const QUParameter param_slot_3[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_3 = {"mirror", 1, param_slot_3 };
    static const QUParameter param_slot_4[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_4 = {"rotateLeft", 1, param_slot_4 };
    static const QUParameter param_slot_5[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_5 = {"rotateRight", 1, param_slot_5 };
    static const QUParameter param_slot_6[] = {
	{ "pm", &static_QUType_varptr, "\x06", QUParameter::In }
    };
    static const QUMethod slot_6 = {"setPixmap", 1, param_slot_6 };
    static const QUMethod slot_7 = {"languageChange", 0, 0 };
    static const QUMethod slot_8 = {"init", 0, 0 };
    static const QUMethod slot_9 = {"destroy", 0, 0 };
    static const QMetaData slot_tbl[] = {
	{ "updatePreview()", &slot_0, QMetaData::Public },
	{ "flip(bool)", &slot_1, QMetaData::Public },
	{ "invertColors(bool)", &slot_2, QMetaData::Public },
	{ "mirror(bool)", &slot_3, QMetaData::Public },
	{ "rotateLeft(bool)", &slot_4, QMetaData::Public },
	{ "rotateRight(bool)", &slot_5, QMetaData::Public },
	{ "setPixmap(const QPixmap&)", &slot_6, QMetaData::Public },
	{ "languageChange()", &slot_7, QMetaData::Protected },
	{ "init()", &slot_8, QMetaData::Protected },
	{ "destroy()", &slot_9, QMetaData::Protected }
    };
    metaObj = QMetaObject::new_metaobject(
	"PrintPreview", parentObject,
	slot_tbl, 10,
	0, 0,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_PrintPreview.setMetaObject( metaObj );
    return metaObj;
}

void* PrintPreview::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "PrintPreview" ) )
	return this;
    return QDialog::qt_cast( clname );
}

bool PrintPreview::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: updatePreview(); break;
    case 1: flip((bool)static_QUType_bool.get(_o+1)); break;
    case 2: invertColors((bool)static_QUType_bool.get(_o+1)); break;
    case 3: mirror((bool)static_QUType_bool.get(_o+1)); break;
    case 4: rotateLeft((bool)static_QUType_bool.get(_o+1)); break;
    case 5: rotateRight((bool)static_QUType_bool.get(_o+1)); break;
    case 6: setPixmap((const QPixmap&)*((const QPixmap*)static_QUType_ptr.get(_o+1))); break;
    case 7: languageChange(); break;
    case 8: init(); break;
    case 9: destroy(); break;
    default:
	return QDialog::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool PrintPreview::qt_emit( int _id, QUObject* _o )
{
    return QDialog::qt_emit(_id,_o);
}
#ifndef QT_NO_PROPERTIES

bool PrintPreview::qt_property( int id, int f, QVariant* v)
{
    return QDialog::qt_property( id, f, v);
}

bool PrintPreview::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
