Changeset 299 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_abstractElement.cc
- Timestamp:
- Jan 30, 2013, 11:49:18 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_abstractElement.cc
r294 r299 13 13 #include "GWt_fit.h" 14 14 #include "GWt_draggableImage.h" 15 #include "GWt_LigneFaisceau.h" 15 16 16 17 #include "mixedTools.h" … … 26 27 { 27 28 abstractElement_ = elem; 29 setStyleClass("beamLineIcon"); 30 28 31 } 29 32 … … 37 40 image_->doubleClicked().connect(this,&GWt_abstractElement::doubleClicked); 38 41 image_->clicked().connect(this,&GWt_abstractElement::clicked); 39 42 addWidget(image_); 40 43 } 41 44 … … 100 103 void GWt_abstractElement::doubleClicked() 101 104 { 102 cout << "mouse key was double clicked on this widget" << endl; 105 GWt_dialog warningDialog("PSPA : Delete element",WString("Delete '")+WString(getElement()->getLabel())+"' ?", GWt_dialog::Warning,true,true); 106 warningDialog.exec(); 107 108 // get LigneFaiseau widget and add new elementLigneFaiseau 109 GWt_LigneFaisceau* ligneFaisceau = NULL; 110 if ( static_cast<GWt_LigneFaisceau*> (wApp->findWidget ("ligneFaisceau"))) { 111 ligneFaisceau = static_cast<GWt_LigneFaisceau*> (wApp->findWidget ("ligneFaisceau")); 112 } else { 113 return; 114 } 115 116 ligneFaisceau->removeElement(this); 103 117 } 104 118
Note: See TracChangeset
for help on using the changeset viewer.