1 /****************************************************************************
2 ** My_Edit meta object code from reading C++ file 'editor.h'
4 ** Created: Fri Mar 4 12:26:17 2011
5 ** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.8 edited Feb 2 14:59 $)
7 ** WARNING! All changes made in this file will be lost!
8 *****************************************************************************/
12 #include <qmetaobject.h>
13 #include <qapplication.h>
15 #include <private/qucomextra_p.h>
16 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
17 #error "This file was generated using the moc from 3.3.8b. It"
18 #error "cannot be used with the include files from this version of Qt."
19 #error "(The moc has changed too much.)"
22 const char *My_Edit::className() const
27 QMetaObject *My_Edit::metaObj = 0;
28 static QMetaObjectCleanUp cleanUp_My_Edit( "My_Edit", &My_Edit::staticMetaObject );
30 #ifndef QT_NO_TRANSLATION
31 QString My_Edit::tr( const char *s, const char *c )
34 return qApp->translate( "My_Edit", s, c, QApplication::DefaultCodec );
36 return QString::fromLatin1( s );
38 #ifndef QT_NO_TRANSLATION_UTF8
39 QString My_Edit::trUtf8( const char *s, const char *c )
42 return qApp->translate( "My_Edit", s, c, QApplication::UnicodeUTF8 );
44 return QString::fromUtf8( s );
46 #endif // QT_NO_TRANSLATION_UTF8
48 #endif // QT_NO_TRANSLATION
50 QMetaObject* My_Edit::staticMetaObject()
54 QMetaObject* parentObject = QMultiLineEdit::staticMetaObject();
55 static const QUMethod signal_0 = {"cursorMove", 0, 0 };
56 static const QMetaData signal_tbl[] = {
57 { "cursorMove()", &signal_0, QMetaData::Public }
59 metaObj = QMetaObject::new_metaobject(
60 "My_Edit", parentObject,
63 #ifndef QT_NO_PROPERTIES
66 #endif // QT_NO_PROPERTIES
68 cleanUp_My_Edit.setMetaObject( metaObj );
72 void* My_Edit::qt_cast( const char* clname )
74 if ( !qstrcmp( clname, "My_Edit" ) )
76 return QMultiLineEdit::qt_cast( clname );
80 void My_Edit::cursorMove()
82 activate_signal( staticMetaObject()->signalOffset() + 0 );
85 bool My_Edit::qt_invoke( int _id, QUObject* _o )
87 return QMultiLineEdit::qt_invoke(_id,_o);
90 bool My_Edit::qt_emit( int _id, QUObject* _o )
92 switch ( _id - staticMetaObject()->signalOffset() ) {
93 case 0: cursorMove(); break;
95 return QMultiLineEdit::qt_emit(_id,_o);
99 #ifndef QT_NO_PROPERTIES
101 bool My_Edit::qt_property( int id, int f, QVariant* v)
103 return QMultiLineEdit::qt_property( id, f, v);
106 bool My_Edit::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
107 #endif // QT_NO_PROPERTIES
110 const char *Editor::className() const
115 QMetaObject *Editor::metaObj = 0;
116 static QMetaObjectCleanUp cleanUp_Editor( "Editor", &Editor::staticMetaObject );
118 #ifndef QT_NO_TRANSLATION
119 QString Editor::tr( const char *s, const char *c )
122 return qApp->translate( "Editor", s, c, QApplication::DefaultCodec );
124 return QString::fromLatin1( s );
126 #ifndef QT_NO_TRANSLATION_UTF8
127 QString Editor::trUtf8( const char *s, const char *c )
130 return qApp->translate( "Editor", s, c, QApplication::UnicodeUTF8 );
132 return QString::fromUtf8( s );
134 #endif // QT_NO_TRANSLATION_UTF8
136 #endif // QT_NO_TRANSLATION
138 QMetaObject* Editor::staticMetaObject()
142 QMetaObject* parentObject = QWidget::staticMetaObject();
143 static const QUMethod slot_0 = {"load", 0, 0 };
144 static const QUParameter param_slot_1[] = {
145 { "fileName", &static_QUType_charstar, 0, QUParameter::In }
147 static const QUMethod slot_1 = {"load", 1, param_slot_1 };
148 static const QUMethod slot_2 = {"save", 0, 0 };
149 static const QUParameter param_slot_3[] = {
150 { "fileName", &static_QUType_charstar, 0, QUParameter::In }
152 static const QUMethod slot_3 = {"save", 1, param_slot_3 };
153 static const QUMethod slot_4 = {"save_as", 0, 0 };
154 static const QUMethod slot_5 = {"create", 0, 0 };
155 static const QUMethod slot_6 = {"props", 0, 0 };
156 static const QUMethod slot_7 = {"print", 0, 0 };
157 static const QUMethod slot_8 = {"cmp", 0, 0 };
158 static const QUMethod slot_9 = {"gen", 0, 0 };
159 static const QUMethod slot_10 = {"comp_all", 0, 0 };
160 static const QUMethod slot_11 = {"log_unit", 0, 0 };
161 static const QUMethod slot_12 = {"log_prog", 0, 0 };
162 static const QUMethod slot_13 = {"findText", 0, 0 };
163 static const QUMethod slot_14 = {"find_next", 0, 0 };
164 static const QUMethod slot_15 = {"updateline", 0, 0 };
165 static const QMetaData slot_tbl[] = {
166 { "load()", &slot_0, QMetaData::Public },
167 { "load(const char*)", &slot_1, QMetaData::Public },
168 { "save()", &slot_2, QMetaData::Public },
169 { "save(const char*)", &slot_3, QMetaData::Public },
170 { "save_as()", &slot_4, QMetaData::Public },
171 { "create()", &slot_5, QMetaData::Public },
172 { "props()", &slot_6, QMetaData::Public },
173 { "print()", &slot_7, QMetaData::Public },
174 { "cmp()", &slot_8, QMetaData::Public },
175 { "gen()", &slot_9, QMetaData::Public },
176 { "comp_all()", &slot_10, QMetaData::Public },
177 { "log_unit()", &slot_11, QMetaData::Public },
178 { "log_prog()", &slot_12, QMetaData::Public },
179 { "findText()", &slot_13, QMetaData::Public },
180 { "find_next()", &slot_14, QMetaData::Public },
181 { "updateline()", &slot_15, QMetaData::Public }
183 metaObj = QMetaObject::new_metaobject(
184 "Editor", parentObject,
187 #ifndef QT_NO_PROPERTIES
190 #endif // QT_NO_PROPERTIES
192 cleanUp_Editor.setMetaObject( metaObj );
196 void* Editor::qt_cast( const char* clname )
198 if ( !qstrcmp( clname, "Editor" ) )
200 return QWidget::qt_cast( clname );
203 bool Editor::qt_invoke( int _id, QUObject* _o )
205 switch ( _id - staticMetaObject()->slotOffset() ) {
206 case 0: load(); break;
207 case 1: load((const char*)static_QUType_charstar.get(_o+1)); break;
208 case 2: save(); break;
209 case 3: save((const char*)static_QUType_charstar.get(_o+1)); break;
210 case 4: save_as(); break;
211 case 5: create(); break;
212 case 6: props(); break;
213 case 7: print(); break;
214 case 8: cmp(); break;
215 case 9: gen(); break;
216 case 10: comp_all(); break;
217 case 11: log_unit(); break;
218 case 12: log_prog(); break;
219 case 13: findText(); break;
220 case 14: find_next(); break;
221 case 15: updateline(); break;
223 return QWidget::qt_invoke( _id, _o );
228 bool Editor::qt_emit( int _id, QUObject* _o )
230 return QWidget::qt_emit(_id,_o);
232 #ifndef QT_NO_PROPERTIES
234 bool Editor::qt_property( int id, int f, QVariant* v)
236 return QWidget::qt_property( id, f, v);
239 bool Editor::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
240 #endif // QT_NO_PROPERTIES