Changeset 568 for trunk/geant4/visualization/OpenGL/src
- Timestamp:
- Aug 16, 2007, 3:27:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r566 r568 276 276 QAction *controlPanels = mActions->addAction("Control panels"); 277 277 QAction *exitG4 = mActions->addAction("Exit to G4Vis >"); 278 QAction *createEPS = mActions->addAction(" Create .eps file");278 QAction *createEPS = mActions->addAction("Save as ..."); 279 279 QObject ::connect(controlPanels, 280 280 SIGNAL(triggered()), … … 619 619 void G4OpenGLQtViewer::actionCreateEPS() { 620 620 QString nomFich = QFileDialog::getSaveFileName(GLWindow, 621 "Cho isir un fichier",621 "Choose a file", 622 622 ".", "Images (*.BMP *.GIF *.JPG *.JPEG *.PNG *.PBM *.PGM *.PPM *.TIFF *.XBM *.XPM)" ); 623 623 624 fWindow->grabFrameBuffer().save(nomFich); 624 if(!nomFich.endsWith(".eps")) { 625 printf("G4OpenGLQtViewer::actionCreateEPS() COULD NOT GENERATE EPS FOR THE MOMENT\n"); 626 } else { 627 fWindow->grabFrameBuffer().save(nomFich); 628 } 625 629 printf("G4OpenGLQtViewer::actionCreateEPS() \n"); 626 630 } … … 731 735 } 732 736 737 733 738 #endif
Note: See TracChangeset
for help on using the changeset viewer.