- Timestamp:
- Mar 4, 2008, 5:27:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtMovieDialog.cc
r734 r735 103 103 encoderVGroupBoxLayout->add(encoderHBox); 104 104 encoderVGroupBoxLayout->add(fEncoderStatus); 105 106 globalVLayout->add(encoderGroupBox); 105 107 #else 106 108 encoderHBoxLayout->addWidget(fEncoderPath); … … 108 110 encoderVGroupBoxLayout->addWidget(encoderHBox); 109 111 encoderVGroupBoxLayout->addWidget(fEncoderStatus); 110 #endif 111 112 #if QT_VERSION >= 0x040000 112 113 113 encoderGroupBox->setLayout(encoderVGroupBoxLayout); 114 #endif 114 globalVLayout->addWidget(encoderGroupBox); 115 #endif 116 115 117 connect( encoderButton, SIGNAL( clicked( ) ), this, SLOT(selectEncoderPathAction() ) ); 116 117 #if QT_VERSION < 0x040000118 globalVLayout->add(encoderGroupBox);119 #else120 globalVLayout->addWidget(encoderGroupBox);121 #endif122 118 123 119 fEncoderPath->setText(fParentViewer->getEncoderPath()); … … 145 141 tempFolderVGroupBoxLayout->add(tempFolderHBox); 146 142 tempFolderVGroupBoxLayout->add(fTempFolderStatus); 143 144 globalVLayout->add(tempFolderGroupBox); 147 145 #else 148 146 tempFolderHBoxLayout->addWidget(fTempFolderPath); … … 150 148 tempFolderVGroupBoxLayout->addWidget(tempFolderHBox); 151 149 tempFolderVGroupBoxLayout->addWidget(fTempFolderStatus); 152 #endif 153 154 #if QT_VERSION >= 0x040000 150 155 151 tempFolderGroupBox->setLayout(tempFolderVGroupBoxLayout); 156 #endif 152 globalVLayout->addWidget(tempFolderGroupBox); 153 #endif 154 157 155 connect( tempButton, SIGNAL( clicked( ) ), this, SLOT(selectTempPathAction() ) ); 158 159 #if QT_VERSION < 0x040000160 globalVLayout->add(tempFolderGroupBox);161 #else162 globalVLayout->addWidget(tempFolderGroupBox);163 #endif164 156 165 157 fTempFolderPath->setText(fParentViewer->getTempFolderPath()); … … 188 180 saveFileVGroupBoxLayout->add(saveFileHBox); 189 181 saveFileVGroupBoxLayout->add(fSaveFileStatus); 182 183 globalVLayout->add(saveFileGroupBox); 190 184 #else 191 185 saveFileHBoxLayout->addWidget(fSaveFileName); … … 193 187 saveFileVGroupBoxLayout->addWidget(saveFileHBox); 194 188 saveFileVGroupBoxLayout->addWidget(fSaveFileStatus); 195 #endif 196 197 #if QT_VERSION >= 0x040000 189 198 190 saveFileGroupBox->setLayout(saveFileVGroupBoxLayout); 199 #endif 191 globalVLayout->addWidget(saveFileGroupBox); 192 #endif 193 200 194 connect( saveButton, SIGNAL( clicked( ) ), this, SLOT(selectSaveFileNameAction() ) ); 201 195 202 #if QT_VERSION < 0x040000203 globalVLayout->add(saveFileGroupBox);204 #else205 globalVLayout->addWidget(saveFileGroupBox);206 #endif207 196 208 197 … … 212 201 213 202 // 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 217 211 globalVLayout->add(infoLabel); 218 globalVLayout->add(fGlobalStatus); 219 #else 212 globalVLayout->add(statusGroupBox); 213 #else 214 statusVGroupBoxLayout->addWidget(fGlobalStatus); 215 216 statusGroupBox->setLayout(statusVGroupBoxLayout); 220 217 globalVLayout->addWidget(infoLabel); 221 globalVLayout->addWidget( fGlobalStatus);218 globalVLayout->addWidget(statusGroupBox); 222 219 #endif 223 220 … … 236 233 237 234 QPushButton * buttonEncode = new QPushButton( tr( "&Encode" ),buttonBox ); 235 buttonEncode->setEnabled(false); 238 236 buttonEncode->setAutoDefault( TRUE ); 239 237 buttonEncode->setDefault( TRUE ); … … 320 318 if (temp != "") { 321 319 palette.setColor( QPalette::Base, Qt::red); 322 fGlobalStatus->setText("If no valid encode defined, screnn /ncapture files will be saved in /nthetemp 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."); 323 321 } else { 324 322 palette.setColor( QPalette::Base, Qt::white);
Note: See TracChangeset
for help on using the changeset viewer.