Changeset 143 in PSPA
- Timestamp:
- Dec 6, 2012, 11:39:15 AM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/cmt/requirements
r127 r143 22 22 #macro PSPSLib_linkopts " -L${PSPAWTROOT}/$(Platform_bin) -lPSPSLib " 23 23 24 application pspaWT bareParticle.cc particleBeam.cc GWt_cell.cc GWt_initialBeam.cc GWt_soleno.cc GWt_bend.cc GWt_globalParameters.cc GWt_drift.cc GWt_abstractElement.cc dataManager.cc elementsCollection.cc elementDrift.cc elementCell.cc elementInitialBeam.cc elementSoleno.cc elementBend.cc globalParameters.cc abstractElement.cc GWt_LigneFaisceau.cc GWt_pspaApplication.cc nomdElements.cc main.cc use_cppflags='" ${lib_PSPSLib_cppflags} "'24 application pspaWT bareParticle.cc particleBeam.cc GWt_cell.cc GWt_initialBeam.cc GWt_soleno.cc GWt_bend.cc GWt_globalParameters.cc GWt_drift.cc GWt_abstractElement.cc dataManager.cc elementsCollection.cc elementDrift.cc elementCell.cc elementInitialBeam.cc elementSoleno.cc elementBend.cc globalParameters.cc abstractElement.cc GWt_LigneFaisceau.cc GWt_pspaApplication.cc GWt_dialog.cc nomdElements.cc main.cc use_cppflags='" ${lib_PSPSLib_cppflags} "' 25 25 26 26 macro DrawWt_linkopts " ${PSPSLib_linkopts} ${Wt_linkopts} ${boost_linkopts} ${dld_linkopts}" -
Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc
r142 r143 20 20 #include "GWt_LigneFaisceau.h" 21 21 #include "GWt_globalParameters.h" 22 #include "GWt_dialog.h" 22 23 #include "particleBeam.h" 23 24 #include "bareParticle.h" … … 184 185 exec_ok->clicked().connect(this, &PspaApplication::checkSectionSelection); 185 186 186 // signal de probleme187 probleme_ = new WText("y a un probleme");188 probleme_->decorationStyle().setBackgroundColor (WColor("red"));189 probleme_->setHidden(true);190 191 187 // le panel 192 188 WPanel *panelLogiciels = new WPanel(executeW); … … 198 194 contenuSections_->addWidget(exec_ok); 199 195 contenuSections_->addWidget(exec_go_); 200 contenuSections_->addWidget(probleme_);201 196 contenuSections_->addWidget(new WBreak()); 202 197 contenuSections_->addWidget(new WBreak()); … … 323 318 { 324 319 addConsoleMessage(" bad section definition ! \n "); 325 probleme_->setHidden(false); 320 GWt_dialog warningDialog("PSPA : Vérification des sections", " bad section definition !", true,false,true); 321 warningDialog.exec(); 326 322 return; 327 323 } … … 336 332 { 337 333 addConsoleMessage(" bad section definition ! \n "); 338 probleme_->setHidden(false); 334 GWt_dialog warningDialog("PSPA : Vérification des sections", " bad section definition !", true,false,true); 335 warningDialog.exec(); 339 336 return; 340 337 } … … 345 342 } 346 343 347 if (!areDataCoherent()) probleme_->setHidden(false); 344 if (!areDataCoherent()) { 345 GWt_dialog warningDialog("PSPA : Vérification des sections", " données incohérentes !", true,false,true); 346 warningDialog.exec(); 347 } 348 348 else 349 349 { 350 probleme_->setHidden(true);351 350 exec_go_->setDisabled(false); 352 351 } … … 376 375 caMarche = false; 377 376 addConsoleMessage(diagnostic.c_str()); 377 GWt_dialog calculDialog("PSPA : Erreur lors de check execute", diagnostic.c_str(), true,false,true); 378 calculDialog.exec(); 378 379 } 379 380 … … 395 396 static_cast<GWt_globalParameters*>(globalParam_)->updateGlobals(); 396 397 397 Wt::WDialog calculDialog("Calcul en cours"); 398 new Wt::WText("Veuillez patienter", calculDialog.contents()); 399 calculDialog.setModal (false); 398 GWt_dialog calculDialog("Calcul en cours", "Veuillez patienter...", false,true); 400 399 calculDialog.show(); 401 400 … … 403 402 404 403 string resultat; 405 if ( !dtmanage_->executeAll(resultat)) probleme_->setHidden(false); 404 if ( !dtmanage_->executeAll(resultat)) { 405 GWt_dialog warningDialog("PSPA : Echec", " echec lors de l'exécution !", true,false,true); 406 warningDialog.exec(); 407 } 406 408 // cout << " PspaApplication : retour d'execution resultat = " << resultat << endl; 407 409 addConsoleMessage(resultat);
Note: See TracChangeset
for help on using the changeset viewer.