Changeset 142 in PSPA


Ignore:
Timestamp:
Dec 5, 2012, 3:11:43 PM (12 years ago)
Author:
garnier
Message:

ajout d'un dialog pdt execution

Location:
Interface_Web/trunk/pspaWT
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h

    r138 r142  
    4040 WPushButton *exec_go_;
    4141 WText* probleme_;
    42  WText* encours_;
    4342  WComboBox* choixElementDessin_;
    4443 WContainerWidget* toto_;
  • Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc

    r141 r142  
    189189  probleme_->setHidden(true);
    190190
    191   // signal de calcul en cours
    192   encours_ = new WText();
    193   encours_->decorationStyle().setBackgroundColor (WColor("green"));
    194   encours_->setHidden(true);
    195 
    196191  // le panel
    197192  WPanel *panelLogiciels = new WPanel(executeW);
     
    204199  contenuSections_->addWidget(exec_go_);
    205200  contenuSections_->addWidget(probleme_);
    206   contenuSections_->addWidget(encours_);
    207201  contenuSections_->addWidget(new WBreak());
    208202  contenuSections_->addWidget(new WBreak());
     
    408402  processEvents();     
    409403
    410   encours_->setHidden(true);
    411   encours_->decorationStyle().setBackgroundColor (WColor("green"));
    412   cout << " je passe la " << endl;
    413   encours_->setText("calcul en cours");
    414   encours_->setHidden(false);
    415   cout << " et la " << endl;
    416404  string resultat;
    417405  if ( !dtmanage_->executeAll(resultat)) probleme_->setHidden(false);
     
    422410  exec_go_->setDisabled(true);
    423411
    424   encours_->setText("c'est fini");
    425412  calculDialog.hide();
    426 
    427   encours_->decorationStyle().setBackgroundColor (WColor("orange"));
    428413
    429414  faireDessin();
Note: See TracChangeset for help on using the changeset viewer.