/****************************************************************************
** TQTitleBar meta object code from reading C++ file 'qtitlebar_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/qtitlebar_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

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

TQMetaObject *TQTitleBar::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQTitleBar( "TQTitleBar", &TQTitleBar::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQTitleBar::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[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setActive", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "title", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"setCaption", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "icon", &static_QUType_varptr, "\x06", TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setIcon", 1, param_slot_2 };
    static const TQMetaData slot_tbl[] = {
	{ "setActive(bool)", &slot_0, TQMetaData::Public },
	{ "setCaption(const TQString&)", &slot_1, TQMetaData::Public },
	{ "setIcon(const TQPixmap&)", &slot_2, TQMetaData::Public }
    };
    static const TQUMethod signal_0 = {"doActivate", 0, 0 };
    static const TQUMethod signal_1 = {"doNormal", 0, 0 };
    static const TQUMethod signal_2 = {"doClose", 0, 0 };
    static const TQUMethod signal_3 = {"doMaximize", 0, 0 };
    static const TQUMethod signal_4 = {"doMinimize", 0, 0 };
    static const TQUMethod signal_5 = {"doShade", 0, 0 };
    static const TQUMethod signal_6 = {"showOperationMenu", 0, 0 };
    static const TQUParameter param_signal_7[] = {
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod signal_7 = {"popupOperationMenu", 1, param_signal_7 };
    static const TQUMethod signal_8 = {"doubleClicked", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "doActivate()", &signal_0, TQMetaData::Public },
	{ "doNormal()", &signal_1, TQMetaData::Public },
	{ "doClose()", &signal_2, TQMetaData::Public },
	{ "doMaximize()", &signal_3, TQMetaData::Public },
	{ "doMinimize()", &signal_4, TQMetaData::Public },
	{ "doShade()", &signal_5, TQMetaData::Public },
	{ "showOperationMenu()", &signal_6, TQMetaData::Public },
	{ "popupOperationMenu(const TQPoint&)", &signal_7, TQMetaData::Public },
	{ "doubleClicked()", &signal_8, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[2] = {
 	{ "bool","autoRaise", 0x12000103, &TQTitleBar::metaObj, 0, -1 },
	{ "bool","movable", 0x12000103, &TQTitleBar::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQTitleBar", parentObject,
	slot_tbl, 3,
	signal_tbl, 9,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 2,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQTitleBar.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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

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

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

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

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

// TQ_SIGNAL popupOperationMenu
void TQTitleBar::popupOperationMenu( const TQPoint& t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 7 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_varptr.set(o+1,&t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

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

bool TQTitleBar::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setActive((bool)static_QUType_bool.get(_o+1)); break;
    case 1: setCaption((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 2: setIcon((const TQPixmap&)*((const TQPixmap*)static_QUType_ptr.get(_o+1))); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQTitleBar::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: doActivate(); break;
    case 1: doNormal(); break;
    case 2: doClose(); break;
    case 3: doMaximize(); break;
    case 4: doMinimize(); break;
    case 5: doShade(); break;
    case 6: showOperationMenu(); break;
    case 7: popupOperationMenu((const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+1))); break;
    case 8: doubleClicked(); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQTitleBar::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setAutoRaise(v->asBool()); break;
	case 1: *v = TQVariant( this->autoRaise() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setMovable(v->asBool()); break;
	case 1: *v = TQVariant( this->isMovable() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQWidget::tqt_property( id, f, v );
    }
    return true;
}

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