Changeset 428 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
- Timestamp:
- Nov 4, 2013, 12:21:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
r427 r428 143 143 // xx mainGridLayout->addWidget(globalParam_,3,1); 144 144 145 globalParam_ = new GWt_globalParameters(dtmanage_); 145 146 WWidget* dboard = createDashBoard(); 146 147 dboard->setMinimumSize(300,100); … … 187 188 textdiv = new WContainerWidget(); 188 189 textdiv->setStyleClass("text"); 189 190 globalParam_ = new GWt_globalParameters(dtmanage_,textdiv); 190 globalParam_->setText(textdiv); 191 191 192 192 WContainerWidget *cnt = new WContainerWidget(); … … 396 396 } 397 397 398 399 398 void PspaApplication::dialogSaveDone(WDialog::DialogCode code) 400 399 { 401 if ( code != Wt::WDialog::Accepted ) { 402 return; 403 } 404 nameOfCase_ = saveNameEdit_->text().toUTF8(); 405 delete dialogSave_; 406 dialogSave_ = NULL; 407 408 GWt_globalParameters* bibi = static_cast<GWt_globalParameters*>(globalParam_); 409 bibi->updateGlobals(); 410 411 // dtmanage_->saveConfiguration(nameOfCase_); 412 dtmanage_->saveConfiguration(sessionId(),nameOfCase_); 413 414 // en test: j'ajoute la sauvegarde sur .aml 415 dtmanage_->writeToAMLFile(nameOfCase_); 416 } 417 400 if ( code != Wt::WDialog::Accepted ) { 401 return; 402 } 403 nameOfCase_ = saveNameEdit_->text().toUTF8(); 404 delete dialogSave_; 405 dialogSave_ = NULL; 406 407 globalParam_->updateGlobals(); 408 409 // dtmanage_->saveConfiguration(nameOfCase_); 410 dtmanage_->saveConfiguration(sessionId(),nameOfCase_); 411 412 // en test: j'ajoute la sauvegarde sur .aml 413 dtmanage_->writeToAMLFile(nameOfCase_); 414 } 418 415 419 416 void PspaApplication::restaurer() … … 432 429 if (nameOfCase_ == "") 433 430 return; 434 cout << " jerestaure le fichier " << fileName << endl;431 cout << " PspaApplication:: restaure le fichier " << fileName << endl; 435 432 dialogSave_ = NULL; 436 433 … … 445 442 } 446 443 447 GWt_globalParameters* bibi = static_cast<GWt_globalParameters*>(globalParam_); 448 bibi->renew(); 449 444 globalParam_->renew(); 450 445 console_->addConsoleMessage(string("restauration terminee \n")); 451 446 }
Note: See TracChangeset
for help on using the changeset viewer.