00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "viewer/qt/QtViewer.h"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'QtViewer.h' doesn't include <QObject>."
00013 #elif Q_MOC_OUTPUT_REVISION != 59
00014 #error "This file was generated using the moc from 4.4.3. It"
00015 #error "cannot be used with the include files from this version of Qt."
00016 #error "(The moc has changed too much.)"
00017 #endif
00018
00019 QT_BEGIN_MOC_NAMESPACE
00020 static const uint qt_meta_data_sofa__gui__qt__viewer__qt__QtViewer[] = {
00021
00022
00023 1,
00024 0,
00025 0, 0,
00026 7, 10,
00027 0, 0,
00028 0, 0,
00029
00030
00031 37, 36, 36, 36, 0x05,
00032 47, 36, 36, 36, 0x05,
00033 60, 36, 36, 36, 0x05,
00034
00035
00036 73, 36, 36, 36, 0x0a,
00037 85, 36, 36, 36, 0x0a,
00038 96, 36, 36, 36, 0x0a,
00039 110, 36, 36, 36, 0x0a,
00040
00041 0
00042 };
00043
00044 static const char qt_meta_stringdata_sofa__gui__qt__viewer__qt__QtViewer[] = {
00045 "sofa::gui::qt::viewer::qt::QtViewer\0"
00046 "\0redrawn()\0resizeW(int)\0resizeH(int)\0"
00047 "resetView()\0saveView()\0setSizeW(int)\0"
00048 "setSizeH(int)\0"
00049 };
00050
00051 const QMetaObject sofa::gui::qt::viewer::qt::QtViewer::staticMetaObject = {
00052 { &QGLWidget::staticMetaObject, qt_meta_stringdata_sofa__gui__qt__viewer__qt__QtViewer,
00053 qt_meta_data_sofa__gui__qt__viewer__qt__QtViewer, 0 }
00054 };
00055
00056 const QMetaObject *sofa::gui::qt::viewer::qt::QtViewer::metaObject() const
00057 {
00058 return &staticMetaObject;
00059 }
00060
00061 void *sofa::gui::qt::viewer::qt::QtViewer::qt_metacast(const char *_clname)
00062 {
00063 if (!_clname) return 0;
00064 if (!strcmp(_clname, qt_meta_stringdata_sofa__gui__qt__viewer__qt__QtViewer))
00065 return static_cast<void*>(const_cast< QtViewer*>(this));
00066 if (!strcmp(_clname, "sofa::gui::qt::viewer::SofaViewer"))
00067 return static_cast< sofa::gui::qt::viewer::SofaViewer*>(const_cast< QtViewer*>(this));
00068 return QGLWidget::qt_metacast(_clname);
00069 }
00070
00071 int sofa::gui::qt::viewer::qt::QtViewer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00072 {
00073 _id = QGLWidget::qt_metacall(_c, _id, _a);
00074 if (_id < 0)
00075 return _id;
00076 if (_c == QMetaObject::InvokeMetaMethod) {
00077 switch (_id) {
00078 case 0: redrawn(); break;
00079 case 1: resizeW((*reinterpret_cast< int(*)>(_a[1]))); break;
00080 case 2: resizeH((*reinterpret_cast< int(*)>(_a[1]))); break;
00081 case 3: resetView(); break;
00082 case 4: saveView(); break;
00083 case 5: setSizeW((*reinterpret_cast< int(*)>(_a[1]))); break;
00084 case 6: setSizeH((*reinterpret_cast< int(*)>(_a[1]))); break;
00085 }
00086 _id -= 7;
00087 }
00088 return _id;
00089 }
00090
00091
00092 void sofa::gui::qt::viewer::qt::QtViewer::redrawn()
00093 {
00094 QMetaObject::activate(this, &staticMetaObject, 0, 0);
00095 }
00096
00097
00098 void sofa::gui::qt::viewer::qt::QtViewer::resizeW(int _t1)
00099 {
00100 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00101 QMetaObject::activate(this, &staticMetaObject, 1, _a);
00102 }
00103
00104
00105 void sofa::gui::qt::viewer::qt::QtViewer::resizeH(int _t1)
00106 {
00107 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00108 QMetaObject::activate(this, &staticMetaObject, 2, _a);
00109 }
00110 QT_END_MOC_NAMESPACE