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

TQMetaObject *TQDialogButtons::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDialogButtons( "TQDialogButtons", &TQDialogButtons::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDialogButtons::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 = {"handleClicked", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "handleClicked()", &slot_0, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_ptr, "Button", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"clicked", 1, param_signal_0 };
    static const TQUMethod signal_1 = {"acceptClicked", 0, 0 };
    static const TQUMethod signal_2 = {"rejectClicked", 0, 0 };
    static const TQUMethod signal_3 = {"helpClicked", 0, 0 };
    static const TQUMethod signal_4 = {"applyClicked", 0, 0 };
    static const TQUMethod signal_5 = {"allClicked", 0, 0 };
    static const TQUMethod signal_6 = {"retryClicked", 0, 0 };
    static const TQUMethod signal_7 = {"ignoreClicked", 0, 0 };
    static const TQUMethod signal_8 = {"abortClicked", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "clicked(Button)", &signal_0, TQMetaData::Private },
	{ "acceptClicked()", &signal_1, TQMetaData::Private },
	{ "rejectClicked()", &signal_2, TQMetaData::Private },
	{ "helpClicked()", &signal_3, TQMetaData::Private },
	{ "applyClicked()", &signal_4, TQMetaData::Private },
	{ "allClicked()", &signal_5, TQMetaData::Private },
	{ "retryClicked()", &signal_6, TQMetaData::Private },
	{ "ignoreClicked()", &signal_7, TQMetaData::Private },
	{ "abortClicked()", &signal_8, TQMetaData::Private }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TQDialogButtons", parentObject,
	slot_tbl, 1,
	signal_tbl, 9,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDialogButtons.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL clicked
void TQDialogButtons::clicked( Button t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,&t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

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

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

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

// TQ_SIGNAL applyClicked
void TQDialogButtons::applyClicked()
{
    activate_signal( staticMetaObject()->signalOffset() + 4 );
}

// TQ_SIGNAL allClicked
void TQDialogButtons::allClicked()
{
    activate_signal( staticMetaObject()->signalOffset() + 5 );
}

// TQ_SIGNAL retryClicked
void TQDialogButtons::retryClicked()
{
    activate_signal( staticMetaObject()->signalOffset() + 6 );
}

// TQ_SIGNAL ignoreClicked
void TQDialogButtons::ignoreClicked()
{
    activate_signal( staticMetaObject()->signalOffset() + 7 );
}

// TQ_SIGNAL abortClicked
void TQDialogButtons::abortClicked()
{
    activate_signal( staticMetaObject()->signalOffset() + 8 );
}

bool TQDialogButtons::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: handleClicked(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQDialogButtons::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: clicked((Button)(*((Button*)static_QUType_ptr.get(_o+1)))); break;
    case 1: acceptClicked(); break;
    case 2: rejectClicked(); break;
    case 3: helpClicked(); break;
    case 4: applyClicked(); break;
    case 5: allClicked(); break;
    case 6: retryClicked(); break;
    case 7: ignoreClicked(); break;
    case 8: abortClicked(); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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