Changeset 638 for trunk/geant4/visualization
- Timestamp:
- Dec 5, 2007, 3:47:18 PM (17 years ago)
- Location:
- trunk/geant4/visualization/OpenGL/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc
r637 r638 117 117 if ((nomFich.endsWith(".eps"))) { 118 118 119 // transparencyEPS = new QCheckBox( "transparencyEPS" );120 // transparencyEPS->setText( "save background" );121 // transparencyEPS->setChecked( true );122 119 123 120 QWidget * EPSWidgetGroupBox; // widget containing group button … … 153 150 colorButton->setChecked( true ); 154 151 155 // EPSGroupBoxLayout->addWidget(transparencyEPS);156 152 globalVLayout->addWidget(EPSWidgetGroupBox); 157 153 158 154 } 159 155 160 if(nomFich.endsWith(".tif") || 161 nomFich.endsWith(".tiff") || 162 nomFich.endsWith(".jpg") || 163 nomFich.endsWith(".jpeg") || 164 nomFich.endsWith(".png") || 165 nomFich.endsWith(".xpm")) { 166 167 QGroupBox *transparencyGroupBox = new QGroupBox(tr("Transparency"),this); 168 QVBoxLayout *transparencyGroupBoxLayout = new QVBoxLayout(transparencyGroupBox); 169 170 boxTransparency = new QCheckBox("Save transparency",transparencyGroupBox); 171 boxTransparency->setChecked( false ); 172 // boxTransparency->setEnabled(false); 173 174 transparencyGroupBoxLayout->addWidget(boxTransparency); 175 #if QT_VERSION >= 0x040000 176 transparencyGroupBox->setLayout(transparencyGroupBoxLayout); 177 #endif 178 globalVLayout->addWidget(transparencyGroupBox); 179 180 } 156 // FIXME : L. Garnier 4/12/07 157 // Not implented. Should deal with alpha channel 158 159 // if(nomFich.endsWith(".tif") || 160 // nomFich.endsWith(".tiff") || 161 // nomFich.endsWith(".jpg") || 162 // nomFich.endsWith(".jpeg") || 163 // nomFich.endsWith(".png") || 164 // nomFich.endsWith(".xpm")) { 165 166 // QGroupBox *transparencyGroupBox = new QGroupBox(tr("Transparency"),this); 167 // QVBoxLayout *transparencyGroupBoxLayout = new QVBoxLayout(transparencyGroupBox); 168 169 // boxTransparency = new QCheckBox("Save transparency",transparencyGroupBox); 170 // boxTransparency->setChecked( false ); 171 172 // transparencyGroupBoxLayout->addWidget(boxTransparency); 173 // #if QT_VERSION >= 0x040000 174 // transparencyGroupBox->setLayout(transparencyGroupBoxLayout); 175 // #endif 176 // globalVLayout->addWidget(transparencyGroupBox); 177 178 // } 181 179 182 180 // size box -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r637 r638 113 113 glFlush (); 114 114 if (!GLWindow) { 115 G4cerr << "Visualization window not defined, please choose one before " << G4endl;115 G4cerr << "Visualization window not defined, please choose one before\n" << G4endl; 116 116 } else { 117 117 #if QT_VERSION < 0x040000 … … 698 698 { 699 699 if (!GLWindow) { 700 G4cerr << "Visualization window not defined, please choose one before " << G4endl;700 G4cerr << "Visualization window not defined, please choose one before\n" << G4endl; 701 701 } else { 702 702 … … 1008 1008 GLWindow->setWindowState(GLWindow->windowState() ^ Qt::WindowFullScreen); 1009 1009 #else 1010 G4cerr << "This version of G4UI Could not generate the selected format " << G4endl;1010 G4cerr << "This version of G4UI Could not generate the selected format\n" << G4endl; 1011 1011 #endif 1012 1012 #ifdef GEANT4_QT_DEBUG … … 1098 1098 if ((exportDialog->getWidth() !=fWindow->width()) || 1099 1099 (exportDialog->getHeight() !=fWindow->height())) { 1100 G4cerr << "Export->Change Size : This function is not implemented, to export in another size, please resize your frame to what you need " << G4endl;1100 G4cerr << "Export->Change Size : This function is not implemented, to export in another size, please resize your frame to what you need\n" << G4endl; 1101 1101 1102 1102 // rescaleImage(exportDialog->getWidth(),exportDialog->getHeight());// re-scale image … … 1129 1129 nomFich.endsWith(".jpeg") || 1130 1130 nomFich.endsWith(".png") || 1131 nomFich.endsWith(".ppm") || 1131 1132 nomFich.endsWith(".bmp") || 1133 nomFich.endsWith(".xbm") || 1132 1134 nomFich.endsWith(".xpm")) { 1133 1135 bool res = image.save(nomFich,0,exportDialog->getSliderValue()); 1134 1136 if (res == false) { 1135 G4cerr << "Error while saving file... " << G4endl;1137 G4cerr << "Error while saving file...\n" << G4endl; 1136 1138 } 1137 1139 #ifdef GEANT4_QT_DEBUG … … 1139 1141 #endif 1140 1142 } else { 1141 G4cerr << "This version of G4UI Could not generate the selected format " << G4endl;1143 G4cerr << "This version of G4UI Could not generate the selected format\n" << G4endl; 1142 1144 } 1143 1145 … … 1416 1418 } else { 1417 1419 #if QT_VERSION < 0x040000 1418 G4cerr << "GenerateEPS:: No alpha channel image with Qt3. This is only supported with Qt4 " << G4endl;1420 G4cerr << "GenerateEPS:: No alpha channel image with Qt3. This is only supported with Qt4\n" << G4endl; 1419 1421 #else 1420 1422 bool alpha = aImage.hasAlphaChannel(); … … 1463 1465 ) 1464 1466 { 1467 1465 1468 #if QT_VERSION < 0x040000 1466 1469 #ifdef Q_WS_MAC || Q_WS_X11 … … 1486 1489 paint.end(); 1487 1490 #else 1488 G4cerr << "This fonction is only supported on Mac OsX or X11 with Qt3. Full platform supported with Qt4 " << G4endl;1491 G4cerr << "This fonction is only supported on Mac OsX or X11 with Qt3. Full platform supported with Qt4\n" << G4endl; 1489 1492 #endif 1490 1493 #else
Note: See TracChangeset
for help on using the changeset viewer.