Changeset 401 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_ligneFaisceau.cc
- Timestamp:
- Mar 27, 2013, 5:47:22 PM (11 years ago)
- Location:
- Interface_Web/trunk/pspaWT
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT
-
Property
svn:mergeinfo
set to
/Interface_Web/branches/12_03_12-managerComboBox/pspaWT merged eligible
-
Property
svn:mergeinfo
set to
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_ligneFaisceau.cc
r379 r401 9 9 #include "GWt_soleno.h" 10 10 #include "GWt_bend.h" 11 #include "nomDeLogiciel.h" 11 12 12 13 #include "mixedTools.h" … … 24 25 ligneFaisceauLayout_ = new WHBoxLayout(); 25 26 // decorationStyle().setBackgroundColor (WColor(245,245,245)); 26 setLayout(ligneFaisceauLayout_);27 27 ligneFaisceauLayout_->setContentsMargins(0,0,0,0); 28 28 ligneFaisceauLayout_->setSpacing(0); 29 29 30 setLayout(ligneFaisceauLayout_); 31 30 32 // set the object name 31 setObjectName("ligneFaisceau"); 33 setObjectName("ligneFaisceau"); 32 34 clear(); 33 35 } … … 157 159 } 158 160 159 pspa_->getExecuteWidget()->updateSe lections();161 pspa_->getExecuteWidget()->updateSections(); 160 162 } 161 163 … … 203 205 } 204 206 205 // first if 1206 // i--;207 207 for (int a=0; a< ligneFaisceauLayout_->count(); a++) { 208 208 if (ligneFaisceauLayout_->itemAt(a)) { … … 222 222 223 223 224 int GWt_LigneFaisceau::getAbstractElementIndexFromLabel(std::string txt){ 225 int index = 0; 226 if (txt == "") { 227 return NULL; 228 } 229 230 for (int a=0; a< ligneFaisceauLayout_->count(); a++) { 231 if (ligneFaisceauLayout_->itemAt(a)) { 232 233 if (GWt_elementLigneFaisceau* elem = dynamic_cast <GWt_elementLigneFaisceau*> (ligneFaisceauLayout_->itemAt(a)->widget ())) { 234 if (elem->getGWt_AbstractElement()) { 235 if (elem->getGWt_AbstractElement()->getAbstractElement()->getLabel() == txt) { 236 return index; 237 } 238 } 239 index ++; 240 } 241 } 242 } 243 return NULL; 244 245 } 246 247 224 248 int GWt_LigneFaisceau::getBeamLineSize() { 225 249 int count = 0; … … 260 284 } 261 285 286 287 void GWt_LigneFaisceau::initializeSoftwares(){ 288 289 vector <abstractElement*> elems = getAllAbstractElements(); 290 for (int a=0; a< elems.size(); a++) { 291 elems[a]->setSoftware(nomDeLogiciel::unknownSoftware); 292 } 293 } 294 295
Note: See TracChangeset
for help on using the changeset viewer.