Ignore:
Timestamp:
Dec 5, 2007, 7:02:02 PM (17 years ago)
Author:
garnier
Message:

amelioration du ticket #66

File:
1 edited

Legend:

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

    r638 r639  
    5151 QWidget* parent
    5252,QString nomFich
     53,QString format
    5354 ,int aHeight
    5455 ,int aWidth
     
    7576
    7677 
    77   if (nomFich.endsWith(".jpg") ||
    78       nomFich.endsWith(".jpeg")) {
     78  if ((format == "jpg") ||
     79      (format == "jpeg")) {
    7980   
    8081    QGroupBox *imageGroupBox = new QGroupBox(tr("Image quality"),this);
     
    114115  // This is not working for PS and PDF images, it does nothing.
    115116  // Image is staying in color mode
    116   //  if ((nomFich.endsWith(".ps")) || (nomFich.endsWith(".pdf")) || (nomFich.endsWith(".eps"))) {
    117   if ((nomFich.endsWith(".eps"))) {
    118 
     117  //  if ((format == "ps") || (format == "pdf") || (format == "eps")) {
     118
     119 if (format == ".eps") {
    119120
    120121    QWidget * EPSWidgetGroupBox; // widget containing group button
     
    157158  // Not implented. Should deal with alpha channel
    158159
    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")) {
     160//   if((format == "tif") ||
     161//      (format == "tiff") ||
     162//      (format == "jpg") ||
     163//      (format == "jpeg") ||
     164//      (format == "png") ||
     165//      (format == "xpm")) {
    165166
    166167//     QGroupBox *transparencyGroupBox = new QGroupBox(tr("Transparency"),this);
     
    186187  QButtonGroup * sizeButtonGroupBox; // group button
    187188  QLayout *sizeGroupBoxLayout;
     189
    188190#if QT_VERSION < 0x040000
    189191  sizeButtonGroupBox = new QButtonGroup ( 2,Qt::Vertical, tr("Size"),this);
Note: See TracChangeset for help on using the changeset viewer.