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

TQMetaObject *TQTabDialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQTabDialog( "TQTabDialog", &TQTabDialog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQTabDialog::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 TQUParameter param_slot_0[] = {
	{ "i", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"showTab", 1, param_slot_0 };
    static const TQMetaData slot_tbl[] = {
	{ "showTab(int)", &slot_0, TQMetaData::Private }
    };
    static const TQUMethod signal_0 = {"aboutToShow", 0, 0 };
    static const TQUMethod signal_1 = {"applyButtonPressed", 0, 0 };
    static const TQUMethod signal_2 = {"cancelButtonPressed", 0, 0 };
    static const TQUMethod signal_3 = {"defaultButtonPressed", 0, 0 };
    static const TQUMethod signal_4 = {"helpButtonPressed", 0, 0 };
    static const TQUParameter param_signal_5[] = {
	{ 0, &static_QUType_ptr, "TQWidget", TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"currentChanged", 1, param_signal_5 };
    static const TQUParameter param_signal_6[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_6 = {"selected", 1, param_signal_6 };
    static const TQMetaData signal_tbl[] = {
	{ "aboutToShow()", &signal_0, TQMetaData::Protected },
	{ "applyButtonPressed()", &signal_1, TQMetaData::Protected },
	{ "cancelButtonPressed()", &signal_2, TQMetaData::Protected },
	{ "defaultButtonPressed()", &signal_3, TQMetaData::Protected },
	{ "helpButtonPressed()", &signal_4, TQMetaData::Protected },
	{ "currentChanged(TQWidget*)", &signal_5, TQMetaData::Protected },
	{ "selected(const TQString&)", &signal_6, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TQTabDialog", parentObject,
	slot_tbl, 1,
	signal_tbl, 7,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQTabDialog.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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

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

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

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

// TQ_SIGNAL selected
void TQTabDialog::selected( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 6, t0 );
}

bool TQTabDialog::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: showTab((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQTabDialog::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: aboutToShow(); break;
    case 1: applyButtonPressed(); break;
    case 2: cancelButtonPressed(); break;
    case 3: defaultButtonPressed(); break;
    case 4: helpButtonPressed(); break;
    case 5: currentChanged((TQWidget*)static_QUType_ptr.get(_o+1)); break;
    case 6: selected((const TQString&)static_QUType_TQString.get(_o+1)); break;
    default:
	return TQDialog::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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