Changeset 638


Ignore:
Timestamp:
Dec 5, 2007, 3:47:18 PM (17 years ago)
Author:
garnier
Message:

amelioration du ticket #66

Location:
trunk/geant4/visualization/OpenGL/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc

    r637 r638  
    117117  if ((nomFich.endsWith(".eps"))) {
    118118
    119     //    transparencyEPS = new QCheckBox( "transparencyEPS" );
    120     //    transparencyEPS->setText( "save background" );
    121     //    transparencyEPS->setChecked( true );
    122119
    123120    QWidget * EPSWidgetGroupBox; // widget containing group button
     
    153150    colorButton->setChecked( true );
    154151
    155     //    EPSGroupBoxLayout->addWidget(transparencyEPS);   
    156152    globalVLayout->addWidget(EPSWidgetGroupBox);
    157153
    158154  }
    159155
    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//   }
    181179
    182180  // size box
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r637 r638  
    113113  glFlush ();
    114114  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;
    116116  } else {
    117117#if QT_VERSION < 0x040000
     
    698698{
    699699  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;
    701701  } else {
    702702 
     
    10081008  GLWindow->setWindowState(GLWindow->windowState() ^ Qt::WindowFullScreen);
    10091009#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;
    10111011#endif
    10121012#ifdef GEANT4_QT_DEBUG
     
    10981098    if ((exportDialog->getWidth() !=fWindow->width()) ||
    10991099        (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;
    11011101     
    11021102      //    rescaleImage(exportDialog->getWidth(),exportDialog->getHeight());// re-scale image
     
    11291129               nomFich.endsWith(".jpeg") ||
    11301130               nomFich.endsWith(".png") ||
     1131               nomFich.endsWith(".ppm") ||
    11311132               nomFich.endsWith(".bmp") ||
     1133               nomFich.endsWith(".xbm") ||
    11321134               nomFich.endsWith(".xpm")) {
    11331135      bool res = image.save(nomFich,0,exportDialog->getSliderValue());
    11341136      if (res == false) {
    1135         G4cerr << "Error while saving file..." << G4endl;
     1137        G4cerr << "Error while saving file...\n" << G4endl;
    11361138      }
    11371139#ifdef GEANT4_QT_DEBUG
     
    11391141#endif
    11401142    } 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;
    11421144    }
    11431145   
     
    14161418  } else {
    14171419#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;
    14191421#else
    14201422    bool alpha = aImage.hasAlphaChannel();
     
    14631465)
    14641466{
     1467
    14651468#if QT_VERSION < 0x040000
    14661469#ifdef Q_WS_MAC || Q_WS_X11
     
    14861489  paint.end();
    14871490#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;
    14891492#endif
    14901493#else
Note: See TracChangeset for help on using the changeset viewer.