- Timestamp:
- Mar 4, 2008, 6:42:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtMovieDialog.cc
r736 r737 117 117 connect( encoderButton, SIGNAL( clicked( ) ), this, SLOT(selectEncoderPathAction() ) ); 118 118 119 fEncoderPath->setText(fParentViewer->getEncoderPath());120 121 119 122 120 // temp folder group box … … 155 153 connect( tempButton, SIGNAL( clicked( ) ), this, SLOT(selectTempPathAction() ) ); 156 154 157 fTempFolderPath->setText(fParentViewer->getTempFolderPath());158 155 159 156 … … 204 201 QVBoxLayout *statusVGroupBoxLayout = new QVBoxLayout(statusGroupBox); 205 202 fGlobalStatus = new QLabel(statusGroupBox); 206 fGlobalStatus->setText("");203 setStatus(""); 207 204 208 205 #if QT_VERSION < 0x040000 … … 253 250 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 254 251 connect( buttonEncode, SIGNAL( clicked() ), this, SLOT( encode() ) ); 252 253 // fill 254 fEncoderPath->setText(fParentViewer->getEncoderPath()); 255 fTempFolderPath->setText(fParentViewer->getTempFolderPath()); 256 257 if (fParentViewer->getEncoderPath() == "") { 258 setStatus("mpeg_encode is needed to encode in video format.\nIt is available here: \nhttp://bmrc.berkeley.edu/frame/research/mpeg/"); 259 } 260 255 261 } 256 262 … … 314 320 315 321 QString temp = fParentViewer->setEncoderPath(param); 316 fGlobalStatus->setText("");322 setStatus(""); 317 323 fEncoderStatus->setText(temp); 318 324 if (temp != "") { 319 325 palette.setColor( QPalette::Base, Qt::red); 320 fGlobalStatus->setText("If no valid encode defined, screen \ncapture files will be saved in the\ntemp folder in ppm format.");326 setStatus("If no valid encode defined, screen \ncapture files will be saved in the\ntemp folder in ppm format."); 321 327 } else { 322 328 palette.setColor( QPalette::Base, Qt::white); 323 329 fEncoderPath->setText(fParentViewer->getEncoderPath()); 330 if (fParentViewer->getEncoderPath() == "") { 331 setStatus("mpeg_encode is needed to encode in video format.\nIt is available here: \nhttp://bmrc.berkeley.edu/frame/research/mpeg/"); 332 } 324 333 } 325 334 fEncoderPath->setPalette(palette); … … 365 374 fSaveFileName->setPalette(palette); 366 375 } 367 #endif 376 377 378 void G4OpenGLQtMovieDialog::setStatus(QString txt) { 379 fGlobalStatus->setText(txt); 380 } 381 382 #endif
Note: See TracChangeset
for help on using the changeset viewer.