RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moc_qwt_picker.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'qwt_picker.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../qwt_picker.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'qwt_picker.h' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.3.2. 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[36];
23  char stringdata[386];
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_QwtPicker_t, stringdata) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
30 static const qt_meta_stringdata_QwtPicker_t qt_meta_stringdata_QwtPicker = {
31  {
32 QT_MOC_LITERAL(0, 0, 9),
33 QT_MOC_LITERAL(1, 10, 9),
34 QT_MOC_LITERAL(2, 20, 0),
35 QT_MOC_LITERAL(3, 21, 2),
36 QT_MOC_LITERAL(4, 24, 8),
37 QT_MOC_LITERAL(5, 33, 7),
38 QT_MOC_LITERAL(6, 41, 8),
39 QT_MOC_LITERAL(7, 50, 3),
40 QT_MOC_LITERAL(8, 54, 5),
41 QT_MOC_LITERAL(9, 60, 7),
42 QT_MOC_LITERAL(10, 68, 7),
43 QT_MOC_LITERAL(11, 76, 9),
44 QT_MOC_LITERAL(12, 86, 10),
45 QT_MOC_LITERAL(13, 97, 9),
46 QT_MOC_LITERAL(14, 107, 10),
47 QT_MOC_LITERAL(15, 118, 10),
48 QT_MOC_LITERAL(16, 129, 11),
49 QT_MOC_LITERAL(17, 141, 11),
50 QT_MOC_LITERAL(18, 153, 10),
51 QT_MOC_LITERAL(19, 164, 11),
52 QT_MOC_LITERAL(20, 176, 10),
53 QT_MOC_LITERAL(21, 187, 10),
54 QT_MOC_LITERAL(22, 198, 13),
55 QT_MOC_LITERAL(23, 212, 12),
56 QT_MOC_LITERAL(24, 225, 15),
57 QT_MOC_LITERAL(25, 241, 15),
58 QT_MOC_LITERAL(26, 257, 15),
59 QT_MOC_LITERAL(27, 273, 14),
60 QT_MOC_LITERAL(28, 288, 17),
61 QT_MOC_LITERAL(29, 306, 17),
62 QT_MOC_LITERAL(30, 324, 14),
63 QT_MOC_LITERAL(31, 339, 9),
64 QT_MOC_LITERAL(32, 349, 8),
65 QT_MOC_LITERAL(33, 358, 10),
66 QT_MOC_LITERAL(34, 369, 7),
67 QT_MOC_LITERAL(35, 377, 8)
68  },
69  "QwtPicker\0activated\0\0on\0selected\0"
70  "polygon\0appended\0pos\0moved\0removed\0"
71  "changed\0selection\0setEnabled\0isEnabled\0"
72  "resizeMode\0ResizeMode\0trackerMode\0"
73  "DisplayMode\0trackerPen\0trackerFont\0"
74  "rubberBand\0RubberBand\0rubberBandPen\0"
75  "NoRubberBand\0HLineRubberBand\0"
76  "VLineRubberBand\0CrossRubberBand\0"
77  "RectRubberBand\0EllipseRubberBand\0"
78  "PolygonRubberBand\0UserRubberBand\0"
79  "AlwaysOff\0AlwaysOn\0ActiveOnly\0Stretch\0"
80  "KeepSize"
81 };
82 #undef QT_MOC_LITERAL
83 
84 static const uint qt_meta_data_QwtPicker[] = {
85 
86  // content:
87  7, // revision
88  0, // classname
89  0, 0, // classinfo
90  7, 14, // methods
91  7, 70, // properties
92  3, 91, // enums/sets
93  0, 0, // constructors
94  0, // flags
95  6, // signalCount
96 
97  // signals: name, argc, parameters, tag, flags
98  1, 1, 49, 2, 0x06 /* Public */,
99  4, 1, 52, 2, 0x06 /* Public */,
100  6, 1, 55, 2, 0x06 /* Public */,
101  8, 1, 58, 2, 0x06 /* Public */,
102  9, 1, 61, 2, 0x06 /* Public */,
103  10, 1, 64, 2, 0x06 /* Public */,
104 
105  // slots: name, argc, parameters, tag, flags
106  12, 1, 67, 2, 0x0a /* Public */,
107 
108  // signals: parameters
109  QMetaType::Void, QMetaType::Bool, 3,
110  QMetaType::Void, QMetaType::QPolygon, 5,
111  QMetaType::Void, QMetaType::QPoint, 7,
112  QMetaType::Void, QMetaType::QPoint, 7,
113  QMetaType::Void, QMetaType::QPoint, 7,
114  QMetaType::Void, QMetaType::QPolygon, 11,
115 
116  // slots: parameters
117  QMetaType::Void, QMetaType::Bool, 2,
118 
119  // properties: name, type, flags
120  13, QMetaType::Bool, 0x00095003,
121  14, 0x80000000 | 15, 0x0009510b,
122  16, 0x80000000 | 17, 0x0009510b,
123  18, QMetaType::QPen, 0x00095103,
124  19, QMetaType::QFont, 0x00095103,
125  20, 0x80000000 | 21, 0x0009510b,
126  22, QMetaType::QPen, 0x00095103,
127 
128  // enums: name, flags, count, data
129  21, 0x0, 8, 103,
130  17, 0x0, 3, 119,
131  15, 0x0, 2, 125,
132 
133  // enum data: key, value
134  23, uint(QwtPicker::NoRubberBand),
135  24, uint(QwtPicker::HLineRubberBand),
136  25, uint(QwtPicker::VLineRubberBand),
137  26, uint(QwtPicker::CrossRubberBand),
138  27, uint(QwtPicker::RectRubberBand),
139  28, uint(QwtPicker::EllipseRubberBand),
140  29, uint(QwtPicker::PolygonRubberBand),
141  30, uint(QwtPicker::UserRubberBand),
142  31, uint(QwtPicker::AlwaysOff),
143  32, uint(QwtPicker::AlwaysOn),
144  33, uint(QwtPicker::ActiveOnly),
145  34, uint(QwtPicker::Stretch),
146  35, uint(QwtPicker::KeepSize),
147 
148  0 // eod
149 };
150 
151 void QwtPicker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
152 {
153  if (_c == QMetaObject::InvokeMetaMethod) {
154  QwtPicker *_t = static_cast<QwtPicker *>(_o);
155  switch (_id) {
156  case 0: _t->activated((*reinterpret_cast< bool(*)>(_a[1]))); break;
157  case 1: _t->selected((*reinterpret_cast< const QPolygon(*)>(_a[1]))); break;
158  case 2: _t->appended((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
159  case 3: _t->moved((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
160  case 4: _t->removed((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
161  case 5: _t->changed((*reinterpret_cast< const QPolygon(*)>(_a[1]))); break;
162  case 6: _t->setEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
163  default: ;
164  }
165  } else if (_c == QMetaObject::IndexOfMethod) {
166  int *result = reinterpret_cast<int *>(_a[0]);
167  void **func = reinterpret_cast<void **>(_a[1]);
168  {
169  typedef void (QwtPicker::*_t)(bool );
170  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtPicker::activated)) {
171  *result = 0;
172  }
173  }
174  {
175  typedef void (QwtPicker::*_t)(const QPolygon & );
176  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtPicker::selected)) {
177  *result = 1;
178  }
179  }
180  {
181  typedef void (QwtPicker::*_t)(const QPoint & );
182  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtPicker::appended)) {
183  *result = 2;
184  }
185  }
186  {
187  typedef void (QwtPicker::*_t)(const QPoint & );
188  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtPicker::moved)) {
189  *result = 3;
190  }
191  }
192  {
193  typedef void (QwtPicker::*_t)(const QPoint & );
194  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtPicker::removed)) {
195  *result = 4;
196  }
197  }
198  {
199  typedef void (QwtPicker::*_t)(const QPolygon & );
200  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QwtPicker::changed)) {
201  *result = 5;
202  }
203  }
204  }
205 }
206 
207 const QMetaObject QwtPicker::staticMetaObject = {
208  { &QObject::staticMetaObject, qt_meta_stringdata_QwtPicker.data,
209  qt_meta_data_QwtPicker, qt_static_metacall, 0, 0}
210 };
211 
212 
213 const QMetaObject *QwtPicker::metaObject() const
214 {
215  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
216 }
217 
218 void *QwtPicker::qt_metacast(const char *_clname)
219 {
220  if (!_clname) return 0;
221  if (!strcmp(_clname, qt_meta_stringdata_QwtPicker.stringdata))
222  return static_cast<void*>(const_cast< QwtPicker*>(this));
223  if (!strcmp(_clname, "QwtEventPattern"))
224  return static_cast< QwtEventPattern*>(const_cast< QwtPicker*>(this));
225  return QObject::qt_metacast(_clname);
226 }
227 
228 int QwtPicker::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
229 {
230  _id = QObject::qt_metacall(_c, _id, _a);
231  if (_id < 0)
232  return _id;
233  if (_c == QMetaObject::InvokeMetaMethod) {
234  if (_id < 7)
235  qt_static_metacall(this, _c, _id, _a);
236  _id -= 7;
237  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
238  if (_id < 7)
239  *reinterpret_cast<int*>(_a[0]) = -1;
240  _id -= 7;
241  }
242 #ifndef QT_NO_PROPERTIES
243  else if (_c == QMetaObject::ReadProperty) {
244  void *_v = _a[0];
245  switch (_id) {
246  case 0: *reinterpret_cast< bool*>(_v) = isEnabled(); break;
247  case 1: *reinterpret_cast< ResizeMode*>(_v) = resizeMode(); break;
248  case 2: *reinterpret_cast< DisplayMode*>(_v) = trackerMode(); break;
249  case 3: *reinterpret_cast< QPen*>(_v) = trackerPen(); break;
250  case 4: *reinterpret_cast< QFont*>(_v) = trackerFont(); break;
251  case 5: *reinterpret_cast< RubberBand*>(_v) = rubberBand(); break;
252  case 6: *reinterpret_cast< QPen*>(_v) = rubberBandPen(); break;
253  default: break;
254  }
255  _id -= 7;
256  } else if (_c == QMetaObject::WriteProperty) {
257  void *_v = _a[0];
258  switch (_id) {
259  case 0: setEnabled(*reinterpret_cast< bool*>(_v)); break;
260  case 1: setResizeMode(*reinterpret_cast< ResizeMode*>(_v)); break;
261  case 2: setTrackerMode(*reinterpret_cast< DisplayMode*>(_v)); break;
262  case 3: setTrackerPen(*reinterpret_cast< QPen*>(_v)); break;
263  case 4: setTrackerFont(*reinterpret_cast< QFont*>(_v)); break;
264  case 5: setRubberBand(*reinterpret_cast< RubberBand*>(_v)); break;
265  case 6: setRubberBandPen(*reinterpret_cast< QPen*>(_v)); break;
266  default: break;
267  }
268  _id -= 7;
269  } else if (_c == QMetaObject::ResetProperty) {
270  _id -= 7;
271  } else if (_c == QMetaObject::QueryPropertyDesignable) {
272  _id -= 7;
273  } else if (_c == QMetaObject::QueryPropertyScriptable) {
274  _id -= 7;
275  } else if (_c == QMetaObject::QueryPropertyStored) {
276  _id -= 7;
277  } else if (_c == QMetaObject::QueryPropertyEditable) {
278  _id -= 7;
279  } else if (_c == QMetaObject::QueryPropertyUser) {
280  _id -= 7;
281  } else if (_c == QMetaObject::RegisterPropertyMetaType) {
282  if (_id < 7)
283  *reinterpret_cast<int*>(_a[0]) = -1;
284  _id -= 7;
285  }
286 #endif // QT_NO_PROPERTIES
287  return _id;
288 }
289 
290 // SIGNAL 0
291 void QwtPicker::activated(bool _t1)
292 {
293  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
294  QMetaObject::activate(this, &staticMetaObject, 0, _a);
295 }
296 
297 // SIGNAL 1
298 void QwtPicker::selected(const QPolygon & _t1)
299 {
300  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
301  QMetaObject::activate(this, &staticMetaObject, 1, _a);
302 }
303 
304 // SIGNAL 2
305 void QwtPicker::appended(const QPoint & _t1)
306 {
307  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
308  QMetaObject::activate(this, &staticMetaObject, 2, _a);
309 }
310 
311 // SIGNAL 3
312 void QwtPicker::moved(const QPoint & _t1)
313 {
314  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
315  QMetaObject::activate(this, &staticMetaObject, 3, _a);
316 }
317 
318 // SIGNAL 4
319 void QwtPicker::removed(const QPoint & _t1)
320 {
321  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
322  QMetaObject::activate(this, &staticMetaObject, 4, _a);
323 }
324 
325 // SIGNAL 5
326 void QwtPicker::changed(const QPolygon & _t1)
327 {
328  void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
329  QMetaObject::activate(this, &staticMetaObject, 5, _a);
330 }
331 QT_END_MOC_NAMESPACE
#define QT_MOC_LITERAL(idx, ofs, len)