edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
moc_textdocument.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'textdocument.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.6.3)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
10#include <QtCore/qmetatype.h>
11
12#if __has_include(<QtCore/qtmochelpers.h>)
13#include <QtCore/qtmochelpers.h>
14#else
15QT_BEGIN_MOC_NAMESPACE
16#endif
17
18
19#include <memory>
20
21#if !defined(Q_MOC_OUTPUT_REVISION)
22#error "The header file 'textdocument.h' doesn't include <QObject>."
23#elif Q_MOC_OUTPUT_REVISION != 68
24#error "This file was generated using the moc from 6.6.3. It"
25#error "cannot be used with the include files from this version of Qt."
26#error "(The moc has changed too much.)"
27#endif
28
29#ifndef Q_CONSTINIT
30#define Q_CONSTINIT
31#endif
32
33QT_WARNING_PUSH
35QT_WARNING_DISABLE_GCC("-Wuseless-cast")
36namespace {
37
38#ifdef QT_MOC_HAS_STRINGDATA
39struct qt_meta_stringdata_CLASSedbeeSCOPETextDocumentENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSedbeeSCOPETextDocumentENDCLASS = QtMocHelpers::stringData(
41 "edbee::TextDocument",
42 "textAboutToBeChanged",
43 "",
44 "edbee::TextBufferChange",
45 "change",
46 "textChanged",
47 "oldText",
48 "persistedChanged",
49 "persisted",
50 "languageGrammarChanged",
51 "lastScopedOffsetChanged",
52 "previousOffset",
53 "lastScopedOffset"
54);
55#else // !QT_MOC_HAS_STRING_DATA
72#define QT_MOC_LITERAL(ofs, len) \
73 uint(sizeof(qt_meta_stringdata_CLASSedbeeSCOPETextDocumentENDCLASS_t::offsetsAndSizes) + ofs), len
74Q_CONSTINIT static const qt_meta_stringdata_CLASSedbeeSCOPETextDocumentENDCLASS_t qt_meta_stringdata_CLASSedbeeSCOPETextDocumentENDCLASS = {
75 {
76 QT_MOC_LITERAL(0, 19), // "edbee::TextDocument"
77 QT_MOC_LITERAL(20, 20), // "textAboutToBeChanged"
78 QT_MOC_LITERAL(41, 0), // ""
79 QT_MOC_LITERAL(42, 23), // "edbee::TextBufferChange"
80 QT_MOC_LITERAL(66, 6), // "change"
81 QT_MOC_LITERAL(73, 11), // "textChanged"
82 QT_MOC_LITERAL(85, 7), // "oldText"
83 QT_MOC_LITERAL(93, 16), // "persistedChanged"
84 QT_MOC_LITERAL(110, 9), // "persisted"
85 QT_MOC_LITERAL(120, 22), // "languageGrammarChanged"
86 QT_MOC_LITERAL(143, 23), // "lastScopedOffsetChanged"
87 QT_MOC_LITERAL(167, 14), // "previousOffset"
88 QT_MOC_LITERAL(182, 16) // "lastScopedOffset"
89 },
90 "edbee::TextDocument",
91 "textAboutToBeChanged",
92 "",
93 "edbee::TextBufferChange",
94 "change",
95 "textChanged",
96 "oldText",
97 "persistedChanged",
98 "persisted",
99 "languageGrammarChanged",
100 "lastScopedOffsetChanged",
101 "previousOffset",
102 "lastScopedOffset"
103};
104#undef QT_MOC_LITERAL
105#endif // !QT_MOC_HAS_STRING_DATA
106} // unnamed namespace
107
108Q_CONSTINIT static const uint qt_meta_data_CLASSedbeeSCOPETextDocumentENDCLASS[] = {
109
110 // content:
111 12, // revision
112 0, // classname
113 0, 0, // classinfo
114 6, 14, // methods
115 0, 0, // properties
116 0, 0, // enums/sets
117 0, 0, // constructors
118 0, // flags
119 6, // signalCount
120
121 // signals: name, argc, parameters, tag, flags, initial metatype offsets
122 1, 1, 50, 2, 0x06, 1 /* Public */,
123 5, 2, 53, 2, 0x06, 3 /* Public */,
124 5, 1, 58, 2, 0x26, 6 /* Public | MethodCloned */,
125 7, 1, 61, 2, 0x06, 8 /* Public */,
126 9, 0, 64, 2, 0x06, 10 /* Public */,
127 10, 2, 65, 2, 0x06, 11 /* Public */,
128
129 // signals: parameters
130 QMetaType::Void, 0x80000000 | 3, 4,
131 QMetaType::Void, 0x80000000 | 3, QMetaType::QString, 4, 6,
132 QMetaType::Void, 0x80000000 | 3, 4,
133 QMetaType::Void, QMetaType::Bool, 8,
134 QMetaType::Void,
135 QMetaType::Void, QMetaType::Int, QMetaType::Int, 11, 12,
136
137 0 // eod
138};
139
140Q_CONSTINIT const QMetaObject edbee::TextDocument::staticMetaObject = { {
141 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
142 qt_meta_stringdata_CLASSedbeeSCOPETextDocumentENDCLASS.offsetsAndSizes,
143 qt_meta_data_CLASSedbeeSCOPETextDocumentENDCLASS,
144 qt_static_metacall,
145 nullptr,
146 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSedbeeSCOPETextDocumentENDCLASS_t,
147 // Q_OBJECT / Q_GADGET
148 QtPrivate::TypeAndForceComplete<TextDocument, std::true_type>,
149 // method 'textAboutToBeChanged'
150 QtPrivate::TypeAndForceComplete<void, std::false_type>,
151 QtPrivate::TypeAndForceComplete<edbee::TextBufferChange, std::false_type>,
152 // method 'textChanged'
153 QtPrivate::TypeAndForceComplete<void, std::false_type>,
154 QtPrivate::TypeAndForceComplete<edbee::TextBufferChange, std::false_type>,
155 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
156 // method 'textChanged'
157 QtPrivate::TypeAndForceComplete<void, std::false_type>,
158 QtPrivate::TypeAndForceComplete<edbee::TextBufferChange, std::false_type>,
159 // method 'persistedChanged'
160 QtPrivate::TypeAndForceComplete<void, std::false_type>,
161 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
162 // method 'languageGrammarChanged'
163 QtPrivate::TypeAndForceComplete<void, std::false_type>,
164 // method 'lastScopedOffsetChanged'
165 QtPrivate::TypeAndForceComplete<void, std::false_type>,
166 QtPrivate::TypeAndForceComplete<int, std::false_type>,
167 QtPrivate::TypeAndForceComplete<int, std::false_type>
168 >,
169 nullptr
170} };
171
172void edbee::TextDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
173{
174 if (_c == QMetaObject::InvokeMetaMethod) {
175 auto *_t = static_cast<TextDocument *>(_o);
176 (void)_t;
177 switch (_id) {
178 case 0: _t->textAboutToBeChanged((*reinterpret_cast< std::add_pointer_t<edbee::TextBufferChange>>(_a[1]))); break;
179 case 1: _t->textChanged((*reinterpret_cast< std::add_pointer_t<edbee::TextBufferChange>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2]))); break;
180 case 2: _t->textChanged((*reinterpret_cast< std::add_pointer_t<edbee::TextBufferChange>>(_a[1]))); break;
181 case 3: _t->persistedChanged((*reinterpret_cast< std::add_pointer_t<bool>>(_a[1]))); break;
182 case 4: _t->languageGrammarChanged(); break;
183 case 5: _t->lastScopedOffsetChanged((*reinterpret_cast< std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
184 default: ;
185 }
186 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
187 switch (_id) {
188 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
189 case 0:
190 switch (*reinterpret_cast<int*>(_a[1])) {
191 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
192 case 0:
193 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< edbee::TextBufferChange >(); break;
194 }
195 break;
196 case 1:
197 switch (*reinterpret_cast<int*>(_a[1])) {
198 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
199 case 0:
200 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< edbee::TextBufferChange >(); break;
201 }
202 break;
203 case 2:
204 switch (*reinterpret_cast<int*>(_a[1])) {
205 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
206 case 0:
207 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< edbee::TextBufferChange >(); break;
208 }
209 break;
210 }
211 } else if (_c == QMetaObject::IndexOfMethod) {
212 int *result = reinterpret_cast<int *>(_a[0]);
213 {
214 using _t = void (TextDocument::*)(edbee::TextBufferChange );
215 if (_t _q_method = &TextDocument::textAboutToBeChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
216 *result = 0;
217 return;
218 }
219 }
220 {
221 using _t = void (TextDocument::*)(edbee::TextBufferChange , QString );
222 if (_t _q_method = &TextDocument::textChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
223 *result = 1;
224 return;
225 }
226 }
227 {
228 using _t = void (TextDocument::*)(bool );
229 if (_t _q_method = &TextDocument::persistedChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
230 *result = 3;
231 return;
232 }
233 }
234 {
235 using _t = void (TextDocument::*)();
236 if (_t _q_method = &TextDocument::languageGrammarChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
237 *result = 4;
238 return;
239 }
240 }
241 {
242 using _t = void (TextDocument::*)(int , int );
243 if (_t _q_method = &TextDocument::lastScopedOffsetChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
244 *result = 5;
245 return;
246 }
247 }
248 }
249}
250
251const QMetaObject *edbee::TextDocument::metaObject() const
252{
253 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
254}
255
256void *edbee::TextDocument::qt_metacast(const char *_clname)
257{
258 if (!_clname) return nullptr;
259 if (!strcmp(_clname, qt_meta_stringdata_CLASSedbeeSCOPETextDocumentENDCLASS.stringdata0))
260 return static_cast<void*>(this);
261 return QObject::qt_metacast(_clname);
262}
263
264int edbee::TextDocument::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
265{
266 _id = QObject::qt_metacall(_c, _id, _a);
267 if (_id < 0)
268 return _id;
269 if (_c == QMetaObject::InvokeMetaMethod) {
270 if (_id < 6)
271 qt_static_metacall(this, _c, _id, _a);
272 _id -= 6;
273 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
274 if (_id < 6)
275 qt_static_metacall(this, _c, _id, _a);
276 _id -= 6;
277 }
278 return _id;
279}
280
281// SIGNAL 0
283{
284 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
285 QMetaObject::activate(this, &staticMetaObject, 0, _a);
286}
287
288// SIGNAL 1
290{
291 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
292 QMetaObject::activate(this, &staticMetaObject, 1, _a);
293}
294
295// SIGNAL 3
297{
298 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
299 QMetaObject::activate(this, &staticMetaObject, 3, _a);
300}
301
302// SIGNAL 4
304{
305 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
306}
307
308// SIGNAL 5
310{
311 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
312 QMetaObject::activate(this, &staticMetaObject, 5, _a);
313}
314QT_WARNING_POP
This clas represents a text buffer change and is used to pass around between events This is a sharedd...
Definition textbuffer.h:45
void persistedChanged(bool persisted)
This signal is emitted if the persisted state is changed.
Definition moc_textdocument.cpp:296
void textAboutToBeChanged(edbee::TextBufferChange change)
Definition moc_textdocument.cpp:282
void textChanged(edbee::TextBufferChange change, QString oldText=QString())
Definition moc_textdocument.cpp:289
TextDocument(QObject *parent=0)
Constructs the textdocument.
Definition textdocument.cpp:25
void languageGrammarChanged()
This signal is emitted if the grammar has been changed.
Definition moc_textdocument.cpp:303
void lastScopedOffsetChanged(int previousOffset, int lastScopedOffset)
this signal is emitted if the scoped range has been changed
Definition moc_textdocument.cpp:309
#define QT_MOC_LITERAL(ofs, len)
Definition moc_textdocument.cpp:72
#define Q_CONSTINIT
Definition moc_texteditorscrollarea.cpp:30
Definition moc_texteditorscrollarea.cpp:36