Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

moc_node.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Node meta object code from reading C++ file 'node.hpp'
00003 **
00004 ** Created: qui 16. jun 01:45:05 2005
00005 **      by: The Qt MOC ($Id: $)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 *****************************************************************************/
00009 
00010 #undef QT_NO_COMPAT
00011 #include "node.hpp"
00012 #include <qmetaobject.h>
00013 #include <qapplication.h>
00014 
00015 #include <private/qucomextra_p.h>
00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
00017 #error "This file was generated using the moc from 3.3.2. It"
00018 #error "cannot be used with the include files from this version of Qt."
00019 #error "(The moc has changed too much.)"
00020 #endif
00021 
00022 #include <qvariant.h>
00023 const char *Node::className() const
00024 {
00025     return "Node";
00026 }
00027 
00028 QMetaObject *Node::metaObj = 0;
00029 static QMetaObjectCleanUp cleanUp_Node( "Node", &Node::staticMetaObject );
00030 
00031 #ifndef QT_NO_TRANSLATION
00032 QString Node::tr( const char *s, const char *c )
00033 {
00034     if ( qApp )
00035         return qApp->translate( "Node", s, c, QApplication::DefaultCodec );
00036     else
00037         return QString::fromLatin1( s );
00038 }
00039 #ifndef QT_NO_TRANSLATION_UTF8
00040 QString Node::trUtf8( const char *s, const char *c )
00041 {
00042     if ( qApp )
00043         return qApp->translate( "Node", s, c, QApplication::UnicodeUTF8 );
00044     else
00045         return QString::fromUtf8( s );
00046 }
00047 #endif // QT_NO_TRANSLATION_UTF8
00048 
00049 #endif // QT_NO_TRANSLATION
00050 
00051 QMetaObject* Node::staticMetaObject()
00052 {
00053     if ( metaObj )
00054         return metaObj;
00055     QMetaObject* parentObject = QWidget::staticMetaObject();
00056 #ifndef QT_NO_PROPERTIES
00057     static const QMetaProperty props_tbl[4] = {
00058         { "QString","publicName", 0x3000103, &Node::metaObj, 0, -1 },
00059         { "QString","description", 0x3000103, &Node::metaObj, 0, -1 },
00060         { "float","trust", 0x010f, &Node::metaObj, 0, -1 },
00061         { "bool","changed", 0x12000103, &Node::metaObj, 0, -1 }
00062     };
00063 #endif // QT_NO_PROPERTIES
00064     metaObj = QMetaObject::new_metaobject(
00065         "Node", parentObject,
00066         0, 0,
00067         0, 0,
00068 #ifndef QT_NO_PROPERTIES
00069         props_tbl, 4,
00070         0, 0,
00071 #endif // QT_NO_PROPERTIES
00072         0, 0 );
00073     cleanUp_Node.setMetaObject( metaObj );
00074     return metaObj;
00075 }
00076 
00077 void* Node::qt_cast( const char* clname )
00078 {
00079     if ( !qstrcmp( clname, "Node" ) )
00080         return this;
00081     return QWidget::qt_cast( clname );
00082 }
00083 
00084 bool Node::qt_invoke( int _id, QUObject* _o )
00085 {
00086     return QWidget::qt_invoke(_id,_o);
00087 }
00088 
00089 bool Node::qt_emit( int _id, QUObject* _o )
00090 {
00091     return QWidget::qt_emit(_id,_o);
00092 }
00093 #ifndef QT_NO_PROPERTIES
00094 
00095 bool Node::qt_property( int id, int f, QVariant* v)
00096 {
00097     switch ( id - staticMetaObject()->propertyOffset() ) {
00098     case 0: switch( f ) {
00099         case 0: setPublicName(v->asString()); break;
00100         case 1: *v = QVariant( this->publicName() ); break;
00101         case 3: case 4: case 5: break;
00102         default: return FALSE;
00103     } break;
00104     case 1: switch( f ) {
00105         case 0: setDescription(v->asString()); break;
00106         case 1: *v = QVariant( this->description() ); break;
00107         case 3: case 4: case 5: break;
00108         default: return FALSE;
00109     } break;
00110     case 2: switch( f ) {
00111         case 0: setTrust((float&)v->asInt()); break;
00112         case 1: *v = QVariant( (int)this->trust() ); break;
00113         case 3: case 4: case 5: break;
00114         default: return FALSE;
00115     } break;
00116     case 3: switch( f ) {
00117         case 0: setChanged(v->asBool()); break;
00118         case 1: *v = QVariant( this->changed(), 0 ); break;
00119         case 3: case 4: case 5: break;
00120         default: return FALSE;
00121     } break;
00122     default:
00123         return QWidget::qt_property( id, f, v );
00124     }
00125     return TRUE;
00126 }
00127 
00128 bool Node::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
00129 #endif // QT_NO_PROPERTIES
Untitled Document Pesquisa Psi SourceForge.net Logo