Line data Source code
1 : /****************************************************************************
2 : ** Meta object code from reading C++ file 'undomanager.hpp'
3 : **
4 : ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.1)
5 : **
6 : ** WARNING! All changes made in this file will be lost!
7 : *****************************************************************************/
8 :
9 : #include "../../../../../src/tools/qt-gui/src/undomanager.hpp"
10 : #include <QtCore/qbytearray.h>
11 : #include <QtCore/qmetatype.h>
12 : #if !defined(Q_MOC_OUTPUT_REVISION)
13 : #error "The header file 'undomanager.hpp' doesn't include <QObject>."
14 : #elif Q_MOC_OUTPUT_REVISION != 67
15 : #error "This file was generated using the moc from 5.7.1. It"
16 : #error "cannot be used with the include files from this version of Qt."
17 : #error "(The moc has changed too much.)"
18 : #endif
19 :
20 : QT_BEGIN_MOC_NAMESPACE
21 : struct qt_meta_stringdata_UndoManager_t {
22 : QByteArrayData data[36];
23 : char stringdata0[439];
24 : };
25 : #define QT_MOC_LITERAL(idx, ofs, len) \
26 : Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
27 : qptrdiff(offsetof(qt_meta_stringdata_UndoManager_t, stringdata0) + ofs \
28 : - idx * sizeof(QByteArrayData)) \
29 : )
30 : static const qt_meta_stringdata_UndoManager_t qt_meta_stringdata_UndoManager = {
31 : {
32 : QT_MOC_LITERAL(0, 0, 11), // "UndoManager"
33 : QT_MOC_LITERAL(1, 12, 14), // "canUndoChanged"
34 : QT_MOC_LITERAL(2, 27, 0), // ""
35 : QT_MOC_LITERAL(3, 28, 14), // "canRedoChanged"
36 : QT_MOC_LITERAL(4, 43, 15), // "redoTextChanged"
37 : QT_MOC_LITERAL(5, 59, 15), // "undoTextChanged"
38 : QT_MOC_LITERAL(6, 75, 20), // "clipboardTypeChanged"
39 : QT_MOC_LITERAL(7, 96, 15), // "canPasteChanged"
40 : QT_MOC_LITERAL(8, 112, 4), // "undo"
41 : QT_MOC_LITERAL(9, 117, 4), // "redo"
42 : QT_MOC_LITERAL(10, 122, 14), // "putToClipboard"
43 : QT_MOC_LITERAL(11, 137, 4), // "type"
44 : QT_MOC_LITERAL(12, 142, 14), // "TreeViewModel*"
45 : QT_MOC_LITERAL(13, 157, 5), // "model"
46 : QT_MOC_LITERAL(14, 163, 3), // "idx"
47 : QT_MOC_LITERAL(15, 167, 20), // "createEditKeyCommand"
48 : QT_MOC_LITERAL(16, 188, 14), // "DataContainer*"
49 : QT_MOC_LITERAL(17, 203, 4), // "data"
50 : QT_MOC_LITERAL(18, 208, 22), // "createDeleteKeyCommand"
51 : QT_MOC_LITERAL(19, 231, 19), // "createNewKeyCommand"
52 : QT_MOC_LITERAL(20, 251, 7), // "isBelow"
53 : QT_MOC_LITERAL(21, 259, 20), // "createCopyKeyCommand"
54 : QT_MOC_LITERAL(22, 280, 19), // "createCutKeyCommand"
55 : QT_MOC_LITERAL(23, 300, 32), // "createImportConfigurationCommand"
56 : QT_MOC_LITERAL(24, 333, 8), // "setClean"
57 : QT_MOC_LITERAL(25, 342, 7), // "isClean"
58 : QT_MOC_LITERAL(26, 350, 8), // "canPaste"
59 : QT_MOC_LITERAL(27, 359, 5), // "index"
60 : QT_MOC_LITERAL(28, 365, 10), // "cleanIndex"
61 : QT_MOC_LITERAL(29, 376, 5), // "count"
62 : QT_MOC_LITERAL(30, 382, 8), // "setIndex"
63 : QT_MOC_LITERAL(31, 391, 7), // "canUndo"
64 : QT_MOC_LITERAL(32, 399, 7), // "canRedo"
65 : QT_MOC_LITERAL(33, 407, 8), // "redoText"
66 : QT_MOC_LITERAL(34, 416, 8), // "undoText"
67 : QT_MOC_LITERAL(35, 425, 13) // "clipboardType"
68 :
69 : },
70 : "UndoManager\0canUndoChanged\0\0canRedoChanged\0"
71 : "redoTextChanged\0undoTextChanged\0"
72 : "clipboardTypeChanged\0canPasteChanged\0"
73 : "undo\0redo\0putToClipboard\0type\0"
74 : "TreeViewModel*\0model\0idx\0createEditKeyCommand\0"
75 : "DataContainer*\0data\0createDeleteKeyCommand\0"
76 : "createNewKeyCommand\0isBelow\0"
77 : "createCopyKeyCommand\0createCutKeyCommand\0"
78 : "createImportConfigurationCommand\0"
79 : "setClean\0isClean\0canPaste\0index\0"
80 : "cleanIndex\0count\0setIndex\0canUndo\0"
81 : "canRedo\0redoText\0undoText\0clipboardType"
82 : };
83 : #undef QT_MOC_LITERAL
84 :
85 : static const uint qt_meta_data_UndoManager[] = {
86 :
87 : // content:
88 : 7, // revision
89 : 0, // classname
90 : 0, 0, // classinfo
91 : 22, 14, // methods
92 : 6, 188, // properties
93 : 0, 0, // enums/sets
94 : 0, 0, // constructors
95 : 0, // flags
96 : 6, // signalCount
97 :
98 : // signals: name, argc, parameters, tag, flags
99 : 1, 0, 124, 2, 0x06 /* Public */,
100 : 3, 0, 125, 2, 0x06 /* Public */,
101 : 4, 0, 126, 2, 0x06 /* Public */,
102 : 5, 0, 127, 2, 0x06 /* Public */,
103 : 6, 0, 128, 2, 0x06 /* Public */,
104 : 7, 0, 129, 2, 0x06 /* Public */,
105 :
106 : // slots: name, argc, parameters, tag, flags
107 : 8, 0, 130, 2, 0x0a /* Public */,
108 : 9, 0, 131, 2, 0x0a /* Public */,
109 :
110 : // methods: name, argc, parameters, tag, flags
111 : 10, 3, 132, 2, 0x02 /* Public */,
112 : 15, 3, 139, 2, 0x02 /* Public */,
113 : 18, 3, 146, 2, 0x02 /* Public */,
114 : 19, 4, 153, 2, 0x02 /* Public */,
115 : 21, 2, 162, 2, 0x02 /* Public */,
116 : 22, 2, 167, 2, 0x02 /* Public */,
117 : 23, 3, 172, 2, 0x02 /* Public */,
118 : 24, 0, 179, 2, 0x02 /* Public */,
119 : 25, 0, 180, 2, 0x02 /* Public */,
120 : 26, 0, 181, 2, 0x02 /* Public */,
121 : 27, 0, 182, 2, 0x02 /* Public */,
122 : 28, 0, 183, 2, 0x02 /* Public */,
123 : 29, 0, 184, 2, 0x02 /* Public */,
124 : 30, 1, 185, 2, 0x02 /* Public */,
125 :
126 : // signals: parameters
127 : QMetaType::Void,
128 : QMetaType::Void,
129 : QMetaType::Void,
130 : QMetaType::Void,
131 : QMetaType::Void,
132 : QMetaType::Void,
133 :
134 : // slots: parameters
135 : QMetaType::Void,
136 : QMetaType::Void,
137 :
138 : // methods: parameters
139 : QMetaType::Void, QMetaType::QString, 0x80000000 | 12, QMetaType::Int, 11, 13, 14,
140 : QMetaType::Void, 0x80000000 | 12, QMetaType::Int, 0x80000000 | 16, 13, 14, 17,
141 : QMetaType::Void, QMetaType::QString, 0x80000000 | 12, QMetaType::Int, 11, 13, 14,
142 : QMetaType::Void, 0x80000000 | 12, QMetaType::Int, 0x80000000 | 16, QMetaType::Bool, 13, 14, 17, 20,
143 : QMetaType::Void, 0x80000000 | 12, QMetaType::Int, 13, 14,
144 : QMetaType::Void, 0x80000000 | 12, QMetaType::Int, 13, 14,
145 : QMetaType::Void, 0x80000000 | 12, QMetaType::Int, 0x80000000 | 16, 13, 14, 17,
146 : QMetaType::Void,
147 : QMetaType::Bool,
148 : QMetaType::Bool,
149 : QMetaType::Int,
150 : QMetaType::Int,
151 : QMetaType::Int,
152 : QMetaType::Void, QMetaType::Int, 14,
153 :
154 : // properties: name, type, flags
155 : 31, QMetaType::Bool, 0x00495001,
156 : 32, QMetaType::Bool, 0x00495001,
157 : 26, QMetaType::Bool, 0x00495001,
158 : 33, QMetaType::QString, 0x00495001,
159 : 34, QMetaType::QString, 0x00495001,
160 : 35, QMetaType::QString, 0x00495001,
161 :
162 : // properties: notify_signal_id
163 : 0,
164 : 1,
165 : 5,
166 : 2,
167 : 3,
168 : 4,
169 :
170 : 0 // eod
171 : };
172 :
173 0 : void UndoManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
174 : {
175 0 : if (_c == QMetaObject::InvokeMetaMethod) {
176 0 : UndoManager *_t = static_cast<UndoManager *>(_o);
177 : Q_UNUSED(_t)
178 0 : switch (_id) {
179 0 : case 0: _t->canUndoChanged(); break;
180 0 : case 1: _t->canRedoChanged(); break;
181 0 : case 2: _t->redoTextChanged(); break;
182 0 : case 3: _t->undoTextChanged(); break;
183 0 : case 4: _t->clipboardTypeChanged(); break;
184 0 : case 5: _t->canPasteChanged(); break;
185 0 : case 6: _t->undo(); break;
186 0 : case 7: _t->redo(); break;
187 0 : case 8: _t->putToClipboard((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< TreeViewModel*(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
188 0 : case 9: _t->createEditKeyCommand((*reinterpret_cast< TreeViewModel*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< DataContainer*(*)>(_a[3]))); break;
189 0 : case 10: _t->createDeleteKeyCommand((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< TreeViewModel*(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
190 0 : case 11: _t->createNewKeyCommand((*reinterpret_cast< TreeViewModel*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< DataContainer*(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4]))); break;
191 0 : case 12: _t->createCopyKeyCommand((*reinterpret_cast< TreeViewModel*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
192 0 : case 13: _t->createCutKeyCommand((*reinterpret_cast< TreeViewModel*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
193 0 : case 14: _t->createImportConfigurationCommand((*reinterpret_cast< TreeViewModel*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< DataContainer*(*)>(_a[3]))); break;
194 0 : case 15: _t->setClean(); break;
195 0 : case 16: { bool _r = _t->isClean();
196 0 : if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
197 0 : case 17: { bool _r = _t->canPaste();
198 0 : if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
199 0 : case 18: { int _r = _t->index();
200 0 : if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break;
201 0 : case 19: { int _r = _t->cleanIndex();
202 0 : if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break;
203 0 : case 20: { int _r = _t->count();
204 0 : if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break;
205 0 : case 21: _t->setIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
206 : default: ;
207 : }
208 0 : } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
209 0 : switch (_id) {
210 0 : default: *reinterpret_cast<int*>(_a[0]) = -1; break;
211 : case 8:
212 0 : switch (*reinterpret_cast<int*>(_a[1])) {
213 0 : default: *reinterpret_cast<int*>(_a[0]) = -1; break;
214 : case 1:
215 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TreeViewModel* >(); break;
216 : }
217 : break;
218 : case 9:
219 0 : switch (*reinterpret_cast<int*>(_a[1])) {
220 0 : default: *reinterpret_cast<int*>(_a[0]) = -1; break;
221 : case 2:
222 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DataContainer* >(); break;
223 : case 0:
224 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TreeViewModel* >(); break;
225 : }
226 : break;
227 : case 10:
228 0 : switch (*reinterpret_cast<int*>(_a[1])) {
229 0 : default: *reinterpret_cast<int*>(_a[0]) = -1; break;
230 : case 1:
231 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TreeViewModel* >(); break;
232 : }
233 : break;
234 : case 11:
235 0 : switch (*reinterpret_cast<int*>(_a[1])) {
236 0 : default: *reinterpret_cast<int*>(_a[0]) = -1; break;
237 : case 2:
238 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DataContainer* >(); break;
239 : case 0:
240 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TreeViewModel* >(); break;
241 : }
242 : break;
243 : case 12:
244 0 : switch (*reinterpret_cast<int*>(_a[1])) {
245 0 : default: *reinterpret_cast<int*>(_a[0]) = -1; break;
246 : case 0:
247 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TreeViewModel* >(); break;
248 : }
249 : break;
250 : case 13:
251 0 : switch (*reinterpret_cast<int*>(_a[1])) {
252 0 : default: *reinterpret_cast<int*>(_a[0]) = -1; break;
253 : case 0:
254 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TreeViewModel* >(); break;
255 : }
256 : break;
257 : case 14:
258 0 : switch (*reinterpret_cast<int*>(_a[1])) {
259 0 : default: *reinterpret_cast<int*>(_a[0]) = -1; break;
260 : case 2:
261 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< DataContainer* >(); break;
262 : case 0:
263 0 : *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< TreeViewModel* >(); break;
264 : }
265 : break;
266 : }
267 0 : } else if (_c == QMetaObject::IndexOfMethod) {
268 0 : int *result = reinterpret_cast<int *>(_a[0]);
269 0 : void **func = reinterpret_cast<void **>(_a[1]);
270 : {
271 : typedef void (UndoManager::*_t)();
272 0 : if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&UndoManager::canUndoChanged)) {
273 0 : *result = 0;
274 0 : return;
275 : }
276 : }
277 : {
278 : typedef void (UndoManager::*_t)();
279 0 : if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&UndoManager::canRedoChanged)) {
280 0 : *result = 1;
281 0 : return;
282 : }
283 : }
284 : {
285 : typedef void (UndoManager::*_t)();
286 0 : if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&UndoManager::redoTextChanged)) {
287 0 : *result = 2;
288 0 : return;
289 : }
290 : }
291 : {
292 : typedef void (UndoManager::*_t)();
293 0 : if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&UndoManager::undoTextChanged)) {
294 0 : *result = 3;
295 0 : return;
296 : }
297 : }
298 : {
299 : typedef void (UndoManager::*_t)();
300 0 : if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&UndoManager::clipboardTypeChanged)) {
301 0 : *result = 4;
302 0 : return;
303 : }
304 : }
305 : {
306 : typedef void (UndoManager::*_t)();
307 0 : if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&UndoManager::canPasteChanged)) {
308 0 : *result = 5;
309 0 : return;
310 : }
311 : }
312 : }
313 : #ifndef QT_NO_PROPERTIES
314 0 : else if (_c == QMetaObject::ReadProperty) {
315 0 : UndoManager *_t = static_cast<UndoManager *>(_o);
316 : Q_UNUSED(_t)
317 0 : void *_v = _a[0];
318 0 : switch (_id) {
319 0 : case 0: *reinterpret_cast< bool*>(_v) = _t->canUndo(); break;
320 0 : case 1: *reinterpret_cast< bool*>(_v) = _t->canRedo(); break;
321 0 : case 2: *reinterpret_cast< bool*>(_v) = _t->canPaste(); break;
322 0 : case 3: *reinterpret_cast< QString*>(_v) = _t->redoText(); break;
323 0 : case 4: *reinterpret_cast< QString*>(_v) = _t->undoText(); break;
324 0 : case 5: *reinterpret_cast< QString*>(_v) = _t->clipboardType(); break;
325 : default: break;
326 : }
327 : } else if (_c == QMetaObject::WriteProperty) {
328 : } else if (_c == QMetaObject::ResetProperty) {
329 : }
330 : #endif // QT_NO_PROPERTIES
331 : }
332 :
333 : const QMetaObject UndoManager::staticMetaObject = {
334 : { &QObject::staticMetaObject, qt_meta_stringdata_UndoManager.data,
335 : qt_meta_data_UndoManager, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
336 : };
337 :
338 :
339 0 : const QMetaObject *UndoManager::metaObject() const
340 : {
341 0 : return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
342 : }
343 :
344 0 : void *UndoManager::qt_metacast(const char *_clname)
345 : {
346 0 : if (!_clname) return Q_NULLPTR;
347 0 : if (!strcmp(_clname, qt_meta_stringdata_UndoManager.stringdata0))
348 : return static_cast<void*>(const_cast< UndoManager*>(this));
349 0 : return QObject::qt_metacast(_clname);
350 : }
351 :
352 0 : int UndoManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
353 : {
354 0 : _id = QObject::qt_metacall(_c, _id, _a);
355 0 : if (_id < 0)
356 : return _id;
357 0 : if (_c == QMetaObject::InvokeMetaMethod) {
358 0 : if (_id < 22)
359 0 : qt_static_metacall(this, _c, _id, _a);
360 0 : _id -= 22;
361 0 : } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
362 0 : if (_id < 22)
363 0 : qt_static_metacall(this, _c, _id, _a);
364 0 : _id -= 22;
365 : }
366 : #ifndef QT_NO_PROPERTIES
367 0 : else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
368 0 : || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
369 0 : qt_static_metacall(this, _c, _id, _a);
370 0 : _id -= 6;
371 0 : } else if (_c == QMetaObject::QueryPropertyDesignable) {
372 0 : _id -= 6;
373 0 : } else if (_c == QMetaObject::QueryPropertyScriptable) {
374 0 : _id -= 6;
375 0 : } else if (_c == QMetaObject::QueryPropertyStored) {
376 0 : _id -= 6;
377 0 : } else if (_c == QMetaObject::QueryPropertyEditable) {
378 0 : _id -= 6;
379 0 : } else if (_c == QMetaObject::QueryPropertyUser) {
380 0 : _id -= 6;
381 : }
382 : #endif // QT_NO_PROPERTIES
383 : return _id;
384 : }
385 :
386 : // SIGNAL 0
387 0 : void UndoManager::canUndoChanged()
388 : {
389 0 : QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
390 0 : }
391 :
392 : // SIGNAL 1
393 0 : void UndoManager::canRedoChanged()
394 : {
395 0 : QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
396 0 : }
397 :
398 : // SIGNAL 2
399 0 : void UndoManager::redoTextChanged()
400 : {
401 0 : QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
402 0 : }
403 :
404 : // SIGNAL 3
405 0 : void UndoManager::undoTextChanged()
406 : {
407 0 : QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
408 0 : }
409 :
410 : // SIGNAL 4
411 0 : void UndoManager::clipboardTypeChanged()
412 : {
413 0 : QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
414 0 : }
415 :
416 : // SIGNAL 5
417 0 : void UndoManager::canPasteChanged()
418 : {
419 0 : QMetaObject::activate(this, &staticMetaObject, 5, Q_NULLPTR);
420 0 : }
421 : QT_END_MOC_NAMESPACE
|