Changeset 449 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_dropZoneLigneFaisceau.cc
- Timestamp:
- Dec 12, 2013, 12:14:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_dropZoneLigneFaisceau.cc
r437 r449 10 10 #include "nomdElements.h" 11 11 12 GWt_dropZoneLigneFaisceau::GWt_dropZoneLigneFaisceau( PspaApplication* pspa) 13 : WContainerWidget() 12 GWt_dropZoneLigneFaisceau::GWt_dropZoneLigneFaisceau( PspaApplication* pspa,GWt_LigneFaisceau* parent) 13 : WContainerWidget(), 14 parent_(parent) 14 15 { 15 16 initialise(pspa); … … 62 63 void GWt_dropZoneLigneFaisceau::dropEvent(WDropEvent evt) 63 64 { 64 // get LigneFaiseau widget and add new elementLigneFaiseau65 GWt_LigneFaisceau* ligneFaisceau = NULL;66 if ( static_cast<GWt_LigneFaisceau*> (wApp->findWidget ("ligneFaisceau"))) {67 ligneFaisceau = static_cast<GWt_LigneFaisceau*> (wApp->findWidget ("ligneFaisceau"));68 } else {69 return;70 }71 72 65 // get the type of element 73 66 nomdElements e(evt.mimeType()); 74 67 nomdElements::typedElement eType = e.getElementType(); 75 ligneFaisceau->addElement(eType, this);68 getParent()->addElement(eType, this); 76 69 } 77 70
Note: See TracChangeset
for help on using the changeset viewer.