Changeset 143 in PSPA


Ignore:
Timestamp:
Dec 6, 2012, 11:39:15 AM (12 years ago)
Author:
garnier
Message:

ajout de GWt_dialog

Location:
Interface_Web/trunk/pspaWT
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/cmt/requirements

    r127 r143  
    2222#macro PSPSLib_linkopts     " -L${PSPAWTROOT}/$(Platform_bin) -lPSPSLib "
    2323
    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} "'
     24application 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} "'
    2525
    2626macro DrawWt_linkopts " ${PSPSLib_linkopts} ${Wt_linkopts} ${boost_linkopts} ${dld_linkopts}"
  • Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc

    r142 r143  
    2020#include "GWt_LigneFaisceau.h"
    2121#include "GWt_globalParameters.h"
     22#include "GWt_dialog.h"
    2223#include "particleBeam.h"
    2324#include "bareParticle.h"
     
    184185  exec_ok->clicked().connect(this, &PspaApplication::checkSectionSelection);
    185186 
    186   // signal de probleme
    187   probleme_ = new WText("y a un probleme");
    188   probleme_->decorationStyle().setBackgroundColor (WColor("red"));
    189   probleme_->setHidden(true);
    190 
    191187  // le panel
    192188  WPanel *panelLogiciels = new WPanel(executeW);
     
    198194  contenuSections_->addWidget(exec_ok);
    199195  contenuSections_->addWidget(exec_go_);
    200   contenuSections_->addWidget(probleme_);
    201196  contenuSections_->addWidget(new WBreak());
    202197  contenuSections_->addWidget(new WBreak());
     
    323318        {
    324319          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();
    326322          return;
    327323        }
     
    336332        {
    337333          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();
    339336          return;
    340337        }
     
    345342    }
    346343
    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  }
    348348  else
    349349    {
    350       probleme_->setHidden(true);
    351350      exec_go_->setDisabled(false);
    352351    }
     
    376375      caMarche = false;
    377376      addConsoleMessage(diagnostic.c_str());
     377      GWt_dialog calculDialog("PSPA : Erreur lors de check execute", diagnostic.c_str(), true,false,true);
     378      calculDialog.exec();
    378379    }
    379380
     
    395396  static_cast<GWt_globalParameters*>(globalParam_)->updateGlobals();
    396397
    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);
    400399  calculDialog.show();
    401400
     
    403402
    404403  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  }
    406408  //  cout << " PspaApplication : retour d'execution resultat =  " << resultat << endl;
    407409  addConsoleMessage(resultat);
Note: See TracChangeset for help on using the changeset viewer.