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

TQMetaObject *FormWindow::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_FormWindow( "FormWindow", &FormWindow::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* FormWindow::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 TQUParameter param_slot_0[] = {
	{ "w", &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"widgetChanged", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"currentToolChanged", 0, 0 };
    static const TQUMethod slot_2 = {"visibilityChanged", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ "m", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"modificationChanged", 1, param_slot_3 };
    static const TQUMethod slot_4 = {"invalidCheckedSelections", 0, 0 };
    static const TQUMethod slot_5 = {"updatePropertiesTimerDone", 0, 0 };
    static const TQUMethod slot_6 = {"showPropertiesTimerDone", 0, 0 };
    static const TQUMethod slot_7 = {"selectionChangedTimerDone", 0, 0 };
    static const TQUMethod slot_8 = {"windowsRepaintWorkaroundTimerTimeout", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "widgetChanged(TQObject*)", &slot_0, TQMetaData::Public },
	{ "currentToolChanged()", &slot_1, TQMetaData::Public },
	{ "visibilityChanged()", &slot_2, TQMetaData::Public },
	{ "modificationChanged(bool)", &slot_3, TQMetaData::Public },
	{ "invalidCheckedSelections()", &slot_4, TQMetaData::Private },
	{ "updatePropertiesTimerDone()", &slot_5, TQMetaData::Private },
	{ "showPropertiesTimerDone()", &slot_6, TQMetaData::Private },
	{ "selectionChangedTimerDone()", &slot_7, TQMetaData::Private },
	{ "windowsRepaintWorkaroundTimerTimeout()", &slot_8, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "w", &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"showProperties", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "w", &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"updateProperties", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ "undoAvailable", &static_QUType_bool, 0, TQUParameter::In },
	{ "redoAvailable", &static_QUType_bool, 0, TQUParameter::In },
	{ "undoCmd", &static_QUType_TQString, 0, TQUParameter::In },
	{ "redoCmd", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"undoRedoChanged", 4, param_signal_2 };
    static const TQUMethod signal_3 = {"selectionChanged", 0, 0 };
    static const TQUParameter param_signal_4[] = {
	{ "m", &static_QUType_bool, 0, TQUParameter::In },
	{ "fw", &static_QUType_ptr, "FormWindow", TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"modificationChanged", 2, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ "m", &static_QUType_bool, 0, TQUParameter::In },
	{ "s", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"modificationChanged", 2, param_signal_5 };
    static const TQUParameter param_signal_6[] = {
	{ "s", &static_QUType_TQString, 0, TQUParameter::In },
	{ "fw", &static_QUType_ptr, "FormWindow", TQUParameter::In }
    };
    static const TQUMethod signal_6 = {"fileNameChanged", 2, param_signal_6 };
    static const TQMetaData signal_tbl[] = {
	{ "showProperties(TQObject*)", &signal_0, TQMetaData::Public },
	{ "updateProperties(TQObject*)", &signal_1, TQMetaData::Public },
	{ "undoRedoChanged(bool,bool,const TQString&,const TQString&)", &signal_2, TQMetaData::Public },
	{ "selectionChanged()", &signal_3, TQMetaData::Public },
	{ "modificationChanged(bool,FormWindow*)", &signal_4, TQMetaData::Public },
	{ "modificationChanged(bool,const TQString&)", &signal_5, TQMetaData::Public },
	{ "fileNameChanged(const TQString&,FormWindow*)", &signal_6, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[1] = {
 	{ "TQString","fileName", 0x3000103, &FormWindow::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"FormWindow", parentObject,
	slot_tbl, 9,
	signal_tbl, 7,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 1,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_FormWindow.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL showProperties
void FormWindow::showProperties( TQObject* 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 updateProperties
void FormWindow::updateProperties( TQObject* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 1 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL undoRedoChanged
void FormWindow::undoRedoChanged( bool t0, bool t1, const TQString& t2, const TQString& t3 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 2 );
    if ( !clist )
	return;
    TQUObject o[5];
    static_QUType_bool.set(o+1,t0);
    static_QUType_bool.set(o+2,t1);
    static_QUType_TQString.set(o+3,t2);
    static_QUType_TQString.set(o+4,t3);
    o[4].isLastObject = true;
    activate_signal( clist, o );
}

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

// TQ_SIGNAL modificationChanged
void FormWindow::modificationChanged( bool t0, FormWindow* t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 4 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_bool.set(o+1,t0);
    static_QUType_ptr.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL modificationChanged
void FormWindow::modificationChanged( bool t0, const TQString& t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 5 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_bool.set(o+1,t0);
    static_QUType_TQString.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL fileNameChanged
void FormWindow::fileNameChanged( const TQString& t0, FormWindow* t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 6 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_TQString.set(o+1,t0);
    static_QUType_ptr.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

bool FormWindow::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: widgetChanged((TQObject*)static_QUType_ptr.get(_o+1)); break;
    case 1: currentToolChanged(); break;
    case 2: visibilityChanged(); break;
    case 3: modificationChanged((bool)static_QUType_bool.get(_o+1)); break;
    case 4: invalidCheckedSelections(); break;
    case 5: updatePropertiesTimerDone(); break;
    case 6: showPropertiesTimerDone(); break;
    case 7: selectionChangedTimerDone(); break;
    case 8: windowsRepaintWorkaroundTimerTimeout(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool FormWindow::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: showProperties((TQObject*)static_QUType_ptr.get(_o+1)); break;
    case 1: updateProperties((TQObject*)static_QUType_ptr.get(_o+1)); break;
    case 2: undoRedoChanged((bool)static_QUType_bool.get(_o+1),(bool)static_QUType_bool.get(_o+2),(const TQString&)static_QUType_TQString.get(_o+3),(const TQString&)static_QUType_TQString.get(_o+4)); break;
    case 3: selectionChanged(); break;
    case 4: modificationChanged((bool)static_QUType_bool.get(_o+1),(FormWindow*)static_QUType_ptr.get(_o+2)); break;
    case 5: modificationChanged((bool)static_QUType_bool.get(_o+1),(const TQString&)static_QUType_TQString.get(_o+2)); break;
    case 6: fileNameChanged((const TQString&)static_QUType_TQString.get(_o+1),(FormWindow*)static_QUType_ptr.get(_o+2)); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool FormWindow::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: 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 FormWindow::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
