PulseView  0.3.0
A Qt-based sigrok GUI
moc_view.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'view.hpp'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "view.hpp"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'view.hpp' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.5.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
22  QByteArrayData data[40];
23  char stringdata0[643];
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_pv__view__View_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 14), // "pv::view::View"
33 QT_MOC_LITERAL(1, 15, 19), // "hover_point_changed"
34 QT_MOC_LITERAL(2, 35, 0), // ""
35 QT_MOC_LITERAL(3, 36, 17), // "selection_changed"
36 QT_MOC_LITERAL(4, 54, 14), // "offset_changed"
37 QT_MOC_LITERAL(5, 69, 13), // "scale_changed"
38 QT_MOC_LITERAL(6, 83, 24), // "sticky_scrolling_changed"
39 QT_MOC_LITERAL(7, 108, 5), // "state"
40 QT_MOC_LITERAL(8, 114, 26), // "always_zoom_to_fit_changed"
41 QT_MOC_LITERAL(9, 141, 19), // "tick_prefix_changed"
42 QT_MOC_LITERAL(10, 161, 22), // "tick_precision_changed"
43 QT_MOC_LITERAL(11, 184, 19), // "tick_period_changed"
44 QT_MOC_LITERAL(12, 204, 17), // "time_unit_changed"
45 QT_MOC_LITERAL(13, 222, 13), // "trigger_event"
46 QT_MOC_LITERAL(14, 236, 15), // "util::Timestamp"
47 QT_MOC_LITERAL(15, 252, 8), // "location"
48 QT_MOC_LITERAL(16, 261, 22), // "h_scroll_value_changed"
49 QT_MOC_LITERAL(17, 284, 5), // "value"
50 QT_MOC_LITERAL(18, 290, 22), // "v_scroll_value_changed"
51 QT_MOC_LITERAL(19, 313, 15), // "signals_changed"
52 QT_MOC_LITERAL(20, 329, 21), // "capture_state_updated"
53 QT_MOC_LITERAL(21, 351, 12), // "data_updated"
54 QT_MOC_LITERAL(22, 364, 27), // "perform_delayed_view_update"
55 QT_MOC_LITERAL(23, 392, 21), // "process_sticky_events"
56 QT_MOC_LITERAL(24, 414, 22), // "on_hover_point_changed"
57 QT_MOC_LITERAL(25, 437, 10), // "set_offset"
58 QT_MOC_LITERAL(26, 448, 19), // "pv::util::Timestamp"
59 QT_MOC_LITERAL(27, 468, 6), // "offset"
60 QT_MOC_LITERAL(28, 475, 9), // "set_scale"
61 QT_MOC_LITERAL(29, 485, 5), // "scale"
62 QT_MOC_LITERAL(30, 491, 15), // "set_tick_prefix"
63 QT_MOC_LITERAL(31, 507, 18), // "pv::util::SIPrefix"
64 QT_MOC_LITERAL(32, 526, 11), // "tick_prefix"
65 QT_MOC_LITERAL(33, 538, 18), // "set_tick_precision"
66 QT_MOC_LITERAL(34, 557, 14), // "tick_precision"
67 QT_MOC_LITERAL(35, 572, 15), // "set_tick_period"
68 QT_MOC_LITERAL(36, 588, 11), // "tick_period"
69 QT_MOC_LITERAL(37, 600, 13), // "set_time_unit"
70 QT_MOC_LITERAL(38, 614, 18), // "pv::util::TimeUnit"
71 QT_MOC_LITERAL(39, 633, 9) // "time_unit"
72 
73  },
74  "pv::view::View\0hover_point_changed\0\0"
75  "selection_changed\0offset_changed\0"
76  "scale_changed\0sticky_scrolling_changed\0"
77  "state\0always_zoom_to_fit_changed\0"
78  "tick_prefix_changed\0tick_precision_changed\0"
79  "tick_period_changed\0time_unit_changed\0"
80  "trigger_event\0util::Timestamp\0location\0"
81  "h_scroll_value_changed\0value\0"
82  "v_scroll_value_changed\0signals_changed\0"
83  "capture_state_updated\0data_updated\0"
84  "perform_delayed_view_update\0"
85  "process_sticky_events\0on_hover_point_changed\0"
86  "set_offset\0pv::util::Timestamp\0offset\0"
87  "set_scale\0scale\0set_tick_prefix\0"
88  "pv::util::SIPrefix\0tick_prefix\0"
89  "set_tick_precision\0tick_precision\0"
90  "set_tick_period\0tick_period\0set_time_unit\0"
91  "pv::util::TimeUnit\0time_unit"
92 };
93 #undef QT_MOC_LITERAL
94 
95 static const uint qt_meta_data_pv__view__View[] = {
96 
97  // content:
98  7, // revision
99  0, // classname
100  0, 0, // classinfo
101  25, 14, // methods
102  0, 0, // properties
103  0, 0, // enums/sets
104  0, 0, // constructors
105  0, // flags
106  10, // signalCount
107 
108  // signals: name, argc, parameters, tag, flags
109  1, 0, 139, 2, 0x06 /* Public */,
110  3, 0, 140, 2, 0x06 /* Public */,
111  4, 0, 141, 2, 0x06 /* Public */,
112  5, 0, 142, 2, 0x06 /* Public */,
113  6, 1, 143, 2, 0x06 /* Public */,
114  8, 1, 146, 2, 0x06 /* Public */,
115  9, 0, 149, 2, 0x06 /* Public */,
116  10, 0, 150, 2, 0x06 /* Public */,
117  11, 0, 151, 2, 0x06 /* Public */,
118  12, 0, 152, 2, 0x06 /* Public */,
119 
120  // slots: name, argc, parameters, tag, flags
121  13, 1, 153, 2, 0x0a /* Public */,
122  16, 1, 156, 2, 0x08 /* Private */,
123  18, 0, 159, 2, 0x08 /* Private */,
124  19, 0, 160, 2, 0x08 /* Private */,
125  20, 1, 161, 2, 0x08 /* Private */,
126  21, 0, 164, 2, 0x08 /* Private */,
127  22, 0, 165, 2, 0x08 /* Private */,
128  23, 0, 166, 2, 0x08 /* Private */,
129  24, 0, 167, 2, 0x08 /* Private */,
130  25, 1, 168, 2, 0x08 /* Private */,
131  28, 1, 171, 2, 0x08 /* Private */,
132  30, 1, 174, 2, 0x08 /* Private */,
133  33, 1, 177, 2, 0x08 /* Private */,
134  35, 1, 180, 2, 0x08 /* Private */,
135  37, 1, 183, 2, 0x08 /* Private */,
136 
137  // signals: parameters
138  QMetaType::Void,
139  QMetaType::Void,
140  QMetaType::Void,
141  QMetaType::Void,
142  QMetaType::Void, QMetaType::Bool, 7,
143  QMetaType::Void, QMetaType::Bool, 7,
144  QMetaType::Void,
145  QMetaType::Void,
146  QMetaType::Void,
147  QMetaType::Void,
148 
149  // slots: parameters
150  QMetaType::Void, 0x80000000 | 14, 15,
151  QMetaType::Void, QMetaType::Int, 17,
152  QMetaType::Void,
153  QMetaType::Void,
154  QMetaType::Void, QMetaType::Int, 7,
155  QMetaType::Void,
156  QMetaType::Void,
157  QMetaType::Void,
158  QMetaType::Void,
159  QMetaType::Void, 0x80000000 | 26, 27,
160  QMetaType::Void, QMetaType::Double, 29,
161  QMetaType::Void, 0x80000000 | 31, 32,
162  QMetaType::Void, QMetaType::UInt, 34,
163  QMetaType::Void, 0x80000000 | 26, 36,
164  QMetaType::Void, 0x80000000 | 38, 39,
165 
166  0 // eod
167 };
168 
169 void pv::view::View::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
170 {
171  if (_c == QMetaObject::InvokeMetaMethod) {
172  View *_t = static_cast<View *>(_o);
173  Q_UNUSED(_t)
174  switch (_id) {
175  case 0: _t->hover_point_changed(); break;
176  case 1: _t->selection_changed(); break;
177  case 2: _t->offset_changed(); break;
178  case 3: _t->scale_changed(); break;
179  case 4: _t->sticky_scrolling_changed((*reinterpret_cast< bool(*)>(_a[1]))); break;
180  case 5: _t->always_zoom_to_fit_changed((*reinterpret_cast< bool(*)>(_a[1]))); break;
181  case 6: _t->tick_prefix_changed(); break;
182  case 7: _t->tick_precision_changed(); break;
183  case 8: _t->tick_period_changed(); break;
184  case 9: _t->time_unit_changed(); break;
185  case 10: _t->trigger_event((*reinterpret_cast< util::Timestamp(*)>(_a[1]))); break;
186  case 11: _t->h_scroll_value_changed((*reinterpret_cast< int(*)>(_a[1]))); break;
187  case 12: _t->v_scroll_value_changed(); break;
188  case 13: _t->signals_changed(); break;
189  case 14: _t->capture_state_updated((*reinterpret_cast< int(*)>(_a[1]))); break;
190  case 15: _t->data_updated(); break;
191  case 16: _t->perform_delayed_view_update(); break;
192  case 17: _t->process_sticky_events(); break;
193  case 18: _t->on_hover_point_changed(); break;
194  case 19: _t->set_offset((*reinterpret_cast< const pv::util::Timestamp(*)>(_a[1]))); break;
195  case 20: _t->set_scale((*reinterpret_cast< double(*)>(_a[1]))); break;
196  case 21: _t->set_tick_prefix((*reinterpret_cast< pv::util::SIPrefix(*)>(_a[1]))); break;
197  case 22: _t->set_tick_precision((*reinterpret_cast< uint(*)>(_a[1]))); break;
198  case 23: _t->set_tick_period((*reinterpret_cast< const pv::util::Timestamp(*)>(_a[1]))); break;
199  case 24: _t->set_time_unit((*reinterpret_cast< pv::util::TimeUnit(*)>(_a[1]))); break;
200  default: ;
201  }
202  } else if (_c == QMetaObject::IndexOfMethod) {
203  int *result = reinterpret_cast<int *>(_a[0]);
204  void **func = reinterpret_cast<void **>(_a[1]);
205  {
206  typedef void (View::*_t)();
207  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::hover_point_changed)) {
208  *result = 0;
209  }
210  }
211  {
212  typedef void (View::*_t)();
213  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::selection_changed)) {
214  *result = 1;
215  }
216  }
217  {
218  typedef void (View::*_t)();
219  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::offset_changed)) {
220  *result = 2;
221  }
222  }
223  {
224  typedef void (View::*_t)();
225  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::scale_changed)) {
226  *result = 3;
227  }
228  }
229  {
230  typedef void (View::*_t)(bool );
231  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::sticky_scrolling_changed)) {
232  *result = 4;
233  }
234  }
235  {
236  typedef void (View::*_t)(bool );
237  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::always_zoom_to_fit_changed)) {
238  *result = 5;
239  }
240  }
241  {
242  typedef void (View::*_t)();
243  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::tick_prefix_changed)) {
244  *result = 6;
245  }
246  }
247  {
248  typedef void (View::*_t)();
249  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::tick_precision_changed)) {
250  *result = 7;
251  }
252  }
253  {
254  typedef void (View::*_t)();
255  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::tick_period_changed)) {
256  *result = 8;
257  }
258  }
259  {
260  typedef void (View::*_t)();
261  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&View::time_unit_changed)) {
262  *result = 9;
263  }
264  }
265  }
266 }
267 
268 const QMetaObject pv::view::View::staticMetaObject = {
269  { &QAbstractScrollArea::staticMetaObject, qt_meta_stringdata_pv__view__View.data,
270  qt_meta_data_pv__view__View, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
271 };
272 
273 
274 const QMetaObject *pv::view::View::metaObject() const
275 {
276  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
277 }
278 
279 void *pv::view::View::qt_metacast(const char *_clname)
280 {
281  if (!_clname) return Q_NULLPTR;
282  if (!strcmp(_clname, qt_meta_stringdata_pv__view__View.stringdata0))
283  return static_cast<void*>(const_cast< View*>(this));
284  if (!strcmp(_clname, "TraceTreeItemOwner"))
285  return static_cast< TraceTreeItemOwner*>(const_cast< View*>(this));
286  return QAbstractScrollArea::qt_metacast(_clname);
287 }
288 
289 int pv::view::View::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
290 {
291  _id = QAbstractScrollArea::qt_metacall(_c, _id, _a);
292  if (_id < 0)
293  return _id;
294  if (_c == QMetaObject::InvokeMetaMethod) {
295  if (_id < 25)
296  qt_static_metacall(this, _c, _id, _a);
297  _id -= 25;
298  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
299  if (_id < 25)
300  *reinterpret_cast<int*>(_a[0]) = -1;
301  _id -= 25;
302  }
303  return _id;
304 }
305 
306 // SIGNAL 0
308 {
309  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
310 }
311 
312 // SIGNAL 1
314 {
315  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
316 }
317 
318 // SIGNAL 2
320 {
321  QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
322 }
323 
324 // SIGNAL 3
326 {
327  QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
328 }
329 
330 // SIGNAL 4
332 {
333  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
334  QMetaObject::activate(this, &staticMetaObject, 4, _a);
335 }
336 
337 // SIGNAL 5
339 {
340  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
341  QMetaObject::activate(this, &staticMetaObject, 5, _a);
342 }
343 
344 // SIGNAL 6
346 {
347  QMetaObject::activate(this, &staticMetaObject, 6, Q_NULLPTR);
348 }
349 
350 // SIGNAL 7
352 {
353  QMetaObject::activate(this, &staticMetaObject, 7, Q_NULLPTR);
354 }
355 
356 // SIGNAL 8
358 {
359  QMetaObject::activate(this, &staticMetaObject, 8, Q_NULLPTR);
360 }
361 
362 // SIGNAL 9
364 {
365  QMetaObject::activate(this, &staticMetaObject, 9, Q_NULLPTR);
366 }
367 QT_END_MOC_NAMESPACE
SIPrefix
Definition: util.hpp:41
static const uint qt_meta_data_pv__view__View[]
Definition: moc_view.cpp:95
void tick_prefix_changed()
Emitted when the tick_prefix changed.
Definition: moc_view.cpp:345
static const qt_meta_stringdata_pv__view__View_t qt_meta_stringdata_pv__view__View
Definition: moc_view.cpp:30
void selection_changed()
Definition: moc_view.cpp:313
void time_unit_changed()
Emitted when the time_unit changed.
Definition: moc_view.cpp:363
void scale_changed()
Emitted when the scale changed.
Definition: moc_view.cpp:325
void tick_precision_changed()
Emitted when the tick_precision changed.
Definition: moc_view.cpp:351
void offset_changed()
Emitted when the offset changed.
Definition: moc_view.cpp:319
void sticky_scrolling_changed(bool state)
Definition: moc_view.cpp:331
TimeUnit
Definition: util.hpp:36
boost::multiprecision::number< boost::multiprecision::cpp_dec_float< 24 >, boost::multiprecision::et_off > Timestamp
Timestamp type providing yoctosecond resolution.
Definition: util.hpp:58
void hover_point_changed()
Definition: moc_view.cpp:307
View(Session &session, QWidget *parent=0)
Definition: view.cpp:101
#define QT_MOC_LITERAL(idx, ofs, len)
Definition: moc_view.cpp:25
void tick_period_changed()
Emitted when the tick_period changed.
Definition: moc_view.cpp:357
void always_zoom_to_fit_changed(bool state)
Definition: moc_view.cpp:338