Changeset 610 for trunk/geant4/visualization/OpenGL
- Timestamp:
- Nov 22, 2007, 6:07:00 PM (17 years ago)
- Location:
- trunk/geant4/visualization/OpenGL
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/History
r609 r610 1 $Id: History,v 1.10 0 2007/11/16 10:41:54lgarnier Exp $1 $Id: History,v 1.101 2007/11/16 11:15:43 lgarnier Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 21 21 ------------------------------------- 22 22 23 <<<<<<< History 23 15th November 2007 John Allison (opengl-V09-00-03) 24 - Re-introduced Qt files, now properly protected by cpp flags. 25 - cpp flags also added to some other files not previously properly protected. 26 24 27 15 Nov 2007, Laurent Garnier 25 28 - G4UIQt,G4Qt : Adding a GEANT4_QT_DEBUG flag to hide all debug messages … … 33 36 Adding protection for Qt version between 4.0 and 4.2 34 37 38 13th November 2007 John Allison (opengl-V09-00-02) 39 - Removed Qt files from tag. File are still at head - need fixing. 40 35 41 13 Nov 2007, Laurent Garnier 36 42 - G4UIQt,G4Qt : Moving all moc in one big file interface/G4UIQT_moc.cc, 37 43 including Qt3 and Qt4 moc support 44 45 10th November 2007 John Allison (opengl-V09-00-01) 46 - Moved WinSize_x, y to base class G4OpenGLViewer. 47 - Minor improvement in guidance for /vis/ogl/printEPS. 38 48 39 49 09 Nov 2007, Laurent Garnier … … 55 65 - moc_G4OpenGLQtViewer.cc 56 66 57 =======58 15th November 2007 John Allison (opengl-V09-00-03)59 - Re-introduced Qt files, now properly protected by cpp flags.60 - cpp flags also added to some other files not previously properly protected.61 62 13th November 2007 John Allison (opengl-V09-00-02)63 - Removed Qt files from tag. File are still at head - need fixing.64 65 10th November 2007 John Allison (opengl-V09-00-01)66 - Moved WinSize_x, y to base class G4OpenGLViewer.67 - Minor improvement in guidance for /vis/ogl/printEPS.68 69 67 28th September 2007 lgarnier 70 68 - first import of G4UI Qt files : Do not try to compil them 71 69 72 >>>>>>> 1.9973 70 21st August 2007 John Allison (opengl-V09-00-00) 74 71 - Removed redundant G4OpenGLXViewerMessenger. -
trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh
r606 r610 132 132 void toggleFullScreen(bool); 133 133 134 void dialogClosed();135 134 }; 136 135 -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r608 r610 36 36 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER 37 37 38 #define GEANT4_QT_DEBUG 39 38 40 #include "G4OpenGLQtViewer.hh" 39 41 … … 194 196 } 195 197 #endif 198 // FIXME : not tested in Qt4 199 glWidget->reparent(GLWindow,0,QPoint(0,0)); 196 200 197 201 if (found==false) { … … 224 228 GLWindow->resize(300, 300); 225 229 GLWindow->move(900,300); 230 #ifdef GEANT4_QT_DEBUG 231 printf("G4OpenGLQtViewer::Should show glWidget\n"); 232 #endif 226 233 GLWindow->show(); 227 234 … … 229 236 // GLWindow->setAttribute(Qt::WA_DeleteOnClose); 230 237 238 #if QT_VERSION >= 0x040000 231 239 QObject ::connect(GLWindow, 232 240 SIGNAL(rejected()), 233 241 this, 234 242 SLOT(dialogClosed())); 243 #endif 235 244 236 245 WinSize_x = 400; … … 251 260 } 252 261 262 #if QT_VERSION >= 0x040000 253 263 /** Close the dialog and set the pointer to NULL 254 264 */ 255 265 void G4OpenGLQtViewer::dialogClosed() { 256 GLWindow = NULL; 257 } 258 266 #ifdef GEANT4_QT_DEBUG 267 printf("G4OpenGLQtViewer::dialogClosed END\n"); 268 #endif 269 // GLWindow = NULL; 270 } 271 #endif 259 272 260 273 ////////////////////////////////////////////////////////////////////////////// … … 340 353 341 354 QMenu *mRepresentation = mStyle->addMenu("&Representation"); 342 355 QAction *polyhedron = mRepresentation->addAction("Polyhedron"); 343 356 QAction *nurbs = mRepresentation->addAction("NURBS"); 344 357 #endif … … 362 375 fDrawingWireframe = new QPopupMenu(mDrawing); 363 376 mDrawing->insertItem("&Wireframe",fDrawingWireframe); 377 #ifdef GEANT4_QT_DEBUG 378 printf("G4OpenGLQtViewer:: fDrawingWireframe creation\n"); 379 #endif 364 380 365 381 mDrawing->setCheckable(true); … … 410 426 mDrawing->clear(); 411 427 } 428 #ifdef GEANT4_QT_DEBUG 429 printf("G4OpenGLQtViewer:: fDrawingWireframe 1\n"); 430 #endif 431 QObject ::connect(fDrawingWireframe, 432 SIGNAL(activated(int)), 433 this, 434 SLOT(actionDrawingWireframe())); 435 #ifdef GEANT4_QT_DEBUG 436 printf("G4OpenGLQtViewer:: fDrawingWireframe 2\n"); 437 #endif 438 QObject ::connect(fDrawingLineRemoval, 439 SIGNAL(activated(int)), 440 this, 441 SLOT(actionDrawingLineRemoval())); 442 QObject ::connect(fDrawingSurfaceRemoval, 443 SIGNAL(activated(int)), 444 this, 445 SLOT(actionDrawingSurfaceRemoval())); 446 QObject ::connect(fDrawingLineSurfaceRemoval, 447 SIGNAL(activated(int)), 448 this, 449 SLOT(actionDrawingLineSurfaceRemoval())); 412 450 #else 413 451 if (d_style == G4ViewParameters::wireframe) { … … 422 460 mDrawing->clear(); 423 461 } 424 #endif425 426 462 QObject ::connect(fDrawingWireframe, 427 463 SIGNAL(triggered(bool)), … … 440 476 this, 441 477 SLOT(actionDrawingLineSurfaceRemoval())); 478 #endif 479 442 480 443 481 … … 477 515 exitG4->addTo(mActions); 478 516 createEPS->addTo(mActions); 517 QObject ::connect(controlPanels, 518 SIGNAL(activated()), 519 this, 520 SLOT(actionControlPanels())); 521 QObject ::connect(exitG4, 522 SIGNAL(activated()), 523 this, 524 SLOT(actionExitG4())); 525 QObject ::connect(createEPS, 526 SIGNAL(activated()), 527 this, 528 SLOT(actionCreateEPS())); 479 529 480 530 #else … … 484 534 QAction *exitG4 = mActions->addAction("Exit to G4Vis >"); 485 535 QAction *createEPS = mActions->addAction("Save as ..."); 486 #endif487 488 536 QObject ::connect(controlPanels, 489 537 SIGNAL(triggered()), … … 498 546 this, 499 547 SLOT(actionCreateEPS())); 548 #endif 549 500 550 501 551 … … 653 703 ((QPopupMenu*)action1->parent())->setItemChecked(1,true); 654 704 655 QObject ::connect(action1, SIGNAL(triggered(bool)),action2, SLOT(toggle())); 656 QObject ::connect(action2, SIGNAL(triggered(bool)),action1, SLOT(toggle())); 705 //FIXME : Should not work on Qt3 706 QObject ::connect(action1, SIGNAL(activated()),action2, SLOT(toggle())); 707 QObject ::connect(action2, SIGNAL(activated()),action1, SLOT(toggle())); 657 708 658 709 QObject ::connect(action1, SIGNAL(toggled(bool)),this, method.c_str()); -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer_moc.cc
r607 r610 100 100 }; 101 101 static const QUMethod slot_15 = {"toggleFullScreen", 1, param_slot_15 }; 102 static const QUMethod slot_16 = {"dialogClosed", 0, 0 };103 102 static const QMetaData slot_tbl[] = { 104 103 { "actionDrawingWireframe()", &slot_0, QMetaData::Private }, … … 117 116 { "toggleHaloing(bool)", &slot_13, QMetaData::Private }, 118 117 { "toggleAux(bool)", &slot_14, QMetaData::Private }, 119 { "toggleFullScreen(bool)", &slot_15, QMetaData::Private }, 120 { "dialogClosed()", &slot_16, QMetaData::Private } 118 { "toggleFullScreen(bool)", &slot_15, QMetaData::Private } 121 119 }; 122 120 metaObj = QMetaObject::new_metaobject( 123 121 "G4OpenGLQtViewer", parentObject, 124 slot_tbl, 1 7,122 slot_tbl, 16, 125 123 0, 0, 126 124 #ifndef QT_NO_PROPERTIES … … 161 159 case 14: toggleAux((bool)static_QUType_bool.get(_o+1)); break; 162 160 case 15: toggleFullScreen((bool)static_QUType_bool.get(_o+1)); break; 163 case 16: dialogClosed(); break;164 161 default: 165 162 return QObject::qt_invoke( _id, _o ); -
trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredQt.cc
r608 r610 32 32 33 33 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER 34 35 #define GEANT4_QT_DEBUG 34 36 35 37 #include "G4VisFeaturesOfOpenGL.hh" -
trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc
r608 r610 34 34 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER 35 35 36 #define GEANT4_QT_DEBUG 37 36 38 #include "G4OpenGLStoredQtViewer.hh" 37 39 #include "G4VisManager.hh" … … 127 129 #ifdef GEANT4_QT_DEBUG 128 130 printf("G4OpenGLStoredQtViewer::DrawView %d %d VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV\n",WinSize_x, WinSize_y); 129 printf("G4OpenGLStoredQtViewer::DrawView Dialog adress : %d\n",GLWindow);130 131 #endif 131 132 G4ViewParameters::DrawingStyle style = GetViewParameters().GetDrawingStyle();
Note: See TracChangeset
for help on using the changeset viewer.