b7866f5ce21a4f95ac9c8337c4a7ad33771eaec7
[vlp.git] / edit / moc_editor.cpp
1 /****************************************************************************
2 ** My_Edit meta object code from reading C++ file 'editor.h'
3 **
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 $)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 *****************************************************************************/
9
10 #undef QT_NO_COMPAT
11 #include "editor.h"
12 #include <qmetaobject.h>
13 #include <qapplication.h>
14
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.)"
20 #endif
21
22 const char *My_Edit::className() const
23 {
24     return "My_Edit";
25 }
26
27 QMetaObject *My_Edit::metaObj = 0;
28 static QMetaObjectCleanUp cleanUp_My_Edit( "My_Edit", &My_Edit::staticMetaObject );
29
30 #ifndef QT_NO_TRANSLATION
31 QString My_Edit::tr( const char *s, const char *c )
32 {
33     if ( qApp )
34         return qApp->translate( "My_Edit", s, c, QApplication::DefaultCodec );
35     else
36         return QString::fromLatin1( s );
37 }
38 #ifndef QT_NO_TRANSLATION_UTF8
39 QString My_Edit::trUtf8( const char *s, const char *c )
40 {
41     if ( qApp )
42         return qApp->translate( "My_Edit", s, c, QApplication::UnicodeUTF8 );
43     else
44         return QString::fromUtf8( s );
45 }
46 #endif // QT_NO_TRANSLATION_UTF8
47
48 #endif // QT_NO_TRANSLATION
49
50 QMetaObject* My_Edit::staticMetaObject()
51 {
52     if ( metaObj )
53         return metaObj;
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 }
58     };
59     metaObj = QMetaObject::new_metaobject(
60         "My_Edit", parentObject,
61         0, 0,
62         signal_tbl, 1,
63 #ifndef QT_NO_PROPERTIES
64         0, 0,
65         0, 0,
66 #endif // QT_NO_PROPERTIES
67         0, 0 );
68     cleanUp_My_Edit.setMetaObject( metaObj );
69     return metaObj;
70 }
71
72 void* My_Edit::qt_cast( const char* clname )
73 {
74     if ( !qstrcmp( clname, "My_Edit" ) )
75         return this;
76     return QMultiLineEdit::qt_cast( clname );
77 }
78
79 // SIGNAL cursorMove
80 void My_Edit::cursorMove()
81 {
82     activate_signal( staticMetaObject()->signalOffset() + 0 );
83 }
84
85 bool My_Edit::qt_invoke( int _id, QUObject* _o )
86 {
87     return QMultiLineEdit::qt_invoke(_id,_o);
88 }
89
90 bool My_Edit::qt_emit( int _id, QUObject* _o )
91 {
92     switch ( _id - staticMetaObject()->signalOffset() ) {
93     case 0: cursorMove(); break;
94     default:
95         return QMultiLineEdit::qt_emit(_id,_o);
96     }
97     return TRUE;
98 }
99 #ifndef QT_NO_PROPERTIES
100
101 bool My_Edit::qt_property( int id, int f, QVariant* v)
102 {
103     return QMultiLineEdit::qt_property( id, f, v);
104 }
105
106 bool My_Edit::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
107 #endif // QT_NO_PROPERTIES
108
109
110 const char *Editor::className() const
111 {
112     return "Editor";
113 }
114
115 QMetaObject *Editor::metaObj = 0;
116 static QMetaObjectCleanUp cleanUp_Editor( "Editor", &Editor::staticMetaObject );
117
118 #ifndef QT_NO_TRANSLATION
119 QString Editor::tr( const char *s, const char *c )
120 {
121     if ( qApp )
122         return qApp->translate( "Editor", s, c, QApplication::DefaultCodec );
123     else
124         return QString::fromLatin1( s );
125 }
126 #ifndef QT_NO_TRANSLATION_UTF8
127 QString Editor::trUtf8( const char *s, const char *c )
128 {
129     if ( qApp )
130         return qApp->translate( "Editor", s, c, QApplication::UnicodeUTF8 );
131     else
132         return QString::fromUtf8( s );
133 }
134 #endif // QT_NO_TRANSLATION_UTF8
135
136 #endif // QT_NO_TRANSLATION
137
138 QMetaObject* Editor::staticMetaObject()
139 {
140     if ( metaObj )
141         return metaObj;
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 }
146     };
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 }
151     };
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 }
182     };
183     metaObj = QMetaObject::new_metaobject(
184         "Editor", parentObject,
185         slot_tbl, 16,
186         0, 0,
187 #ifndef QT_NO_PROPERTIES
188         0, 0,
189         0, 0,
190 #endif // QT_NO_PROPERTIES
191         0, 0 );
192     cleanUp_Editor.setMetaObject( metaObj );
193     return metaObj;
194 }
195
196 void* Editor::qt_cast( const char* clname )
197 {
198     if ( !qstrcmp( clname, "Editor" ) )
199         return this;
200     return QWidget::qt_cast( clname );
201 }
202
203 bool Editor::qt_invoke( int _id, QUObject* _o )
204 {
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;
222     default:
223         return QWidget::qt_invoke( _id, _o );
224     }
225     return TRUE;
226 }
227
228 bool Editor::qt_emit( int _id, QUObject* _o )
229 {
230     return QWidget::qt_emit(_id,_o);
231 }
232 #ifndef QT_NO_PROPERTIES
233
234 bool Editor::qt_property( int id, int f, QVariant* v)
235 {
236     return QWidget::qt_property( id, f, v);
237 }
238
239 bool Editor::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
240 #endif // QT_NO_PROPERTIES