/****************************************************************************
** KviMdiManager meta object code from reading C++ file 'kvi_mdimanager.h'
**
** Created: Mon Feb 25 00:12:36 2008
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.8   edited Feb 2 14:59 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "kvi_mdimanager.h"
#include <qmetaobject.h>
#include <qapplication.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.3.8. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

const char *KviMdiManager::className() const
{
    return "KviMdiManager";
}

QMetaObject *KviMdiManager::metaObj = 0;
static QMetaObjectCleanUp cleanUp_KviMdiManager( "KviMdiManager", &KviMdiManager::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString KviMdiManager::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "KviMdiManager", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString KviMdiManager::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "KviMdiManager", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* KviMdiManager::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = KviTalScrollView::staticMetaObject();
    static const QUMethod slot_0 = {"relayoutMenuButtons", 0, 0 };
    static const QUMethod slot_1 = {"cascadeWindows", 0, 0 };
    static const QUMethod slot_2 = {"cascadeMaximized", 0, 0 };
    static const QUMethod slot_3 = {"expandVertical", 0, 0 };
    static const QUMethod slot_4 = {"expandHorizontal", 0, 0 };
    static const QUMethod slot_5 = {"minimizeAll", 0, 0 };
    static const QUMethod slot_6 = {"tile", 0, 0 };
    static const QUMethod slot_7 = {"toggleAutoTile", 0, 0 };
    static const QUMethod slot_8 = {"tileAnodine", 0, 0 };
    static const QUMethod slot_9 = {"reloadImages", 0, 0 };
    static const QUMethod slot_10 = {"minimizeActiveChild", 0, 0 };
    static const QUMethod slot_11 = {"restoreActiveChild", 0, 0 };
    static const QUMethod slot_12 = {"closeActiveChild", 0, 0 };
    static const QUMethod slot_13 = {"activeChildSystemPopup", 0, 0 };
    static const QUParameter param_slot_14[] = {
	{ "id", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_14 = {"menuActivated", 1, param_slot_14 };
    static const QUParameter param_slot_15[] = {
	{ "id", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_15 = {"tileMethodMenuActivated", 1, param_slot_15 };
    static const QUMethod slot_16 = {"fillWindowPopup", 0, 0 };
    static const QUMethod slot_17 = {"sdiMinimizeButtonDestroyed", 0, 0 };
    static const QUMethod slot_18 = {"sdiRestoreButtonDestroyed", 0, 0 };
    static const QUMethod slot_19 = {"sdiCloseButtonDestroyed", 0, 0 };
    static const QUMethod slot_20 = {"sdiIconButtonDestroyed", 0, 0 };
    static const QMetaData slot_tbl[] = {
	{ "relayoutMenuButtons()", &slot_0, QMetaData::Public },
	{ "cascadeWindows()", &slot_1, QMetaData::Public },
	{ "cascadeMaximized()", &slot_2, QMetaData::Public },
	{ "expandVertical()", &slot_3, QMetaData::Public },
	{ "expandHorizontal()", &slot_4, QMetaData::Public },
	{ "minimizeAll()", &slot_5, QMetaData::Public },
	{ "tile()", &slot_6, QMetaData::Public },
	{ "toggleAutoTile()", &slot_7, QMetaData::Public },
	{ "tileAnodine()", &slot_8, QMetaData::Public },
	{ "reloadImages()", &slot_9, QMetaData::Public },
	{ "minimizeActiveChild()", &slot_10, QMetaData::Protected },
	{ "restoreActiveChild()", &slot_11, QMetaData::Protected },
	{ "closeActiveChild()", &slot_12, QMetaData::Protected },
	{ "activeChildSystemPopup()", &slot_13, QMetaData::Protected },
	{ "menuActivated(int)", &slot_14, QMetaData::Protected },
	{ "tileMethodMenuActivated(int)", &slot_15, QMetaData::Protected },
	{ "fillWindowPopup()", &slot_16, QMetaData::Protected },
	{ "sdiMinimizeButtonDestroyed()", &slot_17, QMetaData::Protected },
	{ "sdiRestoreButtonDestroyed()", &slot_18, QMetaData::Protected },
	{ "sdiCloseButtonDestroyed()", &slot_19, QMetaData::Protected },
	{ "sdiIconButtonDestroyed()", &slot_20, QMetaData::Protected }
    };
    static const QUMethod signal_0 = {"enteredSdiMode", 0, 0 };
    static const QUMethod signal_1 = {"leftSdiMode", 0, 0 };
    static const QMetaData signal_tbl[] = {
	{ "enteredSdiMode()", &signal_0, QMetaData::Private },
	{ "leftSdiMode()", &signal_1, QMetaData::Private }
    };
    metaObj = QMetaObject::new_metaobject(
	"KviMdiManager", parentObject,
	slot_tbl, 21,
	signal_tbl, 2,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_KviMdiManager.setMetaObject( metaObj );
    return metaObj;
}

void* KviMdiManager::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "KviMdiManager" ) )
	return this;
    return KviTalScrollView::qt_cast( clname );
}

// SIGNAL enteredSdiMode
void KviMdiManager::enteredSdiMode()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

// SIGNAL leftSdiMode
void KviMdiManager::leftSdiMode()
{
    activate_signal( staticMetaObject()->signalOffset() + 1 );
}

bool KviMdiManager::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: relayoutMenuButtons(); break;
    case 1: cascadeWindows(); break;
    case 2: cascadeMaximized(); break;
    case 3: expandVertical(); break;
    case 4: expandHorizontal(); break;
    case 5: minimizeAll(); break;
    case 6: tile(); break;
    case 7: toggleAutoTile(); break;
    case 8: tileAnodine(); break;
    case 9: reloadImages(); break;
    case 10: minimizeActiveChild(); break;
    case 11: restoreActiveChild(); break;
    case 12: closeActiveChild(); break;
    case 13: activeChildSystemPopup(); break;
    case 14: menuActivated((int)static_QUType_int.get(_o+1)); break;
    case 15: tileMethodMenuActivated((int)static_QUType_int.get(_o+1)); break;
    case 16: fillWindowPopup(); break;
    case 17: sdiMinimizeButtonDestroyed(); break;
    case 18: sdiRestoreButtonDestroyed(); break;
    case 19: sdiCloseButtonDestroyed(); break;
    case 20: sdiIconButtonDestroyed(); break;
    default:
	return KviTalScrollView::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool KviMdiManager::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: enteredSdiMode(); break;
    case 1: leftSdiMode(); break;
    default:
	return KviTalScrollView::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool KviMdiManager::qt_property( int id, int f, QVariant* v)
{
    return KviTalScrollView::qt_property( id, f, v);
}

bool KviMdiManager::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
