Ignore:
Timestamp:
Dec 4, 2007, 6:46:23 PM (17 years ago)
Author:
garnier
Message:

modif pour les formats d export

File:
1 edited

Legend:

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

    r633 r635  
    8080    QGroupBox *imageGroupBox = new QGroupBox(tr("Image quality"),this);
    8181    QVBoxLayout *imageGroupBoxLayout = new QVBoxLayout(imageGroupBox);
    82     QWidget *sliderBox = new QWidget;
    83 
    84     QHBoxLayout *hSlider = new QHBoxLayout(sliderBox);
     82    QWidget *sliderBox = new QWidget();
     83
     84    QHBoxLayout *hSliderLayout = new QHBoxLayout(sliderBox);
    8585
    8686    //    qualityLabel =  new QLabel( tr( "Image quality" ) );
    8787    //    imageGroupBoxLayout->addWidget(qualityLabel);
    88     qualitySlider= new QSlider(Qt::Horizontal,this);
     88    qualitySlider= new QSlider(Qt::Horizontal,sliderBox);
    8989#if QT_VERSION < 0x040000
    9090    qualitySlider->setMinValue(0);
     
    9797#endif
    9898    qualitySlider->setValue(60);
    99     hSlider->addWidget(new QLabel("low",this));
    100     hSlider->addWidget(qualitySlider);
    101     hSlider->addWidget(new QLabel("Maximum",this));
    102 #if QT_VERSION >= 0x040000
    103     sliderBox->setLayout(hSlider);
     99    hSliderLayout->addWidget(new QLabel("low",sliderBox));
     100    hSliderLayout->addWidget(qualitySlider);
     101    hSliderLayout->addWidget(new QLabel("Maximum",sliderBox));
     102#if QT_VERSION >= 0x040000
     103    sliderBox->setLayout(hSliderLayout);
    104104#endif
    105105    imageGroupBoxLayout->addWidget(sliderBox);
     
    117117    //    transparencyEPS->setChecked( true );
    118118
    119     colorButton = new QRadioButton("Color",this);
    120     BWButton = new QRadioButton("Grayscale",this);
    121 
    122119    QWidget * EPSWidgetGroupBox; // widget containing group button
    123120    QButtonGroup * EPSButtonGroupBox; // group button
    124 #if QT_VERSION < 0x040000
     121
     122
     123#if QT_VERSION < 0x040000
     124    colorButton = new QRadioButton("Color",EPSWidgetGroupBox);
     125    BWButton = new QRadioButton("Grayscale",EPSWidgetGroupBox);
    125126    EPSButtonGroupBox = new QButtonGroup( 2,Qt::Vertical, tr("EPS options"),this);
    126127    EPSButtonGroupBox->insert(colorButton);
    127128    EPSButtonGroupBox->insert(BWButton);
    128129    EPSButtonGroupBox->setExclusive(true);
    129     colorButton->setChecked( true );
    130130    EPSWidgetGroupBox = EPSButtonGroupBox;
    131131
     
    133133    EPSWidgetGroupBox = new QGroupBox(tr("EPS options"));
    134134    QVBoxLayout *EPSGroupBoxLayout = new QVBoxLayout(EPSWidgetGroupBox);
     135
     136    colorButton = new QRadioButton("Color",EPSWidgetGroupBox);
     137    BWButton = new QRadioButton("Grayscale",EPSWidgetGroupBox);
     138
    135139    EPSButtonGroupBox = new QButtonGroup();
    136     colorButton->setChecked( true );
    137140    EPSButtonGroupBox->addButton(colorButton);
    138141    EPSButtonGroupBox->addButton(BWButton);
     
    144147
    145148#endif
     149    colorButton->setChecked( true );
    146150
    147151    //    EPSGroupBoxLayout->addWidget(transparencyEPS);   
     
    159163    QVBoxLayout *transparencyGroupBoxLayout = new QVBoxLayout(transparencyGroupBox);
    160164
    161     boxTransparency = new QCheckBox("Save transparency",this);
     165    boxTransparency = new QCheckBox("Save transparency",transparencyGroupBox);
    162166    boxTransparency->setChecked( false );
    163167    //    boxTransparency->setEnabled(false);
     
    172176
    173177  // size box
    174   QWidget* modifyAndRatioWidget = new QWidget;
     178  QWidget* modifyAndRatioWidget = new QWidget();
    175179
    176180  QHBoxLayout *modifyAndRatioLayout = new QHBoxLayout(modifyAndRatioWidget);
    177 
    178   // original button
    179   original = new QRadioButton("Original",this);
    180   // modify and ratio
    181   modify = new QRadioButton("Modify",this);
    182181
    183182  QWidget * sizeWidgetGroupBox; // widget containing group button
     
    193192  sizeButtonGroupBox->insert(modify);
    194193  sizeButtonGroupBox->setExclusive(true);
    195   original->setChecked( true );
    196194  sizeWidgetGroupBox = sizeButtonGroupBox;
    197195  sizeGroupBoxLayout = sizeWidgetGroupBox->layout();
     
    202200  sizeGroupBoxLayout = new QVBoxLayout(sizeWidgetGroupBox);
    203201  sizeButtonGroupBox = new QButtonGroup();
    204   original->setChecked( true );
    205202
    206203  original = new QRadioButton("Original");
     
    216213  sizeWidgetGroupBox->setLayout(sizeGroupBoxLayout);
    217214#endif
     215  original->setChecked( true );
    218216
    219217
     
    244242
    245243  // height
    246   heightWidget = new QWidget;
     244  heightWidget = new QWidget();
    247245
    248246  QHBoxLayout *heightLineLayout = new QHBoxLayout(heightWidget);
     
    250248  QString tmp;
    251249 
    252   heightLineLayout->addWidget(new QLabel("Height",this));
    253   height = new QLineEdit(tmp.setNum(originalHeight),this);
     250  heightLineLayout->addWidget(new QLabel("Height",heightWidget));
     251  height = new QLineEdit(tmp.setNum(originalHeight),heightWidget);
    254252  height->setMaxLength(5);
    255253#if QT_VERSION < 0x040000
     
    270268
    271269  // width
    272   widthWidget = new QWidget;
     270  widthWidget = new QWidget();
    273271
    274272  QHBoxLayout *widthLineLayout = new QHBoxLayout(widthWidget);
     
    279277  widthLineLayout->addWidget(new QLabel("Width ",widthWidget));
    280278#endif
    281   width = new QLineEdit(tmp.setNum(originalWidth),this);
     279  width = new QLineEdit(tmp.setNum(originalWidth),widthWidget);
    282280  width->setMaxLength(5);
    283281#if QT_VERSION < 0x040000
Note: See TracChangeset for help on using the changeset viewer.