Changeset 644 for trunk/geant4
- Timestamp:
- Dec 7, 2007, 3:33:51 PM (17 years ago)
- Location:
- trunk/geant4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/config/common.gmk
r643 r644 10 10 endif 11 11 G4TMPDIR := $(G4TMP)/$(G4SYSTEM)/$(name) 12 MOC_HDRS = $(shell grep -l "Q_OBJECT" include/*.hh ) 12 13 13 all : moc ; 14 moc : lib ; 14 moc_files := $(patsubst include/%.hh, src/%_moc.cc, $(MOC_HDRS)) 15 15 sources := $(wildcard src/*.cc) 16 sources += $(moc_files) 16 17 objects := $(patsubst src/%.cc,$(G4TMPDIR)/%.o,$(sources)) 17 18 dependencies := $(patsubst src/%.cc,$(G4TMPDIR)/%.d,$(sources)) … … 35 36 # Actual gmake targets. 36 37 # 37 lib: $(g4libraries_to_build) 38 39 lib: $(g4libraries_to_build) $(moc_files) 38 40 39 41 ifeq ($(G4LIB_NO_SHARED),) … … 74 76 # generated by moc). Use 'grep -l' to list all the files containing the token 75 77 76 MOC_HDRS = $(shell grep -l "Q_OBJECT" include/*.hh ) 77 MOC_SRCS = $(patsubst include/%.hh, src/%_moc_tmp.cc, $(MOC_HDRS)) 78 moc : $(MOC_SRCS) 79 80 MOC = $(QTHOME)/bin/moc 81 82 src/%_moc_tmp.cc: include/%.hh 78 src/%_moc.cc: include/%.hh 83 79 @echo Making moc file for $< ... 84 @if [ `$(QTHOME)/bin/moc -v 2>&1 | grep "Qt 4" | wc -l ` -gt 0 ]; then \80 @if [ `$(QTHOME)/bin/moc -v 2>&1 | grep "Qt 3" | wc -l ` -gt 0 ]; then \ 85 81 $(MOC) -o $@ $<;\ 86 82 else $(MOC) $(MOC_MACRO) -o $@ $<; \ 87 83 fi; 88 89 # @echo Making moc file for $< ...90 # @if [ `$(QTHOME)/bin/moc -v 2>&1 | grep "Qt 3" | wc -l ` -gt 0 ]; then \91 # @$(MOC) -o $@ $<;\92 # else @$(MOC) $(MOC_MACRO) -o $@ $<;93 # fi;94 84 95 85 ############################################################################### … … 108 98 # .PHONY targets are executed regardless of time-stamp of any file of 109 99 # same name. 110 .PHONY: all obj lib clean clean_libs includes100 .PHONY: all moc_files obj lib clean clean_libs includes 111 101 112 102 obj: $(G4TMPDIR)/obj.last -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc
r642 r644 1 //1 // 2 2 // ******************************************************************** 3 3 // * License and Disclaimer * -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog_moc.cc
r633 r644 1 /****************************************************************************2 ** G4OpenGLQtExportDialog meta object code from reading C++ file 'G4OpenGLQtExportDialog.hh'3 **4 ** Created: Mon Nov 12 10:36:59 20075 ** by: The Qt MOC ($Id: G4OpenGLQtExportDialog_moc.cc,v 1.6 2007/11/30 14:47:30 lgarnier Exp $)6 **7 ** WARNING! All changes made in this file will be lost!8 *****************************************************************************/9 10 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER11 12 #undef QT_NO_COMPAT13 #include "../include/G4OpenGLQtExportDialog.hh"14 #include <qmetaobject.h>15 #include <qapplication.h>16 17 #if QT_VERSION < 0x04000018 19 #include <private/qucomextra_p.h>20 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)21 #error "This file was generated using the moc from 3.3.5. It"22 #error "cannot be used with the include files from this version of Qt."23 #error "(The moc has changed too much.)"24 #endif25 26 const char *G4OpenGLQtExportDialog::className() const27 {28 return "G4OpenGLQtExportDialog";29 }30 31 QMetaObject *G4OpenGLQtExportDialog::metaObj = 0;32 static QMetaObjectCleanUp cleanUp_G4OpenGLQtExportDialog( "G4OpenGLQtExportDialog", &G4OpenGLQtExportDialog::staticMetaObject );33 34 #ifndef QT_NO_TRANSLATION35 QString G4OpenGLQtExportDialog::tr( const char *s, const char *c )36 {37 if ( qApp )38 return qApp->translate( "G4OpenGLQtExportDialog", s, c, QApplication::DefaultCodec );39 else40 return QString::fromLatin1( s );41 }42 #ifndef QT_NO_TRANSLATION_UTF843 QString G4OpenGLQtExportDialog::trUtf8( const char *s, const char *c )44 {45 if ( qApp )46 return qApp->translate( "G4OpenGLQtExportDialog", s, c, QApplication::UnicodeUTF8 );47 else48 return QString::fromUtf8( s );49 }50 #endif // QT_NO_TRANSLATION_UTF851 52 #endif // QT_NO_TRANSLATION53 54 QMetaObject* G4OpenGLQtExportDialog::staticMetaObject()55 {56 if ( metaObj )57 return metaObj;58 QMetaObject* parentObject = QDialog::staticMetaObject();59 static const QUParameter param_slot_0[] = {60 { 0, &static_QUType_bool, 0, QUParameter::In }61 };62 static const QUMethod slot_0 = {"changeSizeBox", 1, param_slot_0 };63 static const QUParameter param_slot_1[] = {64 { 0, &static_QUType_QString, 0, QUParameter::In }65 };66 static const QUMethod slot_1 = {"textWidthChanged", 1, param_slot_1 };67 static const QUParameter param_slot_2[] = {68 { 0, &static_QUType_QString, 0, QUParameter::In }69 };70 static const QUMethod slot_2 = {"textHeightChanged", 1, param_slot_2 };71 static const QMetaData slot_tbl[] = {72 { "changeSizeBox(bool)", &slot_0, QMetaData::Public },73 { "textWidthChanged(const QString&)", &slot_1, QMetaData::Public },74 { "textHeightChanged(const QString&)", &slot_2, QMetaData::Public }75 };76 metaObj = QMetaObject::new_metaobject(77 "G4OpenGLQtExportDialog", parentObject,78 slot_tbl, 3,79 0, 0,80 #ifndef QT_NO_PROPERTIES81 0, 0,82 0, 0,83 #endif // QT_NO_PROPERTIES84 0, 0 );85 cleanUp_G4OpenGLQtExportDialog.setMetaObject( metaObj );86 return metaObj;87 }88 89 void* G4OpenGLQtExportDialog::qt_cast( const char* clname )90 {91 if ( !qstrcmp( clname, "G4OpenGLQtExportDialog" ) )92 return this;93 return QDialog::qt_cast( clname );94 }95 96 bool G4OpenGLQtExportDialog::qt_invoke( int _id, QUObject* _o )97 {98 switch ( _id - staticMetaObject()->slotOffset() ) {99 case 0: changeSizeBox((bool)static_QUType_bool.get(_o+1)); break;100 case 1: textWidthChanged((const QString&)static_QUType_QString.get(_o+1)); break;101 case 2: textHeightChanged((const QString&)static_QUType_QString.get(_o+1)); break;102 default:103 return QDialog::qt_invoke( _id, _o );104 }105 return TRUE;106 }107 108 bool G4OpenGLQtExportDialog::qt_emit( int _id, QUObject* _o )109 {110 return QDialog::qt_emit(_id,_o);111 }112 #ifndef QT_NO_PROPERTIES113 114 bool G4OpenGLQtExportDialog::qt_property( int id, int f, QVariant* v)115 {116 return QDialog::qt_property( id, f, v);117 }118 119 bool G4OpenGLQtExportDialog::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }120 #endif // QT_NO_PROPERTIES121 122 #endif123 #endif124 125 126 #if QT_VERSION >= 0x040000127 #if QT_VERSION < 0x040200128 1 /**************************************************************************** 129 2 ** Meta object code from reading C++ file 'G4OpenGLQtExportDialog.hh' 130 3 ** 131 ** Created: jeu. 22. nov. 12:25:13 2007 132 ** by: The Qt Meta Object Compiler version 58 (Qt 4.0.1) 133 ** 134 ** WARNING! All changes made in this file will be lost! 135 *****************************************************************************/ 136 137 #include "../include/G4OpenGLQtExportDialog.hh" 138 #if !defined(Q_MOC_OUTPUT_REVISION) 139 #error "The header file 'G4OpenGLQtExportDialog.hh' doesn't include <QObject>." 140 #elif Q_MOC_OUTPUT_REVISION != 58 141 #error "This file was generated using the moc from 4.0.1. It" 142 #error "cannot be used with the include files from this version of Qt." 143 #error "(The moc has changed too much.)" 144 #endif 145 146 static const uint qt_meta_data_G4OpenGLQtExportDialog[] = { 147 148 // content: 149 1, // revision 150 0, // classname 151 0, 0, // classinfo 152 3, 10, // methods 153 0, 0, // properties 154 0, 0, // enums/sets 155 156 // slots: signature, parameters, type, tag, flags 157 24, 23, 23, 23, 0x0a, 158 44, 23, 23, 23, 0x0a, 159 70, 23, 23, 23, 0x0a, 160 161 0 // eod 162 }; 163 164 static const char qt_meta_stringdata_G4OpenGLQtExportDialog[] = { 165 "G4OpenGLQtExportDialog\0\0changeSizeBox(bool)\0" 166 "textWidthChanged(QString)\0textHeightChanged(QString)\0" 167 }; 168 169 const QMetaObject G4OpenGLQtExportDialog::staticMetaObject = { 170 { &QDialog::staticMetaObject, qt_meta_stringdata_G4OpenGLQtExportDialog, 171 qt_meta_data_G4OpenGLQtExportDialog, 0 } 172 }; 173 174 const QMetaObject *G4OpenGLQtExportDialog::metaObject() const 175 { 176 return &staticMetaObject; 177 } 178 179 void *G4OpenGLQtExportDialog::qt_metacast(const char *_clname) 180 { 181 if (!_clname) return 0; 182 if (!strcmp(_clname, qt_meta_stringdata_G4OpenGLQtExportDialog)) 183 return static_cast<void*>(const_cast<G4OpenGLQtExportDialog*>(this)); 184 return QDialog::qt_metacast(_clname); 185 } 186 187 int G4OpenGLQtExportDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 188 { 189 _id = QDialog::qt_metacall(_c, _id, _a); 190 if (_id < 0) 191 return _id; 192 if (_c == QMetaObject::InvokeMetaMethod) { 193 switch (_id) { 194 case 0: changeSizeBox(*(bool*)_a[1]); break; 195 case 1: textWidthChanged(*(QString*)_a[1]); break; 196 case 2: textHeightChanged(*(QString*)_a[1]); break; 197 } 198 _id -= 3; 199 } 200 return _id; 201 } 202 203 #else 204 205 /**************************************************************************** 206 ** Meta object code from reading C++ file 'G4OpenGLQtExportDialog.hh' 207 ** 208 ** Created: Mon Dec 3 16:30:26 2007 209 ** by: The Qt Meta Object Compiler version 59 (Qt 4.3.0) 4 ** Created: Fri Dec 7 15:36:05 2007 5 ** by: The Qt Meta Object Compiler version 59 (Qt 4.2.2) 210 6 ** 211 7 ** WARNING! All changes made in this file will be lost! … … 216 12 #error "The header file 'G4OpenGLQtExportDialog.hh' doesn't include <QObject>." 217 13 #elif Q_MOC_OUTPUT_REVISION != 59 218 #error "This file was generated using the moc from 4. 3.0. It"14 #error "This file was generated using the moc from 4.2.2. It" 219 15 #error "cannot be used with the include files from this version of Qt." 220 16 #error "(The moc has changed too much.)" … … 259 55 if (!_clname) return 0; 260 56 if (!strcmp(_clname, qt_meta_stringdata_G4OpenGLQtExportDialog)) 261 return static_cast<void*>(const_cast< 57 return static_cast<void*>(const_cast<G4OpenGLQtExportDialog*>(this)); 262 58 return QDialog::qt_metacast(_clname); 263 59 } … … 278 74 return _id; 279 75 } 280 #endif281 #endif -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer_moc.cc
r632 r644 1 /****************************************************************************2 ** G4OpenGLQtViewer meta object code from reading C++ file 'G4OpenGLQtViewer.hh'3 **4 ** Created: Mon Nov 12 10:34:24 20075 ** by: The Qt MOC ($Id: G4OpenGLQtViewer_moc.cc,v 1.6 2007/11/30 14:47:30 lgarnier Exp $)6 **7 ** WARNING! All changes made in this file will be lost!8 *****************************************************************************/9 10 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER11 12 #undef QT_NO_COMPAT13 #include "../include/G4OpenGLQtViewer.hh"14 #include <qmetaobject.h>15 #include <qapplication.h>16 17 #if QT_VERSION < 0x04000018 19 #include <private/qucomextra_p.h>20 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)21 #error "This file was generated using the moc from 3.3.5. It"22 #error "cannot be used with the include files from this version of Qt."23 #error "(The moc has changed too much.)"24 #endif25 26 const char *G4OpenGLQtViewer::className() const27 {28 return "G4OpenGLQtViewer";29 }30 31 QMetaObject *G4OpenGLQtViewer::metaObj = 0;32 static QMetaObjectCleanUp cleanUp_G4OpenGLQtViewer( "G4OpenGLQtViewer", &G4OpenGLQtViewer::staticMetaObject );33 34 #ifndef QT_NO_TRANSLATION35 QString G4OpenGLQtViewer::tr( const char *s, const char *c )36 {37 if ( qApp )38 return qApp->translate( "G4OpenGLQtViewer", s, c, QApplication::DefaultCodec );39 else40 return QString::fromLatin1( s );41 }42 #ifndef QT_NO_TRANSLATION_UTF843 QString G4OpenGLQtViewer::trUtf8( const char *s, const char *c )44 {45 if ( qApp )46 return qApp->translate( "G4OpenGLQtViewer", s, c, QApplication::UnicodeUTF8 );47 else48 return QString::fromUtf8( s );49 }50 #endif // QT_NO_TRANSLATION_UTF851 52 #endif // QT_NO_TRANSLATION53 54 QMetaObject* G4OpenGLQtViewer::staticMetaObject()55 {56 if ( metaObj )57 return metaObj;58 QMetaObject* parentObject = QObject::staticMetaObject();59 static const QUMethod slot_0 = {"actionDrawingWireframe", 0, 0 };60 static const QUMethod slot_1 = {"actionDrawingLineRemoval", 0, 0 };61 static const QUMethod slot_2 = {"actionDrawingSurfaceRemoval", 0, 0 };62 static const QUMethod slot_3 = {"actionDrawingLineSurfaceRemoval", 0, 0 };63 static const QUMethod slot_4 = {"actionControlPanels", 0, 0 };64 static const QUMethod slot_5 = {"actionExitG4", 0, 0 };65 static const QUMethod slot_6 = {"actionCreateEPS", 0, 0 };66 static const QUParameter param_slot_7[] = {67 { 0, &static_QUType_int, 0, QUParameter::In }68 };69 static const QUMethod slot_7 = {"toggleDrawingAction", 1, param_slot_7 };70 static const QUParameter param_slot_8[] = {71 { 0, &static_QUType_bool, 0, QUParameter::In }72 };73 static const QUMethod slot_8 = {"toggleMouseAction", 1, param_slot_8 };74 static const QUParameter param_slot_9[] = {75 { 0, &static_QUType_bool, 0, QUParameter::In }76 };77 static const QUMethod slot_9 = {"toggleRepresentation", 1, param_slot_9 };78 static const QUParameter param_slot_10[] = {79 { 0, &static_QUType_bool, 0, QUParameter::In }80 };81 static const QUMethod slot_10 = {"toggleBackground", 1, param_slot_10 };82 static const QUParameter param_slot_11[] = {83 { 0, &static_QUType_bool, 0, QUParameter::In }84 };85 static const QUMethod slot_11 = {"toggleTransparency", 1, param_slot_11 };86 static const QUParameter param_slot_12[] = {87 { 0, &static_QUType_bool, 0, QUParameter::In }88 };89 static const QUMethod slot_12 = {"toggleAntialiasing", 1, param_slot_12 };90 static const QUParameter param_slot_13[] = {91 { 0, &static_QUType_bool, 0, QUParameter::In }92 };93 static const QUMethod slot_13 = {"toggleHaloing", 1, param_slot_13 };94 static const QUParameter param_slot_14[] = {95 { 0, &static_QUType_bool, 0, QUParameter::In }96 };97 static const QUMethod slot_14 = {"toggleAux", 1, param_slot_14 };98 static const QUParameter param_slot_15[] = {99 { 0, &static_QUType_bool, 0, QUParameter::In }100 };101 static const QUMethod slot_15 = {"toggleFullScreen", 1, param_slot_15 };102 static const QMetaData slot_tbl[] = {103 { "actionDrawingWireframe()", &slot_0, QMetaData::Private },104 { "actionDrawingLineRemoval()", &slot_1, QMetaData::Private },105 { "actionDrawingSurfaceRemoval()", &slot_2, QMetaData::Private },106 { "actionDrawingLineSurfaceRemoval()", &slot_3, QMetaData::Private },107 { "actionControlPanels()", &slot_4, QMetaData::Private },108 { "actionExitG4()", &slot_5, QMetaData::Private },109 { "actionCreateEPS()", &slot_6, QMetaData::Private },110 { "toggleDrawingAction(int)", &slot_7, QMetaData::Private },111 { "toggleMouseAction(bool)", &slot_8, QMetaData::Private },112 { "toggleRepresentation(bool)", &slot_9, QMetaData::Private },113 { "toggleBackground(bool)", &slot_10, QMetaData::Private },114 { "toggleTransparency(bool)", &slot_11, QMetaData::Private },115 { "toggleAntialiasing(bool)", &slot_12, QMetaData::Private },116 { "toggleHaloing(bool)", &slot_13, QMetaData::Private },117 { "toggleAux(bool)", &slot_14, QMetaData::Private },118 { "toggleFullScreen(bool)", &slot_15, QMetaData::Private }119 };120 metaObj = QMetaObject::new_metaobject(121 "G4OpenGLQtViewer", parentObject,122 slot_tbl, 16,123 0, 0,124 #ifndef QT_NO_PROPERTIES125 0, 0,126 0, 0,127 #endif // QT_NO_PROPERTIES128 0, 0 );129 cleanUp_G4OpenGLQtViewer.setMetaObject( metaObj );130 return metaObj;131 }132 133 void* G4OpenGLQtViewer::qt_cast( const char* clname )134 {135 if ( !qstrcmp( clname, "G4OpenGLQtViewer" ) )136 return this;137 if ( !qstrcmp( clname, "G4OpenGLViewer" ) )138 return (G4OpenGLViewer*)this;139 return QObject::qt_cast( clname );140 }141 142 bool G4OpenGLQtViewer::qt_invoke( int _id, QUObject* _o )143 {144 switch ( _id - staticMetaObject()->slotOffset() ) {145 case 0: actionDrawingWireframe(); break;146 case 1: actionDrawingLineRemoval(); break;147 case 2: actionDrawingSurfaceRemoval(); break;148 case 3: actionDrawingLineSurfaceRemoval(); break;149 case 4: actionControlPanels(); break;150 case 5: actionExitG4(); break;151 case 6: actionCreateEPS(); break;152 case 7: toggleDrawingAction((int)static_QUType_int.get(_o+1)); break;153 case 8: toggleMouseAction((bool)static_QUType_bool.get(_o+1)); break;154 case 9: toggleRepresentation((bool)static_QUType_bool.get(_o+1)); break;155 case 10: toggleBackground((bool)static_QUType_bool.get(_o+1)); break;156 case 11: toggleTransparency((bool)static_QUType_bool.get(_o+1)); break;157 case 12: toggleAntialiasing((bool)static_QUType_bool.get(_o+1)); break;158 case 13: toggleHaloing((bool)static_QUType_bool.get(_o+1)); break;159 case 14: toggleAux((bool)static_QUType_bool.get(_o+1)); break;160 case 15: toggleFullScreen((bool)static_QUType_bool.get(_o+1)); break;161 default:162 return QObject::qt_invoke( _id, _o );163 }164 return TRUE;165 }166 167 bool G4OpenGLQtViewer::qt_emit( int _id, QUObject* _o )168 {169 return QObject::qt_emit(_id,_o);170 }171 #ifndef QT_NO_PROPERTIES172 173 bool G4OpenGLQtViewer::qt_property( int id, int f, QVariant* v)174 {175 return QObject::qt_property( id, f, v);176 }177 178 bool G4OpenGLQtViewer::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }179 #endif // QT_NO_PROPERTIES180 181 #endif182 183 #endif184 185 186 187 #if QT_VERSION >= 0x040000188 #if QT_VERSION < 0x040200189 1 /**************************************************************************** 190 2 ** Meta object code from reading C++ file 'G4OpenGLQtViewer.hh' 191 3 ** 192 ** Created: jeu. 22. nov. 11:59:31 2007 193 ** by: The Qt Meta Object Compiler version 58 (Qt 4.0.1) 194 ** 195 ** WARNING! All changes made in this file will be lost! 196 *****************************************************************************/ 197 198 #include "../include/G4OpenGLQtViewer.hh" 199 #if !defined(Q_MOC_OUTPUT_REVISION) 200 #error "The header file 'G4OpenGLQtViewer.hh' doesn't include <QObject>." 201 #elif Q_MOC_OUTPUT_REVISION != 58 202 #error "This file was generated using the moc from 4.0.1. It" 203 #error "cannot be used with the include files from this version of Qt." 204 #error "(The moc has changed too much.)" 205 #endif 206 207 static const uint qt_meta_data_G4OpenGLQtViewer[] = { 208 209 // content: 210 1, // revision 211 0, // classname 212 0, 0, // classinfo 213 17, 10, // methods 214 0, 0, // properties 215 0, 0, // enums/sets 216 217 // slots: signature, parameters, type, tag, flags 218 18, 17, 17, 17, 0x08, 219 43, 17, 17, 17, 0x08, 220 70, 17, 17, 17, 0x08, 221 100, 17, 17, 17, 0x08, 222 134, 17, 17, 17, 0x08, 223 156, 17, 17, 17, 0x08, 224 171, 17, 17, 17, 0x08, 225 189, 17, 17, 17, 0x08, 226 214, 17, 17, 17, 0x08, 227 238, 17, 17, 17, 0x08, 228 265, 17, 17, 17, 0x08, 229 288, 17, 17, 17, 0x08, 230 313, 17, 17, 17, 0x08, 231 338, 17, 17, 17, 0x08, 232 358, 17, 17, 17, 0x08, 233 374, 17, 17, 17, 0x08, 234 397, 17, 17, 17, 0x08, 235 236 0 // eod 237 }; 238 239 static const char qt_meta_stringdata_G4OpenGLQtViewer[] = { 240 "G4OpenGLQtViewer\0\0actionDrawingWireframe()\0" 241 "actionDrawingLineRemoval()\0actionDrawingSurfaceRemoval()\0" 242 "actionDrawingLineSurfaceRemoval()\0actionControlPanels()\0" 243 "actionExitG4()\0actionCreateEPS()\0toggleDrawingAction(int)\0" 244 "toggleMouseAction(bool)\0toggleRepresentation(bool)\0" 245 "toggleBackground(bool)\0toggleTransparency(bool)\0" 246 "toggleAntialiasing(bool)\0toggleHaloing(bool)\0toggleAux(bool)\0" 247 "toggleFullScreen(bool)\0dialogClosed()\0" 248 }; 249 250 const QMetaObject G4OpenGLQtViewer::staticMetaObject = { 251 { &QObject::staticMetaObject, qt_meta_stringdata_G4OpenGLQtViewer, 252 qt_meta_data_G4OpenGLQtViewer, 0 } 253 }; 254 255 const QMetaObject *G4OpenGLQtViewer::metaObject() const 256 { 257 return &staticMetaObject; 258 } 259 260 void *G4OpenGLQtViewer::qt_metacast(const char *_clname) 261 { 262 if (!_clname) return 0; 263 if (!strcmp(_clname, qt_meta_stringdata_G4OpenGLQtViewer)) 264 return static_cast<void*>(const_cast<G4OpenGLQtViewer*>(this)); 265 if (!strcmp(_clname, "G4OpenGLViewer")) 266 return static_cast<G4OpenGLViewer*>(const_cast<G4OpenGLQtViewer*>(this)); 267 return QObject::qt_metacast(_clname); 268 } 269 270 int G4OpenGLQtViewer::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 271 { 272 _id = QObject::qt_metacall(_c, _id, _a); 273 if (_id < 0) 274 return _id; 275 if (_c == QMetaObject::InvokeMetaMethod) { 276 switch (_id) { 277 case 0: actionDrawingWireframe(); break; 278 case 1: actionDrawingLineRemoval(); break; 279 case 2: actionDrawingSurfaceRemoval(); break; 280 case 3: actionDrawingLineSurfaceRemoval(); break; 281 case 4: actionControlPanels(); break; 282 case 5: actionExitG4(); break; 283 case 6: actionCreateEPS(); break; 284 case 7: toggleDrawingAction(*(int*)_a[1]); break; 285 case 8: toggleMouseAction(*(bool*)_a[1]); break; 286 case 9: toggleRepresentation(*(bool*)_a[1]); break; 287 case 10: toggleBackground(*(bool*)_a[1]); break; 288 case 11: toggleTransparency(*(bool*)_a[1]); break; 289 case 12: toggleAntialiasing(*(bool*)_a[1]); break; 290 case 13: toggleHaloing(*(bool*)_a[1]); break; 291 case 14: toggleAux(*(bool*)_a[1]); break; 292 case 15: toggleFullScreen(*(bool*)_a[1]); break; 293 case 16: dialogClosed(); break; 294 } 295 _id -= 17; 296 } 297 return _id; 298 } 299 300 301 #else 302 /**************************************************************************** 303 ** Meta object code from reading C++ file 'G4OpenGLQtViewer.hh' 304 ** 305 ** Created: Tue Sep 18 17:43:43 2007 4 ** Created: Fri Dec 7 15:36:04 2007 306 5 ** by: The Qt Meta Object Compiler version 59 (Qt 4.2.2) 307 6 ** … … 324 23 0, // classname 325 24 0, 0, // classinfo 326 1 7, 10, // methods25 16, 10, // methods 327 26 0, 0, // properties 328 27 0, 0, // enums/sets … … 345 44 358, 42, 42, 42, 0x08, 346 45 374, 42, 42, 42, 0x08, 347 397, 42, 42, 42, 0x08,348 46 349 47 0 // eod … … 362 60 "toggleAntialiasing(bool)\0toggleHaloing(bool)\0" 363 61 "toggleAux(bool)\0toggleFullScreen(bool)\0" 364 "dialogClosed()\0"365 62 }; 366 63 … … 408 105 case 14: toggleAux((*reinterpret_cast< bool(*)>(_a[1]))); break; 409 106 case 15: toggleFullScreen((*reinterpret_cast< bool(*)>(_a[1]))); break; 410 case 16: dialogClosed(); break;411 107 } 412 _id -= 1 7;108 _id -= 16; 413 109 } 414 110 return _id; 415 111 } 416 #endif417 #endif
Note: See TracChangeset
for help on using the changeset viewer.