Changeset 126 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Dec 3, 2012, 5:53:56 PM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_LigneFaisceau.h
r118 r126 27 27 WHBoxLayout* beamLayout_; 28 28 PspaApplication* pspa_; 29 Compteur *nObjets_[nElements]; 29 //Compteur *nObjets_[nElements]; 30 Compteur *nObjets_; 30 31 31 32 string createLabel( abstractElement* elem,int n);32 //string createLabel(abstractElement* elem, int n); 33 string createLabel(nomdElements el,int n); 33 34 34 35 public : 36 35 37 GWt_LigneFaisceau(PspaApplication*); 36 38 void restoreElementCollection(); 37 39 38 40 private : 41 39 42 void dropEvent(WDropEvent evt); 40 43 }; 41 44 42 43 45 #endif -
Interface_Web/trunk/pspaWT/include/GWt_abstractElement.h
r118 r126 5 5 #include "abstractElement.h" 6 6 7 #include <Wt/WContainerWidget>8 7 #include <Wt/WDialog> 9 8 #include <Wt/WPushButton> 9 #include <Wt/WContainerWidget> 10 10 11 11 #include <iostream> … … 34 34 GWt_abstractElement(PspaApplication* ps,abstractElement* elem,string image); 35 35 36 // methode Factory 37 static GWt_abstractElement *ajoute(PspaApplication* ps,abstractElement* ptr,const string& type); 38 36 39 void clicked(); 37 40 void doubleClicked(); 38 // void createLabel(int n);39 41 void updateLabelWidget(); 40 42 WPushButton* getButton(); -
Interface_Web/trunk/pspaWT/include/abstractElement.h
r114 r126 24 24 25 25 string label_; 26 nomdElement elementName_;26 typedElement elementName_; 27 27 // string transportElementName_; 28 28 double lenghtElem_; // cm … … 44 44 void setLabel(string lab); 45 45 string getLabel() const; 46 nomdElement getName() const;46 typedElement getName() const; 47 47 string getNameOfElement(); 48 48 string getNameString() const; -
Interface_Web/trunk/pspaWT/include/dataManager.h
r118 r126 43 43 void addSectionToExecute(int debut, int fin, nomDeLogiciel prog); 44 44 45 abstractElement* addElement( nomdElement elemType);45 abstractElement* addElement(typedElement elemType); 46 46 string getLabelFromElementNumero(int numero); 47 47 void initializeExecution(); -
Interface_Web/trunk/pspaWT/include/elementsCollection.h
r118 r126 22 22 void raz(); 23 23 int size(); 24 abstractElement* addElement( nomdElement elemType);24 abstractElement* addElement(typedElement elemType); 25 25 abstractElement* getElementPointer(string label) const; 26 26 abstractElement* getElementPointer(unsigned int index) const; -
Interface_Web/trunk/pspaWT/include/nomdElements.h
r113 r126 4 4 using namespace std; 5 5 6 typedef enum { 7 initialBeam, drift, cell, bend, soleno 8 } nomdElement; 6 enum typedElement {initialBeam, drift, cell, bend, soleno, inconnu}; 9 7 10 #define nElements 5 8 class nomdElements 9 { 10 typedElement e_; 11 std::string eStr_; 12 std::string eImg_; 11 13 14 typedElement fromString(std::string s); 15 std::string toString(typedElement eType); 16 std::string toImage(typedElement eType); 17 18 public : 19 20 nomdElements(); 21 nomdElements(const std::string& s); 22 nomdElements(typedElement& eType); 23 24 25 int getNumberOfElements(); 26 typedElement getElementType() const; 27 std::string getElementName() const; 28 std::string getElementLabel(); 29 std::string getElementImage() const; 30 }; 12 31 #endif
Note: See TracChangeset
for help on using the changeset viewer.