Changeset 737 for trunk/geant4
- Timestamp:
- Mar 4, 2008, 6:42:41 PM (17 years ago)
- Location:
- trunk/geant4/visualization/OpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/include/G4OpenGLQtMovieDialog.hh
r733 r737 62 62 /** Destroys G4OpenGLQtMovieDialog */ 63 63 ~G4OpenGLQtMovieDialog(); 64 void setStatus(QString); 64 65 65 66 private : -
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 -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r736 r737 2147 2147 */ 2148 2148 QString G4OpenGLQtViewer::getEncoderPath() { 2149 2150 if (!fEncoderPath.isNull()) 2151 return fEncoderPath ; 2152 return ""; 2149 return fEncoderPath; 2153 2150 } 2154 2151 … … 2209 2206 */ 2210 2207 QString G4OpenGLQtViewer::getTempFolderPath() { 2211 if (!fTempFolderPath.isNull()) 2212 return fTempFolderPath ; 2213 return ""; 2208 return fTempFolderPath ; 2214 2209 } 2215 2210 … … 2256 2251 */ 2257 2252 void G4OpenGLQtViewer::initMovieParameters() { 2258 #ifdef GEANT4_QT_DEBUG2259 printf("G4OpenGLQtViewer::--------\n");2260 #endif2261 2253 //init encoder 2262 2254 … … 2278 2270 // init temp folder 2279 2271 setTempFolderPath(QDir::temp ().absolutePath ()); 2280 #ifdef GEANT4_QT_DEBUG2281 printf("G4OpenGLQtViewer::--------\n");2282 #endif2283 2272 } 2284 2273
Note: See TracChangeset
for help on using the changeset viewer.