- Timestamp:
- Mar 10, 2008, 2:17:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtMovieDialog.cc
r748 r750 238 238 buttonBoxLayout->addWidget(buttonCancel); 239 239 240 QPushButton *buttonApply = new QPushButton( tr( "&Apply" ),buttonBox ); 241 buttonApply->setAutoDefault( TRUE ); 242 buttonApply->setDefault( TRUE ); 243 buttonBoxLayout->addWidget(buttonApply); 240 QPushButton *buttonReset = new QPushButton( tr( "&Reset" ),buttonBox ); 241 buttonReset->setAutoDefault( TRUE ); 242 buttonBoxLayout->addWidget(buttonReset); 243 244 fButtonApply = new QPushButton( tr( "&Apply" ),buttonBox ); 245 fButtonApply->setAutoDefault( TRUE ); 246 fButtonApply->setEnabled(true); 247 buttonBoxLayout->addWidget(fButtonApply); 244 248 245 249 fButtonEncode = new QPushButton( tr( "&Encode" ),buttonBox ); … … 260 264 261 265 // signals and slots connections 262 connect( buttonApply, SIGNAL( clicked() ), this, SLOT( checkAllParameters() ) ); 266 connect( fButtonApply, SIGNAL( clicked() ), this, SLOT( checkAllParameters() ) ); 267 connect( buttonReset, SIGNAL( clicked() ), this, SLOT( resetRecording() ) ); 263 268 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 264 269 connect( fButtonEncode, SIGNAL( clicked() ), this, SLOT( encode() ) ); … … 268 273 fEncoderPath->setText(fParentViewer->getEncoderPath()); 269 274 fTempFolderPath->setText(fParentViewer->getTempFolderPath()); 275 276 // connect line edit signals 277 connect (fEncoderPath,SIGNAL(textEdited ( const QString&)),fButtonApply,SLOT(setEnabled(true))); 278 connect (fTempFolderPath,SIGNAL(textEdited ( const QString&)),fButtonApply,SLOT(setEnabled(true))); 279 connect (fSaveFileName,SIGNAL(textEdited ( const QString&)),fButtonApply,SLOT(setEnabled(true))); 270 280 271 281 if (fParentViewer->getEncoderPath() == "") { … … 289 299 return; 290 300 } 291 checkEncoderParameters(nomFich); 301 fEncoderPath->setText(nomFich); 302 checkAllParameters(); 292 303 } 304 293 305 294 306 void G4OpenGLQtMovieDialog::selectTempPathAction() … … 300 312 return; 301 313 } 302 checkTempFolderParameters(nomFich); 314 fTempFolderPath->setText(nomFich); 315 checkAllParameters(); 303 316 } 317 304 318 305 319 void G4OpenGLQtMovieDialog::selectSaveFileNameAction() … … 311 325 return; 312 326 } 313 checkSaveFileNameParameters(nomFich); 327 fSaveFileName->setText(nomFich); 328 checkAllParameters(); 314 329 } 330 315 331 316 332 void G4OpenGLQtMovieDialog::encode() { … … 334 350 } 335 351 } 352 fButtonApply->setEnabled(false); 336 353 } 337 354 … … 397 414 398 415 QString temp = fParentViewer->setSaveFileName(param); 399 416 fSaveFileStatus->setText(temp); 400 417 if (temp != "") { 401 418 palette.setColor( QPalette::Base, Qt::red); … … 410 427 411 428 429 void G4OpenGLQtMovieDialog::resetRecording() { 430 fParentViewer->resetRecording(); 431 } 432 433 412 434 void G4OpenGLQtMovieDialog::setRecordingStatus(QString txt) { 413 435 fButtonEncode->setEnabled(fParentViewer->isReadyToEncode()); … … 415 437 } 416 438 439 417 440 void G4OpenGLQtMovieDialog::setRecordingInfos(QString txt) { 418 441 fRecordingInfos->setText(txt);
Note: See TracChangeset
for help on using the changeset viewer.