00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "constants.h"
00011 #include "..\editor.h"
00012 #if !defined(Q_MOC_OUTPUT_REVISION)
00013 #error "The header file 'editor.h' doesn't include <QObject>."
00014 #elif Q_MOC_OUTPUT_REVISION != 62
00015 #error "This file was generated using the moc from 4.6.3. It"
00016 #error "cannot be used with the include files from this version of Qt."
00017 #error "(The moc has changed too much.)"
00018 #endif
00019
00020 QT_BEGIN_MOC_NAMESPACE
00021 static const uint qt_meta_data_Editor[] = {
00022
00023
00024 4,
00025 0,
00026 0, 0,
00027 60, 14,
00028 0, 0,
00029 0, 0,
00030 0, 0,
00031 0,
00032 15,
00033
00034
00035 17, 13, 8, 7, 0x05,
00036 38, 13, 8, 7, 0x05,
00037 59, 13, 8, 7, 0x05,
00038 77, 13, 8, 7, 0x05,
00039 94, 13, 8, 7, 0x05,
00040 122, 112, 8, 7, 0x05,
00041 143, 112, 8, 7, 0x05,
00042 164, 112, 8, 7, 0x05,
00043 185, 112, 8, 7, 0x05,
00044 222, 214, 7, 7, 0x05,
00045 238, 7, 7, 7, 0x05,
00046 267, 255, 7, 7, 0x05,
00047 290, 13, 8, 7, 0x05,
00048 306, 13, 8, 7, 0x05,
00049 330, 323, 7, 7, 0x05,
00050
00051
00052 349, 7, 7, 7, 0x0a,
00053 383, 370, 7, 7, 0x0a,
00054 410, 7, 7, 7, 0x0a,
00055 417, 7, 7, 7, 0x0a,
00056 429, 424, 7, 7, 0x0a,
00057 448, 7, 7, 7, 0x0a,
00058 457, 7, 7, 7, 0x0a,
00059 467, 7, 7, 7, 0x0a,
00060 479, 7, 7, 7, 0x0a,
00061 491, 7, 7, 7, 0x0a,
00062 502, 7, 7, 7, 0x0a,
00063 514, 7, 7, 7, 0x0a,
00064 530, 7, 7, 7, 0x0a,
00065 550, 538, 7, 7, 0x0a,
00066 564, 7, 7, 7, 0x0a,
00067 579, 7, 7, 7, 0x0a,
00068 603, 597, 7, 7, 0x0a,
00069 624, 621, 7, 7, 0x0a,
00070 660, 621, 7, 7, 0x0a,
00071 697, 7, 7, 7, 0x0a,
00072 720, 7, 7, 7, 0x0a,
00073 748, 7, 7, 7, 0x0a,
00074 769, 7, 7, 7, 0x0a,
00075 785, 7, 7, 7, 0x0a,
00076 810, 804, 7, 7, 0x0a,
00077 826, 7, 7, 7, 0x2a,
00078 839, 7, 7, 7, 0x0a,
00079 854, 7, 7, 7, 0x0a,
00080 878, 13, 7, 7, 0x0a,
00081 903, 13, 7, 7, 0x0a,
00082 928, 424, 7, 7, 0x0a,
00083 947, 424, 7, 7, 0x0a,
00084 973, 967, 7, 7, 0x08,
00085 988, 7, 7, 7, 0x08,
00086 1007, 7, 7, 7, 0x08,
00087 1019, 7, 7, 7, 0x08,
00088 1033, 7, 7, 7, 0x08,
00089 1058, 7, 7, 7, 0x08,
00090 1084, 7, 7, 7, 0x08,
00091 1102, 7, 7, 7, 0x08,
00092 1125, 7, 7, 7, 0x08,
00093 1142, 7, 7, 7, 0x08,
00094 1155, 7, 7, 7, 0x08,
00095 1190, 1176, 7, 7, 0x08,
00096 1232, 1226, 7, 7, 0x08,
00097
00098 0
00099 };
00100
00101 static const char qt_meta_stringdata_Editor[] = {
00102 "Editor\0\0bool\0can\0canUndoChanged(bool)\0"
00103 "canRedoChanged(bool)\0canOpenFile(bool)\0"
00104 "canNewFile(bool)\0canSaveFile(bool)\0"
00105 "available\0itemsAvailable(bool)\0"
00106 "toolsAvailable(bool)\0utilsAvailable(bool)\0"
00107 "showUndoStackAvailable(bool)\0changed\0"
00108 "isChanged(bool)\0undoViewClosed()\0"
00109 "showG,showF\0showChanged(bool,bool)\0"
00110 "canZoomIn(bool)\0canZoomOut(bool)\0"
00111 "action\0actionChanged(int)\0"
00112 "showGridRectDialog()\0state,oldPos\0"
00113 "stateMoved(State*,QPointF)\0undo()\0"
00114 "redo()\0show\0showUndoView(bool)\0zoomIn()\0"
00115 "zoomOut()\0resetZoom()\0moveState()\0"
00116 "cutState()\0copyState()\0copySelection()\0"
00117 "paste()\0insertPoint\0paste(QPoint)\0"
00118 "cutSelection()\0removeSelection()\0state\0"
00119 "editState(State*)\0tr\0"
00120 "editTransition(OneStateTransition*)\0"
00121 "editTransition(TwoStatesTransition*)\0"
00122 "editStateStyleParams()\0"
00123 "editTransitionStyleParams()\0"
00124 "switchAntialiasing()\0generateGraph()\0"
00125 "createLaTeXTable()\0bound\0expandGrid(int)\0"
00126 "expandGrid()\0runAlgorithm()\0"
00127 "simulateAutomatonWork()\0"
00128 "canUndoChangedSlot(bool)\0"
00129 "canRedoChangedSlot(bool)\0slotShowGrid(bool)\0"
00130 "slotShowFrame(bool)\0clean\0setClean(bool)\0"
00131 "removeTransition()\0editState()\0"
00132 "removeState()\0editOneStateTransition()\0"
00133 "editTwoStatesTransition()\0editStateParams()\0"
00134 "editTransitionParams()\0editNextLabels()\0"
00135 "pasteOnPos()\0simulationFinished()\0"
00136 "states,marked\0setStatesMarked(QList<State*>,bool)\0"
00137 "rects\0sceneChanged(QList<QRectF>)\0"
00138 };
00139
00140 const QMetaObject Editor::staticMetaObject = {
00141 { &QGraphicsView::staticMetaObject, qt_meta_stringdata_Editor,
00142 qt_meta_data_Editor, 0 }
00143 };
00144
00145 #ifdef Q_NO_DATA_RELOCATION
00146 const QMetaObject &Editor::getStaticMetaObject() { return staticMetaObject; }
00147 #endif //Q_NO_DATA_RELOCATION
00148
00149 const QMetaObject *Editor::metaObject() const
00150 {
00151 return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
00152 }
00153
00154 void *Editor::qt_metacast(const char *_clname)
00155 {
00156 if (!_clname) return 0;
00157 if (!strcmp(_clname, qt_meta_stringdata_Editor))
00158 return static_cast<void*>(const_cast< Editor*>(this));
00159 return QGraphicsView::qt_metacast(_clname);
00160 }
00161
00162 int Editor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00163 {
00164 _id = QGraphicsView::qt_metacall(_c, _id, _a);
00165 if (_id < 0)
00166 return _id;
00167 if (_c == QMetaObject::InvokeMetaMethod) {
00168 switch (_id) {
00169 case 0: { bool _r = canUndoChanged((*reinterpret_cast< bool(*)>(_a[1])));
00170 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00171 case 1: { bool _r = canRedoChanged((*reinterpret_cast< bool(*)>(_a[1])));
00172 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00173 case 2: { bool _r = canOpenFile((*reinterpret_cast< bool(*)>(_a[1])));
00174 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00175 case 3: { bool _r = canNewFile((*reinterpret_cast< bool(*)>(_a[1])));
00176 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00177 case 4: { bool _r = canSaveFile((*reinterpret_cast< bool(*)>(_a[1])));
00178 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00179 case 5: { bool _r = itemsAvailable((*reinterpret_cast< bool(*)>(_a[1])));
00180 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00181 case 6: { bool _r = toolsAvailable((*reinterpret_cast< bool(*)>(_a[1])));
00182 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00183 case 7: { bool _r = utilsAvailable((*reinterpret_cast< bool(*)>(_a[1])));
00184 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00185 case 8: { bool _r = showUndoStackAvailable((*reinterpret_cast< bool(*)>(_a[1])));
00186 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00187 case 9: isChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
00188 case 10: undoViewClosed(); break;
00189 case 11: showChanged((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
00190 case 12: { bool _r = canZoomIn((*reinterpret_cast< bool(*)>(_a[1])));
00191 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00192 case 13: { bool _r = canZoomOut((*reinterpret_cast< bool(*)>(_a[1])));
00193 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00194 case 14: actionChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
00195 case 15: showGridRectDialog(); break;
00196 case 16: stateMoved((*reinterpret_cast< State*(*)>(_a[1])),(*reinterpret_cast< const QPointF(*)>(_a[2]))); break;
00197 case 17: undo(); break;
00198 case 18: redo(); break;
00199 case 19: showUndoView((*reinterpret_cast< bool(*)>(_a[1]))); break;
00200 case 20: zoomIn(); break;
00201 case 21: zoomOut(); break;
00202 case 22: resetZoom(); break;
00203 case 23: moveState(); break;
00204 case 24: cutState(); break;
00205 case 25: copyState(); break;
00206 case 26: copySelection(); break;
00207 case 27: paste(); break;
00208 case 28: paste((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
00209 case 29: cutSelection(); break;
00210 case 30: removeSelection(); break;
00211 case 31: editState((*reinterpret_cast< State*(*)>(_a[1]))); break;
00212 case 32: editTransition((*reinterpret_cast< OneStateTransition*(*)>(_a[1]))); break;
00213 case 33: editTransition((*reinterpret_cast< TwoStatesTransition*(*)>(_a[1]))); break;
00214 case 34: editStateStyleParams(); break;
00215 case 35: editTransitionStyleParams(); break;
00216 case 36: switchAntialiasing(); break;
00217 case 37: generateGraph(); break;
00218 case 38: createLaTeXTable(); break;
00219 case 39: expandGrid((*reinterpret_cast< int(*)>(_a[1]))); break;
00220 case 40: expandGrid(); break;
00221 case 41: runAlgorithm(); break;
00222 case 42: simulateAutomatonWork(); break;
00223 case 43: canUndoChangedSlot((*reinterpret_cast< bool(*)>(_a[1]))); break;
00224 case 44: canRedoChangedSlot((*reinterpret_cast< bool(*)>(_a[1]))); break;
00225 case 45: slotShowGrid((*reinterpret_cast< bool(*)>(_a[1]))); break;
00226 case 46: slotShowFrame((*reinterpret_cast< bool(*)>(_a[1]))); break;
00227 case 47: setClean((*reinterpret_cast< bool(*)>(_a[1]))); break;
00228 case 48: removeTransition(); break;
00229 case 49: editState(); break;
00230 case 50: removeState(); break;
00231 case 51: editOneStateTransition(); break;
00232 case 52: editTwoStatesTransition(); break;
00233 case 53: editStateParams(); break;
00234 case 54: editTransitionParams(); break;
00235 case 55: editNextLabels(); break;
00236 case 56: pasteOnPos(); break;
00237 case 57: simulationFinished(); break;
00238 case 58: setStatesMarked((*reinterpret_cast< QList<State*>(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
00239 case 59: sceneChanged((*reinterpret_cast< const QList<QRectF>(*)>(_a[1]))); break;
00240 default: ;
00241 }
00242 _id -= 60;
00243 }
00244 return _id;
00245 }
00246
00247
00248 bool Editor::canUndoChanged(bool _t1)
00249 {
00250 bool _t0;
00251 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00252 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00253 return _t0;
00254 }
00255
00256
00257 bool Editor::canRedoChanged(bool _t1)
00258 {
00259 bool _t0;
00260 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00261 QMetaObject::activate(this, &staticMetaObject, 1, _a);
00262 return _t0;
00263 }
00264
00265
00266 bool Editor::canOpenFile(bool _t1)
00267 {
00268 bool _t0;
00269 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00270 QMetaObject::activate(this, &staticMetaObject, 2, _a);
00271 return _t0;
00272 }
00273
00274
00275 bool Editor::canNewFile(bool _t1)
00276 {
00277 bool _t0;
00278 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00279 QMetaObject::activate(this, &staticMetaObject, 3, _a);
00280 return _t0;
00281 }
00282
00283
00284 bool Editor::canSaveFile(bool _t1)
00285 {
00286 bool _t0;
00287 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00288 QMetaObject::activate(this, &staticMetaObject, 4, _a);
00289 return _t0;
00290 }
00291
00292
00293 bool Editor::itemsAvailable(bool _t1)
00294 {
00295 bool _t0;
00296 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00297 QMetaObject::activate(this, &staticMetaObject, 5, _a);
00298 return _t0;
00299 }
00300
00301
00302 bool Editor::toolsAvailable(bool _t1)
00303 {
00304 bool _t0;
00305 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00306 QMetaObject::activate(this, &staticMetaObject, 6, _a);
00307 return _t0;
00308 }
00309
00310
00311 bool Editor::utilsAvailable(bool _t1)
00312 {
00313 bool _t0;
00314 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00315 QMetaObject::activate(this, &staticMetaObject, 7, _a);
00316 return _t0;
00317 }
00318
00319
00320 bool Editor::showUndoStackAvailable(bool _t1)
00321 {
00322 bool _t0;
00323 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00324 QMetaObject::activate(this, &staticMetaObject, 8, _a);
00325 return _t0;
00326 }
00327
00328
00329 void Editor::isChanged(bool _t1)
00330 {
00331 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00332 QMetaObject::activate(this, &staticMetaObject, 9, _a);
00333 }
00334
00335
00336 void Editor::undoViewClosed()
00337 {
00338 QMetaObject::activate(this, &staticMetaObject, 10, 0);
00339 }
00340
00341
00342 void Editor::showChanged(bool _t1, bool _t2)
00343 {
00344 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
00345 QMetaObject::activate(this, &staticMetaObject, 11, _a);
00346 }
00347
00348
00349 bool Editor::canZoomIn(bool _t1)
00350 {
00351 bool _t0;
00352 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00353 QMetaObject::activate(this, &staticMetaObject, 12, _a);
00354 return _t0;
00355 }
00356
00357
00358 bool Editor::canZoomOut(bool _t1)
00359 {
00360 bool _t0;
00361 void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(&_t0)), const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00362 QMetaObject::activate(this, &staticMetaObject, 13, _a);
00363 return _t0;
00364 }
00365
00366
00367 void Editor::actionChanged(int _t1)
00368 {
00369 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00370 QMetaObject::activate(this, &staticMetaObject, 14, _a);
00371 }
00372 static const uint qt_meta_data_UndoView[] = {
00373
00374
00375 4,
00376 0,
00377 0, 0,
00378 1, 14,
00379 0, 0,
00380 0, 0,
00381 0, 0,
00382 0,
00383 1,
00384
00385
00386 10, 9, 9, 9, 0x05,
00387
00388 0
00389 };
00390
00391 static const char qt_meta_stringdata_UndoView[] = {
00392 "UndoView\0\0closed()\0"
00393 };
00394
00395 const QMetaObject UndoView::staticMetaObject = {
00396 { &QUndoView::staticMetaObject, qt_meta_stringdata_UndoView,
00397 qt_meta_data_UndoView, 0 }
00398 };
00399
00400 #ifdef Q_NO_DATA_RELOCATION
00401 const QMetaObject &UndoView::getStaticMetaObject() { return staticMetaObject; }
00402 #endif //Q_NO_DATA_RELOCATION
00403
00404 const QMetaObject *UndoView::metaObject() const
00405 {
00406 return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
00407 }
00408
00409 void *UndoView::qt_metacast(const char *_clname)
00410 {
00411 if (!_clname) return 0;
00412 if (!strcmp(_clname, qt_meta_stringdata_UndoView))
00413 return static_cast<void*>(const_cast< UndoView*>(this));
00414 return QUndoView::qt_metacast(_clname);
00415 }
00416
00417 int UndoView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00418 {
00419 _id = QUndoView::qt_metacall(_c, _id, _a);
00420 if (_id < 0)
00421 return _id;
00422 if (_c == QMetaObject::InvokeMetaMethod) {
00423 switch (_id) {
00424 case 0: closed(); break;
00425 default: ;
00426 }
00427 _id -= 1;
00428 }
00429 return _id;
00430 }
00431
00432
00433 void UndoView::closed()
00434 {
00435 QMetaObject::activate(this, &staticMetaObject, 0, 0);
00436 }
00437 QT_END_MOC_NAMESPACE