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

TQMetaObject *TQPrintDialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQPrintDialog( "TQPrintDialog", &TQPrintDialog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQPrintDialog::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"browseClicked", 0, 0 };
    static const TQUMethod slot_1 = {"okClicked", 0, 0 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"printerOrFileSelected", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"landscapeSelected", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"paperSizeSelected", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"orientSelected", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"pageOrderSelected", 1, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"colorModeSelected", 1, param_slot_7 };
    static const TQUParameter param_slot_8[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"setNumCopies", 1, param_slot_8 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"printRangeSelected", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"setFirstPage", 1, param_slot_10 };
    static const TQUParameter param_slot_11[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_11 = {"setLastPage", 1, param_slot_11 };
    static const TQUParameter param_slot_12[] = {
	{ "text", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_12 = {"fileNameEditChanged", 1, param_slot_12 };
    static const TQMetaData slot_tbl[] = {
	{ "browseClicked()", &slot_0, TQMetaData::Private },
	{ "okClicked()", &slot_1, TQMetaData::Private },
	{ "printerOrFileSelected(int)", &slot_2, TQMetaData::Private },
	{ "landscapeSelected(int)", &slot_3, TQMetaData::Private },
	{ "paperSizeSelected(int)", &slot_4, TQMetaData::Private },
	{ "orientSelected(int)", &slot_5, TQMetaData::Private },
	{ "pageOrderSelected(int)", &slot_6, TQMetaData::Private },
	{ "colorModeSelected(int)", &slot_7, TQMetaData::Private },
	{ "setNumCopies(int)", &slot_8, TQMetaData::Private },
	{ "printRangeSelected(int)", &slot_9, TQMetaData::Private },
	{ "setFirstPage(int)", &slot_10, TQMetaData::Private },
	{ "setLastPage(int)", &slot_11, TQMetaData::Private },
	{ "fileNameEditChanged(const TQString&)", &slot_12, TQMetaData::Private }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TQPrintDialog", parentObject,
	slot_tbl, 13,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQPrintDialog.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQPrintDialog::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: browseClicked(); break;
    case 1: okClicked(); break;
    case 2: printerOrFileSelected((int)static_QUType_int.get(_o+1)); break;
    case 3: landscapeSelected((int)static_QUType_int.get(_o+1)); break;
    case 4: paperSizeSelected((int)static_QUType_int.get(_o+1)); break;
    case 5: orientSelected((int)static_QUType_int.get(_o+1)); break;
    case 6: pageOrderSelected((int)static_QUType_int.get(_o+1)); break;
    case 7: colorModeSelected((int)static_QUType_int.get(_o+1)); break;
    case 8: setNumCopies((int)static_QUType_int.get(_o+1)); break;
    case 9: printRangeSelected((int)static_QUType_int.get(_o+1)); break;
    case 10: setFirstPage((int)static_QUType_int.get(_o+1)); break;
    case 11: setLastPage((int)static_QUType_int.get(_o+1)); break;
    case 12: fileNameEditChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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