Changeset 102 in PSPA
- Timestamp:
- Nov 21, 2012, 2:28:02 PM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h
r94 r102 44 44 WPushButton *exec_go_; 45 45 46 WText* probleme_; 46 47 47 48 list<GWt_sectionToExecute*> selectedSections_; -
Interface_Web/trunk/pspaWT/include/abstractElement.h
r95 r102 16 16 17 17 protected: 18 19 bool parmelaOk_; 20 bool transportOk_; 18 21 19 22 int nbParam_; … … 52 55 lenghtElem_ = defaultLength_; 53 56 aperture_ = defaultAperture_; 57 parmelaOk_ = false; 58 transportOk_ = false; 54 59 } 55 60 … … 105 110 int getNbParams() const {return nbParam_;}; 106 111 112 bool is_parmela_element() const {return parmelaOk_;}; 113 bool is_transport_element() const {return transportOk_;}; 114 107 115 virtual string* getParametersString() const = 0; 108 116 -
Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc
r93 r102 90 90 91 91 WContainerWidget* executeW =new WContainerWidget(); 92 93 94 // WVBoxLayout* executeLayout = new WVBoxLayout();95 96 // executeW->decorationStyle().setBackgroundColor (WColor("yellow"));97 92 executeW->setMaximumSize(600,150); 98 93 executeW->setMinimumSize(600,150); 99 100 101 102 103 // executeLayout->addWidget(boutonGo);104 94 105 95 // bouton execute … … 120 110 exec_ok->clicked().connect(this, &PspaApplication::checkSectionSelection); 121 111 112 // signal de probleme 113 probleme_ = new WText("y a un probleme"); 114 probleme_->decorationStyle().setBackgroundColor (WColor("red")); 115 probleme_->setHidden(true); 122 116 123 117 // le panel … … 131 125 contenuSections_->addWidget( exec_ok); 132 126 contenuSections_->addWidget(exec_go_); 127 contenuSections_->addWidget(probleme_); 133 128 contenuSections_->addWidget(new WBreak()); 134 129 contenuSections_->addWidget(new WBreak()); … … 416 411 else if ( prog == nomDeLogiciel::transport ) 417 412 { 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 418 422 resul = dtmanage_->executeTransport( debut, fin); 419 423 faireDessinTransport(); -
Interface_Web/trunk/pspaWT/src/dataManager.cc
r96 r102 116 116 117 117 createInputFileParmela(indexDeb, indexFin); 118 118 119 ostringstream sortie; 119 120 sortie << " EXECUTION DE PARMELA DE l'ELEMENT " << indexDeb << " A L'ELEMENT " << indexFin << endl; … … 154 155 { 155 156 156 // if ( currentBeam_.particleRepresentationOk() )157 // {158 // currentBeam_.buildMomentRepresentation();159 // }160 // else161 // {162 157 cerr << " dataManager::createInputFileTransport : the beam is not OK " << endl; 163 return;164 // }165 158 } 166 159 indexDeb--; … … 213 206 indexDeb--; 214 207 indexFin--; 208 209 210 211 215 212 ofstream outfile; 216 213 string name = WORKINGAREA + "/parmin"; … … 258 255 } 259 256 260 void dataManager::initializeExecution() 261 { 262 currentBeam_.clear(); 263 } 257 void dataManager::initializeExecution() 258 { 259 ifstream testParmdesz; 260 string parmdesz = WORKINGAREA + "/parmdesz"; 261 testParmdesz.open(parmdesz.c_str(), ios::in); 262 if (testParmdesz) 263 { 264 testParmdesz.close(); 265 remove(parmdesz.c_str()); 266 } 267 currentBeam_.clear(); 268 } 264 269 265 270 // string dataManager::executeAll() -
Interface_Web/trunk/pspaWT/src/elementInitialBeam.cc
r82 r102 14 14 nbParam_ = 6; 15 15 parametersString_ = new string[nbParam_+1]; 16 parmelaOk_ = true; 16 17 } 17 18
Note: See TracChangeset
for help on using the changeset viewer.