Changeset 58 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Nov 9, 2012, 10:01:24 PM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_globalParameters.h
r54 r58 15 15 { 16 16 17 WPanel* panneau_;18 17 PspaApplication* pspa_; 19 18 // dataManager* dtmanage_; … … 23 22 WLineEdit* nscEdit_; 24 23 24 // vector<WComboBox*> sectionSelection_; 25 25 26 27 /* WLineEdit* origineEdit1_; */ 28 /* WLineEdit* origineEdit2_; */ 29 /* WComboBox* selectionBox1_; */ 30 31 /* WLineEdit* extremiteEdit1_; */ 32 /* WLineEdit* extremiteEdit2_; */ 33 /* WComboBox* selectionBox2_; */ 34 35 // WContainerWidget* contenuSections_; 26 36 27 37 GWt_globalParameters() {;} … … 37 47 void renew(); 38 48 49 // void addElem(); 50 51 // void addSection(); 52 53 // void getExecute(unsigned index, unsigned& first, unsigned& last, int& programm); 54 39 55 // void lancerCalcul(); 40 56 -
Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h
r56 r58 1 1 #ifndef PSPA_SEEN 2 2 #define PSPA_SEEN 3 4 5 #include <list> 3 6 4 7 #include <Wt/WApplication> … … 6 9 #include <Wt/WContainerWidget> 7 10 #include <Wt/WTextArea> 11 #include <Wt/WPanel> 12 #include <Wt/WComboBox> 8 13 9 14 #include "dataManager.h" 10 11 // c++0x only, for std::bind12 // #include <functional>13 15 14 16 using namespace Wt; … … 20 22 { 21 23 24 typedef struct 25 { 26 WLineEdit* debut; 27 WLineEdit* fin; 28 WComboBox* selection; 29 } GWt_sectionToExecute; 30 31 22 32 23 33 private : … … 28 38 WContainerWidget* leDessin_; 29 39 40 WContainerWidget* contenuSections_; 30 41 42 list<GWt_sectionToExecute*> selectedSections_; 31 43 32 44 WWidget* createPalette(); 33 45 WWidget* createBeamLine(); 34 46 WWidget* createGlobalParamWidget(); 47 WWidget* createExecuteWidget(); 48 35 49 void createDragImage(const char *url, const char *smallurl, 36 50 const char *mimeType, 37 51 WContainerWidget *p); 52 38 53 39 54 void executer(); … … 41 56 void restaurer(); 42 57 58 void addSectionToExecuteW(); 59 43 60 44 61 void faireDessin(); 62 63 45 64 46 65 public: … … 56 75 } 57 76 77 // void addElemToGlobals(); 78 void updateSelections(); 79 58 80 }; 59 81 -
Interface_Web/trunk/pspaWT/include/dataManager.h
r56 r58 1 1 #ifndef DATAMANAGER_SEEN 2 2 #define DATAMANAGER_SEEN 3 4 5 //#include<vector> 6 3 7 4 8 #include "abstractElement.h" … … 7 11 #include "nomdElements.h" 8 12 #include "particleBeam.h" 13 #include "sectionToExecute.h" 14 #include "nomDeLogiciel.h" 15 9 16 10 17 //using namespace std; … … 17 24 particleBeam currentBeam_; 18 25 26 vector<sectionToExecute*> jobList_; 27 19 28 void createInputFileParmela( unsigned int indexDeb, unsigned int indexFin); 20 string executeParmela( unsigned int indexDeb, unsigned int indexFin);21 29 22 30 public: … … 24 32 25 33 dataManager() {;} 26 ~dataManager() {;} 34 ~dataManager() 35 { 36 unsigned k; 37 38 for (k=0; k < jobList_.size();k++) 39 { 40 if ( jobList_[k] != NULL ) delete jobList_[k]; 41 } 42 } 27 43 28 44 inline int beamLineSize() {return elementsGallery_.size();} … … 30 46 inline elementsCollection* getCollection() {return &elementsGallery_;} 31 47 inline particleBeam& getCurrentBeam() {return currentBeam_;} 48 49 void addSectionToExecute(int debut, int fin, nomDeLogiciel prog); 50 32 51 abstractElement* addElement(nomdElement elemType); 33 52 abstractElement* addCell(); 34 53 abstractElement* addDrift(); 35 54 abstractElement* addInitialBeam(); 55 string executeTransport( unsigned int indexDeb, unsigned int indexFin); 56 string executeParmela( unsigned int indexDeb, unsigned int indexFin); 36 57 string executeAll(); 37 58 void saveAll(); 38 59 void restoreAll(); 39 40 60 }; 41 61 -
Interface_Web/trunk/pspaWT/include/nomdElements.h
r50 r58 2 2 #define NOMDELEMENTS_SEEN 3 3 4 #include <string>5 4 6 5 using namespace std;
Note: See TracChangeset
for help on using the changeset viewer.