Changeset 310 in PSPA for Interface_Web
- Timestamp:
- Feb 5, 2013, 11:26:22 AM (11 years ago)
- Location:
- Interface_Web/trunk/pspaWT
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/History
r309 r310 8 8 5 Février 2013 Laurent Garnier 9 9 - Change cursor style on drag elements 10 - Correction d'un bug introduit dans la derniere revision #28 11 - Quelques renommages 10 12 11 13 4 Février 2013 Laurent Garnier -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_abstractElement.h
r308 r310 43 43 44 44 GWt_abstractElement(abstractElement*); 45 46 // methode Factory 47 static GWt_abstractElement *ajoute(abstractElement* ptr); 48 45 49 46 void initialize(); 50 47 void clicked(); … … 66 63 virtual string getBigImageURL()= 0; 67 64 virtual string getName()= 0; 68 virtual void initi alizeElement() = 0;65 virtual void initilializeDialog() = 0; 69 66 70 67 void createDragImage(WContainerWidget*); -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_beam.h
r308 r310 29 29 30 30 private : 31 void initi alizeElement();31 void initilializeDialog(); 32 32 }; 33 33 -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_bend.h
r308 r310 30 30 31 31 private : 32 void initi alizeElement();32 void initilializeDialog(); 33 33 34 34 }; -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_cell.h
r308 r310 41 41 42 42 private : 43 void initi alizeElement();43 void initilializeDialog(); 44 44 45 45 }; -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_drift.h
r308 r310 32 32 33 33 private : 34 void initi alizeElement();34 void initilializeDialog(); 35 35 36 36 }; -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_fit.h
r308 r310 27 27 28 28 private : 29 void initi alizeElement();29 void initilializeDialog(); 30 30 31 31 }; -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_rfgun.h
r308 r310 40 40 41 41 private : 42 void initi alizeElement();42 void initilializeDialog(); 43 43 44 44 }; -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_soleno.h
r308 r310 39 39 40 40 private : 41 void initi alizeElement();41 void initilializeDialog(); 42 42 43 43 }; -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_abstractElement.cc
r308 r310 29 29 abstractElement_ = elem; 30 30 setStyleClass("beamLineIcon"); 31 32 31 } 33 32 … … 42 41 image_->clicked().connect(this,&GWt_abstractElement::clicked); 43 42 addWidget(image_); 44 initializeElement();45 43 updateLabelAndToolTipWidget(); 46 44 } … … 87 85 void GWt_abstractElement::clicked() 88 86 { 87 initilializeDialog(); 89 88 dialog_->show(); 90 89 } … … 118 117 } 119 118 120 GWt_abstractElement* GWt_abstractElement::ajoute(abstractElement* ptr)121 {122 /*123 typedElement eType = ptr->getNomdElement().getElementType();124 125 switch ( eType ) {126 case RFgun : return new GWt_rfgun(ptr);127 case drift : return new GWt_drift(ptr);128 case cell : return new GWt_cell(ptr);129 case bend : return new GWt_bend(ptr);130 case soleno : return new GWt_soleno(ptr);131 case beam : return new GWt_beam(ptr);132 case fit : return new GWt_fit(ptr);133 case inconnu : return NULL;134 default : return NULL;135 }136 */137 return NULL;138 }139 140 119 141 120 void GWt_abstractElement::createDragImage(WContainerWidget* w){ … … 157 136 void GWt_abstractElement::FileInput(ifstream& ifs){ 158 137 getAbstractElement()->FileInput(ifs); 159 initialize(); 138 initilializeDialog(); 139 updateLabelAndToolTipWidget(); 160 140 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_beam.cc
r308 r310 12 12 { 13 13 elementLigneFaiseauContainer_ = elemLigne; 14 initialize(); 14 15 15 16 } 16 17 17 18 18 void GWt_beam::initi alizeElement() {19 void GWt_beam::initilializeDialog() { 19 20 string* param = beginDialog(); 20 21 -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_bend.cc
r308 r310 13 13 { 14 14 elementLigneFaiseauContainer_ = elemLigne; 15 initialize(); 15 16 } 16 17 17 18 18 void GWt_bend::initi alizeElement() {19 void GWt_bend::initilializeDialog() { 19 20 string* param = beginDialog(); 20 21 -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_cell.cc
r308 r310 14 14 { 15 15 elementLigneFaiseauContainer_ = elemLigne; 16 initialize(); 16 17 } 17 18 18 void GWt_cell::initi alizeElement() {19 void GWt_cell::initilializeDialog() { 19 20 20 21 string* param = beginDialog(); -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_drift.cc
r308 r310 13 13 { 14 14 elementLigneFaiseauContainer_ = elemLigne; 15 initialize(); 15 16 } 16 17 17 18 18 void GWt_drift::initi alizeElement() {19 void GWt_drift::initilializeDialog() { 19 20 string* param = beginDialog(); 20 21 -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementLigneFaisceau.cc
r308 r310 210 210 211 211 void GWt_elementLigneFaisceau::setElementLabel(std::string label) { 212 elementLabel_->setText(label); 213 } 214 212 if (elementLabel_) { 213 elementLabel_->setText(label); 214 } 215 } 216 -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_fit.cc
r308 r310 13 13 { 14 14 elementLigneFaiseauContainer_ = elemLigne; 15 initialize(); 15 16 } 16 17 17 18 18 void GWt_fit::initi alizeElement() {19 void GWt_fit::initilializeDialog() { 19 20 20 21 string* param = beginDialog(); -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_rfgun.cc
r308 r310 12 12 { 13 13 elementLigneFaiseauContainer_ = elemLigne; 14 initialize(); 14 15 } 15 16 16 17 17 void GWt_rfgun::initi alizeElement() {18 void GWt_rfgun::initilializeDialog() { 18 19 19 20 string* param = beginDialog(); -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_soleno.cc
r308 r310 12 12 { 13 13 elementLigneFaiseauContainer_ = elemLigne; 14 initialize(); 14 15 } 15 16 16 17 17 void GWt_soleno::initi alizeElement() {18 void GWt_soleno::initilializeDialog() { 18 19 19 20 string* param = beginDialog();
Note: See TracChangeset
for help on using the changeset viewer.