Ignore:
Timestamp:
Mar 4, 2008, 5:27:31 PM (16 years ago)
Author:
garnier
Message:

on avance

File:
1 edited

Legend:

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

    r734 r735  
    103103  encoderVGroupBoxLayout->add(encoderHBox);
    104104  encoderVGroupBoxLayout->add(fEncoderStatus);
     105
     106  globalVLayout->add(encoderGroupBox);
    105107#else
    106108  encoderHBoxLayout->addWidget(fEncoderPath);
     
    108110  encoderVGroupBoxLayout->addWidget(encoderHBox);
    109111  encoderVGroupBoxLayout->addWidget(fEncoderStatus);
    110 #endif
    111 
    112 #if QT_VERSION >= 0x040000
     112
    113113  encoderGroupBox->setLayout(encoderVGroupBoxLayout);
    114 #endif
     114  globalVLayout->addWidget(encoderGroupBox);
     115#endif
     116
    115117  connect( encoderButton, SIGNAL( clicked( ) ), this, SLOT(selectEncoderPathAction() ) );
    116 
    117 #if QT_VERSION < 0x040000
    118   globalVLayout->add(encoderGroupBox);
    119 #else
    120   globalVLayout->addWidget(encoderGroupBox);
    121 #endif
    122118
    123119  fEncoderPath->setText(fParentViewer->getEncoderPath());
     
    145141  tempFolderVGroupBoxLayout->add(tempFolderHBox);
    146142  tempFolderVGroupBoxLayout->add(fTempFolderStatus);
     143
     144  globalVLayout->add(tempFolderGroupBox);
    147145#else
    148146  tempFolderHBoxLayout->addWidget(fTempFolderPath);
     
    150148  tempFolderVGroupBoxLayout->addWidget(tempFolderHBox);
    151149  tempFolderVGroupBoxLayout->addWidget(fTempFolderStatus);
    152 #endif
    153 
    154 #if QT_VERSION >= 0x040000
     150
    155151  tempFolderGroupBox->setLayout(tempFolderVGroupBoxLayout);
    156 #endif
     152  globalVLayout->addWidget(tempFolderGroupBox);
     153#endif
     154
    157155  connect( tempButton, SIGNAL( clicked( ) ), this, SLOT(selectTempPathAction() ) );
    158 
    159 #if QT_VERSION < 0x040000
    160   globalVLayout->add(tempFolderGroupBox);
    161 #else
    162   globalVLayout->addWidget(tempFolderGroupBox);
    163 #endif
    164156
    165157  fTempFolderPath->setText(fParentViewer->getTempFolderPath());
     
    188180  saveFileVGroupBoxLayout->add(saveFileHBox);
    189181  saveFileVGroupBoxLayout->add(fSaveFileStatus);
     182
     183  globalVLayout->add(saveFileGroupBox);
    190184#else
    191185  saveFileHBoxLayout->addWidget(fSaveFileName);
     
    193187  saveFileVGroupBoxLayout->addWidget(saveFileHBox);
    194188  saveFileVGroupBoxLayout->addWidget(fSaveFileStatus);
    195 #endif
    196 
    197 #if QT_VERSION >= 0x040000
     189
    198190  saveFileGroupBox->setLayout(saveFileVGroupBoxLayout);
    199 #endif
     191  globalVLayout->addWidget(saveFileGroupBox);
     192#endif
     193
    200194  connect( saveButton, SIGNAL( clicked( ) ), this, SLOT(selectSaveFileNameAction() ) );
    201195
    202 #if QT_VERSION < 0x040000
    203   globalVLayout->add(saveFileGroupBox);
    204 #else
    205   globalVLayout->addWidget(saveFileGroupBox);
    206 #endif
    207196
    208197
     
    212201
    213202  // global status
    214   fGlobalStatus = new QLabel("");
    215 
    216 #if QT_VERSION < 0x040000
     203  QGroupBox *statusGroupBox = new QGroupBox(tr("Status"));
     204  QVBoxLayout *statusVGroupBoxLayout = new QVBoxLayout(statusGroupBox);
     205  fGlobalStatus = new QLabel(statusGroupBox);
     206  fGlobalStatus->setText("");
     207
     208#if QT_VERSION < 0x040000
     209  statusVGroupBoxLayout->add(fGlobalStatus);
     210
    217211  globalVLayout->add(infoLabel);
    218   globalVLayout->add(fGlobalStatus);
    219 #else
     212  globalVLayout->add(statusGroupBox);
     213#else
     214  statusVGroupBoxLayout->addWidget(fGlobalStatus);
     215
     216  statusGroupBox->setLayout(statusVGroupBoxLayout);
    220217  globalVLayout->addWidget(infoLabel);
    221   globalVLayout->addWidget(fGlobalStatus);
     218  globalVLayout->addWidget(statusGroupBox);
    222219#endif
    223220
     
    236233
    237234  QPushButton * buttonEncode = new QPushButton( tr( "&Encode" ),buttonBox );
     235  buttonEncode->setEnabled(false);
    238236  buttonEncode->setAutoDefault( TRUE );
    239237  buttonEncode->setDefault( TRUE );
     
    320318  if (temp != "") {
    321319    palette.setColor( QPalette::Base, Qt::red);
    322     fGlobalStatus->setText("If no valid encode defined, screnn /ncapture files will be saved in /nthe temp folder in ppm format.");
     320    fGlobalStatus->setText("If no valid encode defined, screnn \ncapture files will be saved in the\ntemp folder in ppm format.");
    323321  } else {
    324322    palette.setColor( QPalette::Base, Qt::white);
Note: See TracChangeset for help on using the changeset viewer.