Logo Search packages:      
Sourcecode: hamfax version File versions

moc_FaxImage.cpp

/****************************************************************************
** FaxImage meta object code from reading C++ file 'FaxImage.hpp'
**
** Created: Sun May 11 14:12:23 2003
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.1.1   edited Dec 9 10:40 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

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

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

QMetaObject *FaxImage::metaObj = 0;
static QMetaObjectCleanUp cleanUp_FaxImage( "FaxImage", &FaxImage::staticMetaObject );

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

#endif // QT_NO_TRANSLATION

QMetaObject* FaxImage::staticMetaObject()
{
    if ( metaObj )
      return metaObj;
    QMetaObject* parentObject = QScrollView::staticMetaObject();
    static const QUParameter param_slot_0[] = {
      { 0, &static_QUType_bool, 0, QUParameter::Out },
      { "col", &static_QUType_int, 0, QUParameter::In },
      { "row", &static_QUType_int, 0, QUParameter::In },
      { "value", &static_QUType_int, 0, QUParameter::In },
      { "rgbg", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_0 = {"setPixel", 5, param_slot_0 };
    static const QUParameter param_slot_1[] = {
      { "cols", &static_QUType_int, 0, QUParameter::In },
      { "rows", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_1 = {"create", 2, param_slot_1 };
    static const QUParameter param_slot_2[] = {
      { "width", &static_QUType_int, 0, QUParameter::In },
      { "height", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_2 = {"scale", 2, param_slot_2 };
    static const QUParameter param_slot_3[] = {
      { "width", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_3 = {"scale", 1, param_slot_3 };
    static const QUParameter param_slot_4[] = {
      { "x", &static_QUType_int, 0, QUParameter::In },
      { "y", &static_QUType_int, 0, QUParameter::In },
      { "w", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_4 = {"resize", 3, param_slot_4 };
    static const QUParameter param_slot_5[] = {
      { "x", &static_QUType_int, 0, QUParameter::In },
      { "y", &static_QUType_int, 0, QUParameter::In },
      { "w", &static_QUType_int, 0, QUParameter::In },
      { "h", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_5 = {"resize", 4, param_slot_5 };
    static const QUParameter param_slot_6[] = {
      { "w", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_6 = {"setWidth", 1, param_slot_6 };
    static const QUParameter param_slot_7[] = {
      { "b", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_7 = {"setAutoScroll", 1, param_slot_7 };
    static const QUMethod slot_8 = {"correctSlant", 0, 0 };
    static const QUMethod slot_9 = {"shiftColors", 0, 0 };
    static const QUMethod slot_10 = {"correctBegin", 0, 0 };
    static const QMetaData slot_tbl[] = {
      { "setPixel(int,int,int,int)", &slot_0, QMetaData::Public },
      { "create(int,int)", &slot_1, QMetaData::Public },
      { "scale(int,int)", &slot_2, QMetaData::Public },
      { "scale(int)", &slot_3, QMetaData::Public },
      { "resize(int,int,int)", &slot_4, QMetaData::Public },
      { "resize(int,int,int,int)", &slot_5, QMetaData::Public },
      { "setWidth(int)", &slot_6, QMetaData::Public },
      { "setAutoScroll(bool)", &slot_7, QMetaData::Public },
      { "correctSlant()", &slot_8, QMetaData::Public },
      { "shiftColors()", &slot_9, QMetaData::Public },
      { "correctBegin()", &slot_10, QMetaData::Public }
    };
    static const QUParameter param_signal_0[] = {
      { 0, &static_QUType_int, 0, QUParameter::In },
      { 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod signal_0 = {"sizeUpdated", 2, param_signal_0 };
    static const QUMethod signal_1 = {"clicked", 0, 0 };
    static const QUParameter param_signal_2[] = {
      { 0, &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod signal_2 = {"widthAdjust", 1, param_signal_2 };
    static const QUMethod signal_3 = {"newImage", 0, 0 };
    static const QUParameter param_signal_4[] = {
      { 0, &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod signal_4 = {"shiftLine", 1, param_signal_4 };
    static const QMetaData signal_tbl[] = {
      { "sizeUpdated(int,int)", &signal_0, QMetaData::Private },
      { "clicked()", &signal_1, QMetaData::Private },
      { "widthAdjust(double)", &signal_2, QMetaData::Private },
      { "newImage()", &signal_3, QMetaData::Private },
      { "shiftLine(double)", &signal_4, QMetaData::Private }
    };
    metaObj = QMetaObject::new_metaobject(
      "FaxImage", parentObject,
      slot_tbl, 11,
      signal_tbl, 5,
#ifndef QT_NO_PROPERTIES
      0, 0,
      0, 0,
#endif // QT_NO_PROPERTIES
      0, 0 );
    cleanUp_FaxImage.setMetaObject( metaObj );
    return metaObj;
}

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

#include <qobjectdefs.h>
#include <qsignalslotimp.h>

// SIGNAL sizeUpdated
void FaxImage::sizeUpdated( int t0, int t1 )
{
    if ( signalsBlocked() )
      return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
      return;
    QUObject o[3];
    static_QUType_int.set(o+1,t0);
    static_QUType_int.set(o+2,t1);
    activate_signal( clist, o );
}

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

// SIGNAL widthAdjust
void FaxImage::widthAdjust( double t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 2, t0 );
}

// SIGNAL newImage
void FaxImage::newImage()
{
    activate_signal( staticMetaObject()->signalOffset() + 3 );
}

// SIGNAL shiftLine
void FaxImage::shiftLine( double t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 4, t0 );
}

bool FaxImage::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: static_QUType_bool.set(_o,setPixel((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 1: create((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 2: scale((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 3: scale((int)static_QUType_int.get(_o+1)); break;
    case 4: resize((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(int)static_QUType_int.get(_o+3)); break;
    case 5: resize((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 6: setWidth((int)static_QUType_int.get(_o+1)); break;
    case 7: setAutoScroll((bool)static_QUType_bool.get(_o+1)); break;
    case 8: correctSlant(); break;
    case 9: shiftColors(); break;
    case 10: correctBegin(); break;
    default:
      return QScrollView::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool FaxImage::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: sizeUpdated((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 1: clicked(); break;
    case 2: widthAdjust((double)static_QUType_double.get(_o+1)); break;
    case 3: newImage(); break;
    case 4: shiftLine((double)static_QUType_double.get(_o+1)); break;
    default:
      return QScrollView::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

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

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

Generated by  Doxygen 1.6.0   Back to index