00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #undef QT_NO_COMPAT
00011 #include "editorhelper.h"
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.2.3. 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 const char *EditorHelper::className() const
00023 {
00024 return "EditorHelper";
00025 }
00026
00027 QMetaObject *EditorHelper::metaObj = 0;
00028 static QMetaObjectCleanUp cleanUp_EditorHelper( "EditorHelper", &EditorHelper::staticMetaObject );
00029
00030 #ifndef QT_NO_TRANSLATION
00031 QString EditorHelper::tr( const char *s, const char *c )
00032 {
00033 if ( qApp )
00034 return qApp->translate( "EditorHelper", s, c, QApplication::DefaultCodec );
00035 else
00036 return QString::fromLatin1( s );
00037 }
00038 #ifndef QT_NO_TRANSLATION_UTF8
00039 QString EditorHelper::trUtf8( const char *s, const char *c )
00040 {
00041 if ( qApp )
00042 return qApp->translate( "EditorHelper", s, c, QApplication::UnicodeUTF8 );
00043 else
00044 return QString::fromUtf8( s );
00045 }
00046 #endif // QT_NO_TRANSLATION_UTF8
00047
00048 #endif // QT_NO_TRANSLATION
00049
00050 QMetaObject* EditorHelper::staticMetaObject()
00051 {
00052 if ( metaObj )
00053 return metaObj;
00054 QMetaObject* parentObject = QObject::staticMetaObject();
00055 static const QUMethod slot_0 = {"setupToolBar", 0, 0 };
00056 static const QUMethod slot_1 = {"setupEditorConnections", 0, 0 };
00057 static const QUMethod slot_2 = {"editUndo", 0, 0 };
00058 static const QUMethod slot_3 = {"editRedo", 0, 0 };
00059 static const QUMethod slot_4 = {"editCut", 0, 0 };
00060 static const QUMethod slot_5 = {"editCopy", 0, 0 };
00061 static const QUMethod slot_6 = {"editPaste", 0, 0 };
00062 static const QUMethod slot_7 = {"textBold", 0, 0 };
00063 static const QUMethod slot_8 = {"textUnderline", 0, 0 };
00064 static const QUMethod slot_9 = {"textItalic", 0, 0 };
00065 static const QUParameter param_slot_10[] = {
00066 { "f", &static_QUType_QString, 0, QUParameter::In }
00067 };
00068 static const QUMethod slot_10 = {"textFamily", 1, param_slot_10 };
00069 static const QUParameter param_slot_11[] = {
00070 { "p", &static_QUType_QString, 0, QUParameter::In }
00071 };
00072 static const QUMethod slot_11 = {"textSize", 1, param_slot_11 };
00073 static const QUParameter param_slot_12[] = {
00074 { "s", &static_QUType_int, 0, QUParameter::In }
00075 };
00076 static const QUMethod slot_12 = {"textStyle", 1, param_slot_12 };
00077 static const QUMethod slot_13 = {"textColor", 0, 0 };
00078 static const QUParameter param_slot_14[] = {
00079 { "a", &static_QUType_ptr, "QAction", QUParameter::In }
00080 };
00081 static const QUMethod slot_14 = {"textAlign", 1, param_slot_14 };
00082 static const QUParameter param_slot_15[] = {
00083 { "f", &static_QUType_varptr, "\x05", QUParameter::In }
00084 };
00085 static const QUMethod slot_15 = {"fontChanged", 1, param_slot_15 };
00086 static const QUParameter param_slot_16[] = {
00087 { "c", &static_QUType_varptr, "\x0a", QUParameter::In }
00088 };
00089 static const QUMethod slot_16 = {"colorChanged", 1, param_slot_16 };
00090 static const QUParameter param_slot_17[] = {
00091 { "a", &static_QUType_int, 0, QUParameter::In }
00092 };
00093 static const QUMethod slot_17 = {"alignmentChanged", 1, param_slot_17 };
00094 static const QMetaData slot_tbl[] = {
00095 { "setupToolBar()", &slot_0, QMetaData::Public },
00096 { "setupEditorConnections()", &slot_1, QMetaData::Public },
00097 { "editUndo()", &slot_2, QMetaData::Private },
00098 { "editRedo()", &slot_3, QMetaData::Private },
00099 { "editCut()", &slot_4, QMetaData::Private },
00100 { "editCopy()", &slot_5, QMetaData::Private },
00101 { "editPaste()", &slot_6, QMetaData::Private },
00102 { "textBold()", &slot_7, QMetaData::Private },
00103 { "textUnderline()", &slot_8, QMetaData::Private },
00104 { "textItalic()", &slot_9, QMetaData::Private },
00105 { "textFamily(const QString&)", &slot_10, QMetaData::Private },
00106 { "textSize(const QString&)", &slot_11, QMetaData::Private },
00107 { "textStyle(int)", &slot_12, QMetaData::Private },
00108 { "textColor()", &slot_13, QMetaData::Private },
00109 { "textAlign(QAction*)", &slot_14, QMetaData::Private },
00110 { "fontChanged(const QFont&)", &slot_15, QMetaData::Private },
00111 { "colorChanged(const QColor&)", &slot_16, QMetaData::Private },
00112 { "alignmentChanged(int)", &slot_17, QMetaData::Private }
00113 };
00114 metaObj = QMetaObject::new_metaobject(
00115 "EditorHelper", parentObject,
00116 slot_tbl, 18,
00117 0, 0,
00118 #ifndef QT_NO_PROPERTIES
00119 0, 0,
00120 0, 0,
00121 #endif
00122 0, 0 );
00123 cleanUp_EditorHelper.setMetaObject( metaObj );
00124 return metaObj;
00125 }
00126
00127 void* EditorHelper::qt_cast( const char* clname )
00128 {
00129 if ( !qstrcmp( clname, "EditorHelper" ) )
00130 return this;
00131 return QObject::qt_cast( clname );
00132 }
00133
00134 bool EditorHelper::qt_invoke( int _id, QUObject* _o )
00135 {
00136 switch ( _id - staticMetaObject()->slotOffset() ) {
00137 case 0: setupToolBar(); break;
00138 case 1: setupEditorConnections(); break;
00139 case 2: editUndo(); break;
00140 case 3: editRedo(); break;
00141 case 4: editCut(); break;
00142 case 5: editCopy(); break;
00143 case 6: editPaste(); break;
00144 case 7: textBold(); break;
00145 case 8: textUnderline(); break;
00146 case 9: textItalic(); break;
00147 case 10: textFamily((const QString&)static_QUType_QString.get(_o+1)); break;
00148 case 11: textSize((const QString&)static_QUType_QString.get(_o+1)); break;
00149 case 12: textStyle((int)static_QUType_int.get(_o+1)); break;
00150 case 13: textColor(); break;
00151 case 14: textAlign((QAction*)static_QUType_ptr.get(_o+1)); break;
00152 case 15: fontChanged((const QFont&)*((const QFont*)static_QUType_ptr.get(_o+1))); break;
00153 case 16: colorChanged((const QColor&)*((const QColor*)static_QUType_ptr.get(_o+1))); break;
00154 case 17: alignmentChanged((int)static_QUType_int.get(_o+1)); break;
00155 default:
00156 return QObject::qt_invoke( _id, _o );
00157 }
00158 return TRUE;
00159 }
00160
00161 bool EditorHelper::qt_emit( int _id, QUObject* _o )
00162 {
00163 return QObject::qt_emit(_id,_o);
00164 }
00165 #ifndef QT_NO_PROPERTIES
00166
00167 bool EditorHelper::qt_property( int id, int f, QVariant* v)
00168 {
00169 return QObject::qt_property( id, f, v);
00170 }
00171
00172 bool EditorHelper::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
00173 #endif // QT_NO_PROPERTIES