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

TQMetaObject *TQScrollView::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQScrollView( "TQScrollView", &TQScrollView::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQScrollView::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 = TQFrame::staticMetaObject();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "Default",  (int) TQScrollView::Default },
	{ "Manual",  (int) TQScrollView::Manual },
	{ "AutoOne",  (int) TQScrollView::AutoOne },
	{ "AutoOneFit",  (int) TQScrollView::AutoOneFit }
    };
    static const TQMetaEnum::Item enum_1[] = {
	{ "Auto",  (int) TQScrollView::Auto },
	{ "AlwaysOff",  (int) TQScrollView::AlwaysOff },
	{ "AlwaysOn",  (int) TQScrollView::AlwaysOn }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "ResizePolicy", 4, enum_0, false },
	{ "ScrollBarMode", 3, enum_1, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ "w", &static_QUType_int, 0, TQUParameter::In },
	{ "h", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"resizeContents", 2, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "dx", &static_QUType_int, 0, TQUParameter::In },
	{ "dy", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"scrollBy", 2, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "x", &static_QUType_int, 0, TQUParameter::In },
	{ "y", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setContentsPos", 2, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ "x", &static_QUType_int, 0, TQUParameter::In },
	{ "y", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"ensureVisible", 2, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ "x", &static_QUType_int, 0, TQUParameter::In },
	{ "y", &static_QUType_int, 0, TQUParameter::In },
	{ "xmargin", &static_QUType_int, 0, TQUParameter::In },
	{ "ymargin", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"ensureVisible", 4, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ "x", &static_QUType_int, 0, TQUParameter::In },
	{ "y", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"center", 2, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ "x", &static_QUType_int, 0, TQUParameter::In },
	{ "y", &static_QUType_int, 0, TQUParameter::In },
	{ "xmargin", &static_QUType_ptr, "float", TQUParameter::In },
	{ "ymargin", &static_QUType_ptr, "float", TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"center", 4, param_slot_6 };
    static const TQUMethod slot_7 = {"updateScrollBars", 0, 0 };
    static const TQUParameter param_slot_8[] = {
	{ "enable", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"setEnabled", 1, param_slot_8 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"hslide", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"vslide", 1, param_slot_10 };
    static const TQUMethod slot_11 = {"hbarIsPressed", 0, 0 };
    static const TQUMethod slot_12 = {"hbarIsReleased", 0, 0 };
    static const TQUMethod slot_13 = {"vbarIsPressed", 0, 0 };
    static const TQUMethod slot_14 = {"vbarIsReleased", 0, 0 };
    static const TQUMethod slot_15 = {"doDragAutoScroll", 0, 0 };
    static const TQUMethod slot_16 = {"startDragAutoScroll", 0, 0 };
    static const TQUMethod slot_17 = {"stopDragAutoScroll", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "resizeContents(int,int)", &slot_0, TQMetaData::Public },
	{ "scrollBy(int,int)", &slot_1, TQMetaData::Public },
	{ "setContentsPos(int,int)", &slot_2, TQMetaData::Public },
	{ "ensureVisible(int,int)", &slot_3, TQMetaData::Public },
	{ "ensureVisible(int,int,int,int)", &slot_4, TQMetaData::Public },
	{ "center(int,int)", &slot_5, TQMetaData::Public },
	{ "center(int,int,float,float)", &slot_6, TQMetaData::Public },
	{ "updateScrollBars()", &slot_7, TQMetaData::Public },
	{ "setEnabled(bool)", &slot_8, TQMetaData::Public },
	{ "hslide(int)", &slot_9, TQMetaData::Private },
	{ "vslide(int)", &slot_10, TQMetaData::Private },
	{ "hbarIsPressed()", &slot_11, TQMetaData::Private },
	{ "hbarIsReleased()", &slot_12, TQMetaData::Private },
	{ "vbarIsPressed()", &slot_13, TQMetaData::Private },
	{ "vbarIsReleased()", &slot_14, TQMetaData::Private },
	{ "doDragAutoScroll()", &slot_15, TQMetaData::Private },
	{ "startDragAutoScroll()", &slot_16, TQMetaData::Private },
	{ "stopDragAutoScroll()", &slot_17, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "x", &static_QUType_int, 0, TQUParameter::In },
	{ "y", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"contentsMoving", 2, param_signal_0 };
    static const TQUMethod signal_1 = {"horizontalSliderPressed", 0, 0 };
    static const TQUMethod signal_2 = {"horizontalSliderReleased", 0, 0 };
    static const TQUMethod signal_3 = {"verticalSliderPressed", 0, 0 };
    static const TQUMethod signal_4 = {"verticalSliderReleased", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "contentsMoving(int,int)", &signal_0, TQMetaData::Public },
	{ "horizontalSliderPressed()", &signal_1, TQMetaData::Public },
	{ "horizontalSliderReleased()", &signal_2, TQMetaData::Public },
	{ "verticalSliderPressed()", &signal_3, TQMetaData::Public },
	{ "verticalSliderReleased()", &signal_4, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[10] = {
 	{ "ResizePolicy","resizePolicy", 0x0107, &TQScrollView::metaObj, &enum_tbl[0], -1 },
	{ "ScrollBarMode","vScrollBarMode", 0x0107, &TQScrollView::metaObj, &enum_tbl[1], -1 },
	{ "ScrollBarMode","hScrollBarMode", 0x0107, &TQScrollView::metaObj, &enum_tbl[1], -1 },
	{ "int","visibleWidth", 0x10000001, &TQScrollView::metaObj, 0, -1 },
	{ "int","visibleHeight", 0x10000001, &TQScrollView::metaObj, 0, -1 },
	{ "int","contentsWidth", 0x10000001, &TQScrollView::metaObj, 0, -1 },
	{ "int","contentsHeight", 0x10000001, &TQScrollView::metaObj, 0, -1 },
	{ "int","contentsX", 0x10000001, &TQScrollView::metaObj, 0, -1 },
	{ "int","contentsY", 0x10000001, &TQScrollView::metaObj, 0, -1 },
	{ "bool","dragAutoScroll", 0x12000103, &TQScrollView::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQScrollView", parentObject,
	slot_tbl, 18,
	signal_tbl, 5,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 10,
	enum_tbl, 2,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQScrollView.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

// TQ_SIGNAL contentsMoving
void TQScrollView::contentsMoving( int t0, int t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_int.set(o+1,t0);
    static_QUType_int.set(o+2,t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

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

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

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

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

bool TQScrollView::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: resizeContents((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 1: scrollBy((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 2: setContentsPos((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 3: ensureVisible((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 4: ensureVisible((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(int)static_QUType_int.get(_o+3),(int)static_QUType_int.get(_o+4)); break;
    case 5: center((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 6: center((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(float)(*((float*)static_QUType_ptr.get(_o+3))),(float)(*((float*)static_QUType_ptr.get(_o+4)))); break;
    case 7: updateScrollBars(); break;
    case 8: setEnabled((bool)static_QUType_bool.get(_o+1)); break;
    case 9: hslide((int)static_QUType_int.get(_o+1)); break;
    case 10: vslide((int)static_QUType_int.get(_o+1)); break;
    case 11: hbarIsPressed(); break;
    case 12: hbarIsReleased(); break;
    case 13: vbarIsPressed(); break;
    case 14: vbarIsReleased(); break;
    case 15: doDragAutoScroll(); break;
    case 16: startDragAutoScroll(); break;
    case 17: stopDragAutoScroll(); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQScrollView::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: contentsMoving((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 1: horizontalSliderPressed(); break;
    case 2: horizontalSliderReleased(); break;
    case 3: verticalSliderPressed(); break;
    case 4: verticalSliderReleased(); break;
    default:
	return TQFrame::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQScrollView::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setResizePolicy((ResizePolicy&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->resizePolicy() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setVScrollBarMode((ScrollBarMode&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->vScrollBarMode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setHScrollBarMode((ScrollBarMode&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->hScrollBarMode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 1: *v = TQVariant( this->visibleWidth() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 1: *v = TQVariant( this->visibleHeight() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 1: *v = TQVariant( this->contentsWidth() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 1: *v = TQVariant( this->contentsHeight() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 1: *v = TQVariant( this->contentsX() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 8: switch( f ) {
	case 1: *v = TQVariant( this->contentsY() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: switch( f ) {
	case 0: setDragAutoScroll(v->asBool()); break;
	case 1: *v = TQVariant( this->dragAutoScroll() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQFrame::tqt_property( id, f, v );
    }
    return true;
}

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