Ignore:
Timestamp:
Nov 21, 2012, 2:28:02 PM (12 years ago)
Author:
lemeur
Message:

creation d'un diagnostic de coherence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc

    r93 r102  
    9090
    9191  WContainerWidget* executeW =new WContainerWidget();
    92 
    93 
    94   //   WVBoxLayout* executeLayout = new WVBoxLayout();
    95 
    96   //  executeW->decorationStyle().setBackgroundColor (WColor("yellow"));
    9792  executeW->setMaximumSize(600,150);
    9893  executeW->setMinimumSize(600,150);
    99 
    100  
    101 
    102 
    103     //    executeLayout->addWidget(boutonGo);
    10494
    10595  // bouton execute
     
    120110  exec_ok->clicked().connect(this, &PspaApplication::checkSectionSelection);
    121111
     112  // signal de probleme
     113  probleme_ = new WText("y a un probleme");
     114  probleme_->decorationStyle().setBackgroundColor (WColor("red"));
     115  probleme_->setHidden(true);
    122116
    123117  // le panel
     
    131125  contenuSections_->addWidget( exec_ok);
    132126    contenuSections_->addWidget(exec_go_);
     127    contenuSections_->addWidget(probleme_);
    133128  contenuSections_->addWidget(new WBreak());
    134129  contenuSections_->addWidget(new WBreak());
     
    416411        else if ( prog == nomDeLogiciel::transport )
    417412          {
     413
     414            if ( !dtmanage_->getCurrentBeam().momentRepresentationOk() )
     415              {         
     416                addConsoleMessage(" the beam is not OK for transport");
     417                probleme_->setHidden(false);
     418                return;
     419              }
     420
     421
    418422            resul = dtmanage_->executeTransport( debut, fin);
    419423            faireDessinTransport();
Note: See TracChangeset for help on using the changeset viewer.