/****************************************************************************
** FileChooser meta object code from reading C++ file 'standard input'
**
** 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 "/tmp/buildd/tde-packaging/arch/tde-devel/tde-tdevelop/src/tdevelop-trinity-14.1.6/kdevdesigner/designer/filechooser.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

#include <ntqvariant.h>
const char *FileChooser::className() const
{
    return "FileChooser";
}

TQMetaObject *FileChooser::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_FileChooser( "FileChooser", &FileChooser::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* FileChooser::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();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "File",  (int) FileChooser::File },
	{ "Directory",  (int) FileChooser::Directory }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "Mode", 2, enum_0, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ "fn", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setFileName", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "m", &static_QUType_enum, 
#ifndef TQT_NO_PROPERTIES
	  &enum_tbl[0]
#else
	  0
#endif // TQT_NO_PROPERTIES
	  , TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"setMode", 1, param_slot_1 };
    static const TQUMethod slot_2 = {"chooseFile", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "setFileName(const TQString&)", &slot_0, TQMetaData::Public },
	{ "setMode(Mode)", &slot_1, TQMetaData::Public },
	{ "chooseFile()", &slot_2, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"fileNameChanged", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "fileNameChanged(const TQString&)", &signal_0, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[2] = {
 	{ "Mode","mode", 0x0107, &FileChooser::metaObj, &enum_tbl[0], -1 },
	{ "TQString","fileName", 0x3000103, &FileChooser::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"FileChooser", parentObject,
	slot_tbl, 3,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 2,
	enum_tbl, 1,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_FileChooser.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL fileNameChanged
void FileChooser::fileNameChanged( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

bool FileChooser::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setFileName((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: setMode((Mode)static_QUType_enum.get(_o+1)); break;
    case 2: chooseFile(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool FileChooser::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: fileNameChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool FileChooser::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setMode((Mode&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->mode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setFileName(v->asString()); break;
	case 1: *v = TQVariant( this->fileName() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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