00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "GraphModeler.h"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'GraphModeler.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__GraphModeler[] = {
00021
00022
00023 1,
00024 0,
00025 0, 0,
00026 30, 10,
00027 0, 0,
00028 0, 0,
00029
00030
00031 29, 28, 28, 28, 0x05,
00032 51, 28, 28, 28, 0x05,
00033
00034
00035 65, 28, 28, 28, 0x0a,
00036 85, 80, 28, 28, 0x0a,
00037 115, 28, 28, 28, 0x0a,
00038 128, 80, 28, 28, 0x0a,
00039 163, 28, 156, 28, 0x0a,
00040 188, 174, 156, 28, 0x0a,
00041 226, 80, 156, 28, 0x2a,
00042 263, 252, 28, 28, 0x0a,
00043 293, 287, 28, 28, 0x0a,
00044 375, 28, 28, 28, 0x0a,
00045 386, 80, 28, 28, 0x0a,
00046 412, 28, 28, 28, 0x0a,
00047 431, 28, 28, 28, 0x0a,
00048 465, 28, 28, 28, 0x0a,
00049 497, 494, 28, 28, 0x0a,
00050 560, 536, 156, 28, 0x0a,
00051 601, 589, 156, 28, 0x2a,
00052 632, 625, 156, 28, 0x2a,
00053 699, 661, 649, 28, 0x0a,
00054 774, 748, 649, 28, 0x2a,
00055 818, 28, 28, 28, 0x0a,
00056 853, 836, 28, 28, 0x0a,
00057 891, 80, 28, 28, 0x2a,
00058 924, 28, 28, 28, 0x0a,
00059 940, 937, 28, 28, 0x0a,
00060 960, 28, 28, 28, 0x0a,
00061 971, 28, 28, 28, 0x0a,
00062 982, 28, 28, 28, 0x0a,
00063
00064 0
00065 };
00066
00067 static const char qt_meta_stringdata_sofa__gui__qt__GraphModeler[] = {
00068 "sofa::gui::qt::GraphModeler\0\0"
00069 "fileOpen(std::string)\0closeDialog()\0"
00070 "collapseNode()\0item\0collapseNode(Q3ListViewItem*)\0"
00071 "expandNode()\0expandNode(Q3ListViewItem*)\0"
00072 "GNode*\0loadNode()\0item,filename\0"
00073 "loadNode(Q3ListViewItem*,std::string)\0"
00074 "loadNode(Q3ListViewItem*)\0presetName\0"
00075 "loadPreset(std::string)\0,,,,,\0"
00076 "loadPreset(GNode*,std::string,std::string*,std::string*,std::string*,s"
00077 "td::string)\0"
00078 "saveNode()\0saveNode(Q3ListViewItem*)\0"
00079 "openModifyObject()\0openModifyObject(Q3ListViewItem*)\0"
00080 "doubleClick(Q3ListViewItem*)\0,,\0"
00081 "rightClick(Q3ListViewItem*,QPoint,int)\0"
00082 "parent,node,saveHistory\0"
00083 "addGNode(GNode*,GNode*,bool)\0parent,node\0"
00084 "addGNode(GNode*,GNode*)\0parent\0"
00085 "addGNode(GNode*)\0BaseObject*\0"
00086 "parent,entry,templateName,saveHistory\0"
00087 "addComponent(GNode*,ClassInfo*,std::string,bool)\0"
00088 "parent,entry,templateName\0"
00089 "addComponent(GNode*,ClassInfo*,std::string)\0"
00090 "deleteComponent()\0item,saveHistory\0"
00091 "deleteComponent(Q3ListViewItem*,bool)\0"
00092 "deleteComponent(Q3ListViewItem*)\0"
00093 "closeGraph()\0Id\0modifyUnlock(void*)\0"
00094 "editUndo()\0editRedo()\0closeDialogs()\0"
00095 };
00096
00097 const QMetaObject sofa::gui::qt::GraphModeler::staticMetaObject = {
00098 { &Q3ListView::staticMetaObject, qt_meta_stringdata_sofa__gui__qt__GraphModeler,
00099 qt_meta_data_sofa__gui__qt__GraphModeler, 0 }
00100 };
00101
00102 const QMetaObject *sofa::gui::qt::GraphModeler::metaObject() const
00103 {
00104 return &staticMetaObject;
00105 }
00106
00107 void *sofa::gui::qt::GraphModeler::qt_metacast(const char *_clname)
00108 {
00109 if (!_clname) return 0;
00110 if (!strcmp(_clname, qt_meta_stringdata_sofa__gui__qt__GraphModeler))
00111 return static_cast<void*>(const_cast< GraphModeler*>(this));
00112 return Q3ListView::qt_metacast(_clname);
00113 }
00114
00115 int sofa::gui::qt::GraphModeler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00116 {
00117 _id = Q3ListView::qt_metacall(_c, _id, _a);
00118 if (_id < 0)
00119 return _id;
00120 if (_c == QMetaObject::InvokeMetaMethod) {
00121 switch (_id) {
00122 case 0: fileOpen((*reinterpret_cast< std::string(*)>(_a[1]))); break;
00123 case 1: closeDialog(); break;
00124 case 2: collapseNode(); break;
00125 case 3: collapseNode((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1]))); break;
00126 case 4: expandNode(); break;
00127 case 5: expandNode((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1]))); break;
00128 case 6: { GNode* _r = loadNode();
00129 if (_a[0]) *reinterpret_cast< GNode**>(_a[0]) = _r; } break;
00130 case 7: { GNode* _r = loadNode((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1])),(*reinterpret_cast< std::string(*)>(_a[2])));
00131 if (_a[0]) *reinterpret_cast< GNode**>(_a[0]) = _r; } break;
00132 case 8: { GNode* _r = loadNode((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1])));
00133 if (_a[0]) *reinterpret_cast< GNode**>(_a[0]) = _r; } break;
00134 case 9: loadPreset((*reinterpret_cast< std::string(*)>(_a[1]))); break;
00135 case 10: loadPreset((*reinterpret_cast< GNode*(*)>(_a[1])),(*reinterpret_cast< std::string(*)>(_a[2])),(*reinterpret_cast< std::string*(*)>(_a[3])),(*reinterpret_cast< std::string*(*)>(_a[4])),(*reinterpret_cast< std::string*(*)>(_a[5])),(*reinterpret_cast< std::string(*)>(_a[6]))); break;
00136 case 11: saveNode(); break;
00137 case 12: saveNode((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1]))); break;
00138 case 13: openModifyObject(); break;
00139 case 14: openModifyObject((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1]))); break;
00140 case 15: doubleClick((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1]))); break;
00141 case 16: rightClick((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
00142 case 17: { GNode* _r = addGNode((*reinterpret_cast< GNode*(*)>(_a[1])),(*reinterpret_cast< GNode*(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])));
00143 if (_a[0]) *reinterpret_cast< GNode**>(_a[0]) = _r; } break;
00144 case 18: { GNode* _r = addGNode((*reinterpret_cast< GNode*(*)>(_a[1])),(*reinterpret_cast< GNode*(*)>(_a[2])));
00145 if (_a[0]) *reinterpret_cast< GNode**>(_a[0]) = _r; } break;
00146 case 19: { GNode* _r = addGNode((*reinterpret_cast< GNode*(*)>(_a[1])));
00147 if (_a[0]) *reinterpret_cast< GNode**>(_a[0]) = _r; } break;
00148 case 20: { BaseObject* _r = addComponent((*reinterpret_cast< GNode*(*)>(_a[1])),(*reinterpret_cast< ClassInfo*(*)>(_a[2])),(*reinterpret_cast< std::string(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4])));
00149 if (_a[0]) *reinterpret_cast< BaseObject**>(_a[0]) = _r; } break;
00150 case 21: { BaseObject* _r = addComponent((*reinterpret_cast< GNode*(*)>(_a[1])),(*reinterpret_cast< ClassInfo*(*)>(_a[2])),(*reinterpret_cast< std::string(*)>(_a[3])));
00151 if (_a[0]) *reinterpret_cast< BaseObject**>(_a[0]) = _r; } break;
00152 case 22: deleteComponent(); break;
00153 case 23: deleteComponent((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
00154 case 24: deleteComponent((*reinterpret_cast< Q3ListViewItem*(*)>(_a[1]))); break;
00155 case 25: closeGraph(); break;
00156 case 26: modifyUnlock((*reinterpret_cast< void*(*)>(_a[1]))); break;
00157 case 27: editUndo(); break;
00158 case 28: editRedo(); break;
00159 case 29: closeDialogs(); break;
00160 }
00161 _id -= 30;
00162 }
00163 return _id;
00164 }
00165
00166
00167 void sofa::gui::qt::GraphModeler::fileOpen(std::string _t1)
00168 {
00169 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00170 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00171 }
00172
00173
00174 void sofa::gui::qt::GraphModeler::closeDialog()
00175 {
00176 QMetaObject::activate(this, &staticMetaObject, 1, 0);
00177 }
00178 QT_END_MOC_NAMESPACE