Logo Search packages:      
Sourcecode: valkyrie version File versions  Download package

intspinbox.moc.cpp

/****************************************************************************
** SpinWidget meta object code from reading C++ file 'intspinbox.h'
**
** Created: Sat Feb 21 11:49:29 2009
**      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 "intspinbox.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.8b. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

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

QMetaObject *SpinWidget::metaObj = 0;
static QMetaObjectCleanUp cleanUp_SpinWidget( "SpinWidget", &SpinWidget::staticMetaObject );

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

#endif // QT_NO_TRANSLATION

QMetaObject* SpinWidget::staticMetaObject()
{
    if ( metaObj )
      return metaObj;
    QMetaObject* parentObject = QWidget::staticMetaObject();
    static const QUMethod slot_0 = {"stepUp", 0, 0 };
    static const QUMethod slot_1 = {"stepDown", 0, 0 };
    static const QUMethod slot_2 = {"timerDone", 0, 0 };
    static const QUMethod slot_3 = {"timerDoneEx", 0, 0 };
    static const QMetaData slot_tbl[] = {
      { "stepUp()", &slot_0, QMetaData::Public },
      { "stepDown()", &slot_1, QMetaData::Public },
      { "timerDone()", &slot_2, QMetaData::Private },
      { "timerDoneEx()", &slot_3, QMetaData::Private }
    };
    static const QUMethod signal_0 = {"stepUpPressed", 0, 0 };
    static const QUMethod signal_1 = {"stepDownPressed", 0, 0 };
    static const QMetaData signal_tbl[] = {
      { "stepUpPressed()", &signal_0, QMetaData::Public },
      { "stepDownPressed()", &signal_1, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
      "SpinWidget", parentObject,
      slot_tbl, 4,
      signal_tbl, 2,
#ifndef QT_NO_PROPERTIES
      0, 0,
      0, 0,
#endif // QT_NO_PROPERTIES
      0, 0 );
    cleanUp_SpinWidget.setMetaObject( metaObj );
    return metaObj;
}

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

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

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

bool SpinWidget::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: stepUp(); break;
    case 1: stepDown(); break;
    case 2: timerDone(); break;
    case 3: timerDoneEx(); break;
    default:
      return QWidget::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool SpinWidget::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: stepUpPressed(); break;
    case 1: stepDownPressed(); break;
    default:
      return QWidget::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

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

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


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

QMetaObject *Editor::metaObj = 0;
static QMetaObjectCleanUp cleanUp_Editor( "Editor", &Editor::staticMetaObject );

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

#endif // QT_NO_TRANSLATION

QMetaObject* Editor::staticMetaObject()
{
    if ( metaObj )
      return metaObj;
    QMetaObject* parentObject = QWidget::staticMetaObject();
    metaObj = QMetaObject::new_metaobject(
      "Editor", parentObject,
      0, 0,
      0, 0,
#ifndef QT_NO_PROPERTIES
      0, 0,
      0, 0,
#endif // QT_NO_PROPERTIES
      0, 0 );
    cleanUp_Editor.setMetaObject( metaObj );
    return metaObj;
}

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

bool Editor::qt_invoke( int _id, QUObject* _o )
{
    return QWidget::qt_invoke(_id,_o);
}

bool Editor::qt_emit( int _id, QUObject* _o )
{
    return QWidget::qt_emit(_id,_o);
}
#ifndef QT_NO_PROPERTIES

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

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


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

QMetaObject *IntSpin::metaObj = 0;
static QMetaObjectCleanUp cleanUp_IntSpin( "IntSpin", &IntSpin::staticMetaObject );

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

#endif // QT_NO_TRANSLATION

QMetaObject* IntSpin::staticMetaObject()
{
    if ( metaObj )
      return metaObj;
    QMetaObject* parentObject = QWidget::staticMetaObject();
    static const QUMethod slot_0 = {"stepUp", 0, 0 };
    static const QUMethod slot_1 = {"stepDown", 0, 0 };
    static const QMetaData slot_tbl[] = {
      { "stepUp()", &slot_0, QMetaData::Public },
      { "stepDown()", &slot_1, QMetaData::Public }
    };
    static const QUParameter param_signal_0[] = {
      { 0, &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod signal_0 = {"valueChanged", 1, param_signal_0 };
    static const QMetaData signal_tbl[] = {
      { "valueChanged(const QString&)", &signal_0, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
      "IntSpin", parentObject,
      slot_tbl, 2,
      signal_tbl, 1,
#ifndef QT_NO_PROPERTIES
      0, 0,
      0, 0,
#endif // QT_NO_PROPERTIES
      0, 0 );
    cleanUp_IntSpin.setMetaObject( metaObj );
    return metaObj;
}

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

// SIGNAL valueChanged
void IntSpin::valueChanged( const QString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

bool IntSpin::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: stepUp(); break;
    case 1: stepDown(); break;
    default:
      return QWidget::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool IntSpin::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: valueChanged((const QString&)static_QUType_QString.get(_o+1)); break;
    default:
      return QWidget::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

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

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

Generated by  Doxygen 1.6.0   Back to index