Changeset 437 in PSPA
- Timestamp:
- Dec 6, 2013, 4:45:25 PM (10 years ago)
- Location:
- Interface_Web/trunk/pspaWT/sources/userInterface
- Files:
-
- 15 edited
- 18 copied
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_abstractElement.h
r431 r437 1 #ifndef GWT ABSTRACELEMENT_SEEN2 #define GWT ABSTRACELEMENT_SEEN1 #ifndef GWT_abstractElement_SEEN 2 #define GWT_abstractElement_SEEN 3 3 4 4 #include "GWt_draggableImage.h" -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_abstractElementFactory.h
r431 r437 7 7 // 8 8 9 #ifndef PSPA_GWt_abstractElementFactory_h10 #define PSPA_GWt_abstractElementFactory_h9 #ifndef GWt_abstractElementFactory_h 10 #define GWt_abstractElementFactory_h 11 11 12 #include "GWt_ rfgun.h"13 #include "GWt_ drift.h"14 #include "GWt_ cell.h"15 #include "GWt_ bend.h"16 #include "GWt_ soleno.h"17 #include "GWt_ beam.h"18 #include "GWt_ fit.h"19 #include "GWt_ snapshot.h"20 #include "GWt_ mpole.h"12 #include "GWt_elementRfgun.h" 13 #include "GWt_elementDrift.h" 14 #include "GWt_elementCell.h" 15 #include "GWt_elementBend.h" 16 #include "GWt_elementSoleno.h" 17 #include "GWt_elementBeam.h" 18 #include "GWt_elementFit.h" 19 #include "GWt_elementSnapshot.h" 20 #include "GWt_elementMpole.h" 21 21 22 22 using namespace Wt; … … 67 67 inline void setMPoleEnable(bool a) { isMPoleElementEnable = a;}; 68 68 69 GWt_ drift* createDriftElement();70 GWt_ rfgun* createRFGunElement();71 GWt_ cell* createCellElement();72 GWt_ bend* createBendElement();73 GWt_ soleno* createSolenoElement();74 GWt_ beam* createBeamElement();75 GWt_ fit* createFitElement();76 GWt_ snapshot* createSnapshotElement();77 GWt_ mpole* createMPoleElement();69 GWt_elementDrift* createDriftElement(); 70 GWt_elementRfgun* createRFGunElement(); 71 GWt_elementCell* createCellElement(); 72 GWt_elementBend* createBendElement(); 73 GWt_elementSoleno* createSolenoElement(); 74 GWt_elementBeam* createBeamElement(); 75 GWt_elementFit* createFitElement(); 76 GWt_elementSnapshot* createSnapshotElement(); 77 GWt_elementMpole* createMPoleElement(); 78 78 vector <GWt_abstractElement*> getAllElements(); 79 79 -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_console.h
r411 r437 1 #ifndef GWT CONSOLE_SEEN2 #define GWT CONSOLE_SEEN1 #ifndef GWT_CONSOLE_SEEN 2 #define GWT_CONSOLE_SEEN 3 3 4 4 #include <iostream> -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_dialog.h
r401 r437 1 1 #ifndef GWT_DIALOG 2 #define 2 #define GWT_DIALOG 3 3 4 4 #include <Wt/WDialog> -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_dropZoneLigneFaisceau.h
r292 r437 2 2 #define GWT_DROPZONELIGNEFAISEAU_SEEN 3 3 4 #include "GWt_dropZoneLigneFaisceau.h"5 4 #include "GWt_pspaApplication.h" 6 5 -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementBeam.h
r436 r437 1 #ifndef GW T_BEAM_SEEN2 #define GW T_BEAM_SEEN1 #ifndef GWt_elementBeam_SEEN 2 #define GWt_elementBeam_SEEN 3 3 4 4 5 5 #include "GWt_abstractElement.h" 6 6 7 class GWt_ beam : public GWt_abstractElement {7 class GWt_elementBeam : public GWt_abstractElement { 8 8 9 9 WLineEdit* xEdit_; // cm … … 17 17 public : 18 18 19 GWt_ beam() {;}20 GWt_ beam(GWt_elementLigneFaisceau* );21 ~GWt_ beam() {;}19 GWt_elementBeam() {;} 20 GWt_elementBeam(GWt_elementLigneFaisceau* ); 21 ~GWt_elementBeam() {;} 22 22 23 23 virtual void dialogDone(WDialog::DialogCode code); -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementBend.h
r436 r437 1 #ifndef GW T_BEND_SEEN2 #define GW T_BEND_SEEN1 #ifndef GWt_elementBend_SEEN 2 #define GWt_elementBend_SEEN 3 3 4 4 #include "GWt_abstractElement.h" 5 5 6 class GWt_ bend : public GWt_abstractElement6 class GWt_elementBend : public GWt_abstractElement 7 7 { 8 8 WLineEdit* angleEdit_; // deg. … … 16 16 public : 17 17 18 GWt_ bend() {;}19 GWt_ bend(GWt_elementLigneFaisceau* );20 ~GWt_ bend() {;}18 GWt_elementBend() {;} 19 GWt_elementBend(GWt_elementLigneFaisceau* ); 20 ~GWt_elementBend() {;} 21 21 22 22 virtual void dialogDone(WDialog::DialogCode code); 23 WImage* getImage();24 23 25 24 inline string getMimeType() {return "htdocs/bend.jpg"; } -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementCell.h
r436 r437 1 #ifndef GWT_ CELL_SEEN2 #define GWT_ CELL_SEEN1 #ifndef GWT_elementCell_SEEN 2 #define GWT_elementCell_SEEN 3 3 4 4 #include "GWt_abstractElement.h" 5 #include "abstractElement.h"6 5 7 6 #include <iostream> … … 12 11 using namespace std; 13 12 14 class GWt_ cell : public GWt_abstractElement13 class GWt_elementCell : public GWt_abstractElement 15 14 { 16 15 WLineEdit* lenghtElemEdit_; // cm … … 26 25 public : 27 26 28 GWt_ cell() {;}29 GWt_ cell(GWt_elementLigneFaisceau* );30 ~GWt_ cell() {;}27 GWt_elementCell() {;} 28 GWt_elementCell(GWt_elementLigneFaisceau* ); 29 ~GWt_elementCell() {;} 31 30 32 31 virtual void dialogDone(WDialog::DialogCode code); 33 WImage* getImage();34 32 35 33 inline string getMimeType() {return "htdocs/cell.jpg"; } -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementDrift.h
r436 r437 1 #ifndef G RAPHDRIFTELEMENT_SEEN2 #define G RAPHDRIFTELEMENT_SEEN1 #ifndef GWt_elementDriftFaisceau_SEEN 2 #define GWt_elementDriftFaisceau_SEEN 3 3 4 4 #include "GWt_abstractElement.h" … … 12 12 using namespace std; 13 13 14 class GWt_ drift : public GWt_abstractElement14 class GWt_elementDrift : public GWt_abstractElement 15 15 { 16 16 WLineEdit* xlengthEdit_; … … 19 19 public: 20 20 21 GWt_ drift() {;}22 GWt_ drift(GWt_elementLigneFaisceau* );23 ~GWt_ drift() {;}21 GWt_elementDrift() {;} 22 GWt_elementDrift(GWt_elementLigneFaisceau* ); 23 ~GWt_elementDrift() {;} 24 24 25 25 virtual void dialogDone(WDialog::DialogCode code); 26 WImage* getImage();27 26 28 27 inline string getMimeType() {return "htdocs/drift.jpg"; } -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementFit.h
r436 r437 1 #ifndef GW T_FIT_SEEN2 #define GW T_FIT_SEEN1 #ifndef GWt_elementFit_SEEN 2 #define GWt_elementFit_SEEN 3 3 4 4 #include "GWt_abstractElement.h" 5 5 6 class GWt_ fit : public GWt_abstractElement6 class GWt_elementFit : public GWt_abstractElement 7 7 { 8 8 … … 13 13 public : 14 14 15 GWt_ fit() {;}16 GWt_ fit(GWt_elementLigneFaisceau* );17 ~GWt_ fit() {;}15 GWt_elementFit() {;} 16 GWt_elementFit(GWt_elementLigneFaisceau* ); 17 ~GWt_elementFit() {;} 18 18 19 19 virtual void dialogDone(WDialog::DialogCode code); 20 WImage* getImage();21 20 22 21 inline string getMimeType() {return "htdocs/fit.jpg"; } -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementLigneFaisceau.h
r418 r437 2 2 #define GWt_elementLigneFaisceau_SEEN 3 3 4 #include "abstractElement.h"5 4 #include "GWt_abstractElement.h" 6 5 #include "GWt_dropZoneLigneFaisceau.h" -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementMpole.h
r436 r437 1 #ifndef GRAPHMPOLEELEMENT_SEEN 2 #define GRAPHMPOLEELEMENT_SEEN 1 #ifndef GWt_elementMpole_SEEN 2 #define GWt_elementMpole_SEEN 3 3 4 4 5 #include "GWt_abstractElement.h" … … 12 13 using namespace std; 13 14 14 class GWt_ mpole : public GWt_abstractElement15 class GWt_elementMpole : public GWt_abstractElement 15 16 { 16 17 WLineEdit* orderEdit_; … … 19 20 public : 20 21 21 GWt_ mpole() {;}22 GWt_ mpole(GWt_elementLigneFaisceau*);23 ~GWt_ mpole() {;}22 GWt_elementMpole() {;} 23 GWt_elementMpole(GWt_elementLigneFaisceau*); 24 ~GWt_elementMpole() {;} 24 25 25 26 virtual void dialogDone(WDialog::DialogCode code); -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementRfgun.h
r436 r437 1 #ifndef GW T_RFGUN_SEEN2 #define GW T_RFGUN_SEEN1 #ifndef GWt_elementRfgun_SEEN 2 #define GWt_elementRfgun_SEEN 3 3 4 4 #include "GWt_abstractElement.h" 5 #include "abstractElement.h"6 5 7 6 #include <iostream> … … 12 11 using namespace std; 13 12 14 15 class GWt_rfgun : public GWt_abstractElement 13 class GWt_elementRfgun : public GWt_abstractElement 16 14 { 17 15 WLineEdit* nmacropEdit_; … … 26 24 public : 27 25 28 GWt_ rfgun() {;}29 GWt_ rfgun(GWt_elementLigneFaisceau* );30 ~GWt_ rfgun() {;}26 GWt_elementRfgun() {;} 27 GWt_elementRfgun(GWt_elementLigneFaisceau* ); 28 ~GWt_elementRfgun() {;} 31 29 32 30 virtual void dialogDone(WDialog::DialogCode code); 33 WImage* getImage();34 31 35 32 inline string getMimeType() {return "htdocs/rfgun.jpg"; } -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementSnapshot.h
r436 r437 1 #ifndef G RAPHSNAPSHOTELEMENT_SEEN2 #define G RAPHSNAPSHOTELEMENT_SEEN1 #ifndef GWt_elementSnapshot_SEEN 2 #define GWt_elementSnapshot_SEEN 3 3 4 4 #include "GWt_abstractElement.h" … … 12 12 using namespace std; 13 13 14 class GWt_ snapshot : public GWt_abstractElement14 class GWt_elementSnapshot : public GWt_abstractElement 15 15 { 16 16 WLineEdit* snapshotFile_; … … 18 18 public: 19 19 20 GWt_ snapshot() {;}21 GWt_ snapshot(GWt_elementLigneFaisceau*,int);22 ~GWt_ snapshot() {;}20 GWt_elementSnapshot() {;} 21 GWt_elementSnapshot(GWt_elementLigneFaisceau*,int); 22 ~GWt_elementSnapshot() {;} 23 23 24 24 virtual void dialogDone(WDialog::DialogCode code); 25 WImage* getImage();26 25 27 26 inline string getMimeType() {return "htdocs/snapshot.jpg"; } -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementSoleno.h
r436 r437 1 #ifndef GW TSOLENO_SEEN2 #define GW TSOLENO_SEEN1 #ifndef GWt_elementSoleno_SEEN 2 #define GWt_elementSoleno_SEEN 3 3 4 4 #include <Wt/WCheckBox> … … 14 14 using namespace std; 15 15 16 class GWt_ soleno : public GWt_abstractElement16 class GWt_elementSoleno : public GWt_abstractElement 17 17 { 18 18 WLineEdit* xlengthEdit_; … … 25 25 public : 26 26 27 GWt_ soleno() {;}28 GWt_ soleno(GWt_elementLigneFaisceau* );29 ~GWt_ soleno() {;}27 GWt_elementSoleno() {;} 28 GWt_elementSoleno(GWt_elementLigneFaisceau* ); 29 ~GWt_elementSoleno() {;} 30 30 31 31 virtual void dialogDone(WDialog::DialogCode code); -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_ligneFaisceau.h
r418 r437 1 #ifndef LIGNEFAISCEAU_SEEN2 #define LIGNEFAISCEAU_SEEN1 #ifndef GWt_LIGNEFAISCEAU_SEEN 2 #define GWt_LIGNEFAISCEAU_SEEN 3 3 4 4 #include "dataManager.h" -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_pspaApplication.h
r431 r437 1 #ifndef PSPA_SEEN2 #define PSPA_SEEN1 #ifndef GWt_PSPA_Application_SEEN 2 #define GWt_PSPA_Application_SEEN 3 3 4 4 #include <cstdlib> … … 22 22 #include "GWt_dialog.h" 23 23 #include "GWt_console.h" 24 #include "GWt_abstractElementFactory.h"25 24 #include "GWt_softwarePanel.h" 26 25 #include "GWt_ligneFaisceau.h" … … 29 28 30 29 #include "dataManager.h" 30 31 class GWt_abstractElementFactory; 31 32 32 33 using namespace Wt; -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_softwarePanel.h
r431 r437 7 7 // 8 8 9 #ifndef __PSPA__GWt_softwarePanel__10 #define __PSPA__GWt_softwarePanel__9 #ifndef GWt_softwarePanel_SEEN 10 #define GWt_softwarePanel_SEEN 11 11 12 12 #include <iostream> -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_abstractElement.cc
r431 r437 7 7 #include "GWt_abstractElement.h" 8 8 #include "GWt_elementLigneFaisceau.h" 9 #include "GWt_rfgun.h"10 #include "GWt_drift.h"11 #include "GWt_cell.h"12 #include "GWt_bend.h"13 #include "GWt_soleno.h"14 #include "GWt_beam.h"15 #include "GWt_fit.h"16 //#include "GWt_snapshot.h"17 9 18 10 #include "GWt_draggableImage.h" -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_abstractElementFactory.cc
r431 r437 34 34 } 35 35 36 GWt_ drift* GWt_abstractElementFactory::createDriftElement()36 GWt_elementDrift* GWt_abstractElementFactory::createDriftElement() 37 37 { 38 38 if (isDriftElementEnable) { 39 return new GWt_ drift();39 return new GWt_elementDrift(); 40 40 } 41 41 return NULL; 42 42 } 43 43 44 GWt_ rfgun* GWt_abstractElementFactory::createRFGunElement()44 GWt_elementRfgun* GWt_abstractElementFactory::createRFGunElement() 45 45 { 46 46 if (isRFGunElementEnable) { 47 return new GWt_ rfgun();47 return new GWt_elementRfgun(); 48 48 } 49 49 return NULL; 50 50 } 51 51 52 GWt_ cell* GWt_abstractElementFactory::createCellElement()52 GWt_elementCell* GWt_abstractElementFactory::createCellElement() 53 53 { 54 54 if (isCellElementEnable) { 55 return new GWt_ cell();55 return new GWt_elementCell(); 56 56 } 57 57 return NULL; 58 58 } 59 59 60 GWt_ bend* GWt_abstractElementFactory::createBendElement()60 GWt_elementBend* GWt_abstractElementFactory::createBendElement() 61 61 { 62 62 if (isBendElementEnable) { 63 return new GWt_ bend();63 return new GWt_elementBend(); 64 64 } 65 65 return NULL; 66 66 } 67 67 68 GWt_ soleno* GWt_abstractElementFactory::createSolenoElement()68 GWt_elementSoleno* GWt_abstractElementFactory::createSolenoElement() 69 69 { 70 70 if (isSolenoElementEnable) { 71 return new GWt_ soleno();71 return new GWt_elementSoleno(); 72 72 } 73 73 return NULL; 74 74 } 75 75 76 GWt_ beam* GWt_abstractElementFactory::createBeamElement()76 GWt_elementBeam* GWt_abstractElementFactory::createBeamElement() 77 77 { 78 78 if (isBeamElementEnable) { 79 return new GWt_ beam();79 return new GWt_elementBeam(); 80 80 } 81 81 return NULL; 82 82 } 83 83 84 GWt_ fit* GWt_abstractElementFactory::createFitElement()84 GWt_elementFit* GWt_abstractElementFactory::createFitElement() 85 85 { 86 86 if (isFitElementEnable) { 87 return new GWt_ fit();87 return new GWt_elementFit(); 88 88 } 89 89 return NULL; 90 90 } 91 91 92 GWt_ snapshot* GWt_abstractElementFactory::createSnapshotElement()92 GWt_elementSnapshot* GWt_abstractElementFactory::createSnapshotElement() 93 93 { 94 94 if (isSnapshotElementEnable) { 95 return new GWt_ snapshot();95 return new GWt_elementSnapshot(); 96 96 } 97 97 return NULL; 98 98 } 99 99 100 GWt_ mpole* GWt_abstractElementFactory::createMPoleElement()100 GWt_elementMpole* GWt_abstractElementFactory::createMPoleElement() 101 101 { 102 102 if (isMPoleElementEnable) { 103 return new GWt_ mpole();103 return new GWt_elementMpole(); 104 104 } 105 105 return NULL; … … 110 110 vector <GWt_abstractElement*> elems; 111 111 if (isRFGunElementEnable) { 112 elems.push_back(new GWt_ rfgun());112 elems.push_back(new GWt_elementRfgun()); 113 113 } 114 114 if (isBeamElementEnable) { 115 elems.push_back(new GWt_ beam());115 elems.push_back(new GWt_elementBeam()); 116 116 } 117 117 if (isDriftElementEnable) { 118 elems.push_back(new GWt_ drift());118 elems.push_back(new GWt_elementDrift()); 119 119 } 120 120 if (isBendElementEnable) { 121 elems.push_back(new GWt_ bend());121 elems.push_back(new GWt_elementBend()); 122 122 } 123 123 if (isCellElementEnable) { 124 elems.push_back(new GWt_ cell());124 elems.push_back(new GWt_elementCell()); 125 125 } 126 126 if (isSolenoElementEnable) { 127 elems.push_back(new GWt_ soleno());127 elems.push_back(new GWt_elementSoleno()); 128 128 } 129 129 if (isFitElementEnable) { 130 elems.push_back(new GWt_ fit());130 elems.push_back(new GWt_elementFit()); 131 131 } 132 132 if (isSnapshotElementEnable) { 133 elems.push_back(new GWt_ snapshot());133 elems.push_back(new GWt_elementSnapshot()); 134 134 } 135 135 if (isMPoleElementEnable) { 136 elems.push_back(new GWt_ mpole());136 elems.push_back(new GWt_elementMpole()); 137 137 } 138 138 -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_dropZoneLigneFaisceau.cc
r418 r437 4 4 #include <Wt/WApplication> 5 5 6 #include "GWt_abstractElementFactory.h" 6 7 #include "GWt_dropZoneLigneFaisceau.h" 7 8 #include "GWt_ligneFaisceau.h" -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementBeam.cc
r436 r437 1 #include "GWt_ beam.h"1 #include "GWt_elementBeam.h" 2 2 #include "mixedTools.h" 3 3 … … 8 8 #include <Wt/WPushButton> 9 9 10 GWt_ beam::GWt_beam(GWt_elementLigneFaisceau* elemLigne)10 GWt_elementBeam::GWt_elementBeam(GWt_elementLigneFaisceau* elemLigne) 11 11 :GWt_abstractElement(new elementBeam()) 12 12 { … … 15 15 } 16 16 17 void GWt_ beam::initilializeDialog()17 void GWt_elementBeam::initilializeDialog() 18 18 { 19 19 string* param = beginDialog(); … … 63 63 WPushButton *submit= new WPushButton("OK",dialog_->contents()); 64 64 submit->clicked().connect(dialog_, &Wt::WDialog::accept); 65 dialog_->finished().connect(this, &GWt_ beam::dialogDone);65 dialog_->finished().connect(this, &GWt_elementBeam::dialogDone); 66 66 } 67 67 68 void GWt_ beam::dialogDone(WDialog::DialogCode code)68 void GWt_elementBeam::dialogDone(WDialog::DialogCode code) 69 69 { 70 70 if (code != Wt::WDialog::Accepted) return; … … 84 84 envoi[++compteur] = p0Edit_->text().toUTF8(); 85 85 if ( compteur != (int)nbParam ) { 86 cerr << " GWt_ beam::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl;86 cerr << " GWt_elementBeam::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl; 87 87 return; 88 88 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementBend.cc
r436 r437 1 1 2 #include "GWt_ bend.h"2 #include "GWt_elementBend.h" 3 3 #include "mixedTools.h" 4 4 … … 9 9 #include <Wt/WPushButton> 10 10 11 GWt_ bend::GWt_bend(GWt_elementLigneFaisceau* elemLigne )11 GWt_elementBend::GWt_elementBend(GWt_elementLigneFaisceau* elemLigne ) 12 12 :GWt_abstractElement(new elementBend()) 13 13 { … … 16 16 } 17 17 18 void GWt_ bend::initilializeDialog()18 void GWt_elementBend::initilializeDialog() 19 19 { 20 20 string* param = beginDialog(); … … 52 52 WPushButton *submit= new WPushButton("OK",dialog_->contents()); 53 53 submit->clicked().connect(dialog_, &Wt::WDialog::accept); 54 dialog_->finished().connect(this, &GWt_ bend::dialogDone);54 dialog_->finished().connect(this, &GWt_elementBend::dialogDone); 55 55 } 56 56 57 void GWt_ bend::dialogDone(WDialog::DialogCode code)57 void GWt_elementBend::dialogDone(WDialog::DialogCode code) 58 58 { 59 59 if (code != Wt::WDialog::Accepted) return; … … 72 72 envoi[++compteur] = beta2Edit_->text().toUTF8(); 73 73 if ( compteur != (int)nbParam ) { 74 cerr << " GWt_ bend::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl;74 cerr << " GWt_elementBend::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl; 75 75 return; 76 76 } … … 80 80 } 81 81 82 WImage* GWt_bend::getImage() {83 return image_;84 }85 -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementCell.cc
r436 r437 1 1 2 #include "GWt_ cell.h"2 #include "GWt_elementCell.h" 3 3 #include "mixedTools.h" 4 4 … … 10 10 #include <Wt/WPanel> 11 11 12 GWt_ cell::GWt_cell(GWt_elementLigneFaisceau* elemLigne)12 GWt_elementCell::GWt_elementCell(GWt_elementLigneFaisceau* elemLigne) 13 13 :GWt_abstractElement(new elementCell()) 14 14 { … … 17 17 } 18 18 19 void GWt_ cell::initilializeDialog()19 void GWt_elementCell::initilializeDialog() 20 20 { 21 21 string* param = beginDialog(); … … 74 74 WPushButton *submit= new WPushButton("OK",dialog_->contents()); 75 75 submit->clicked().connect(dialog_, &Wt::WDialog::accept); 76 dialog_->finished().connect(this, &GWt_ cell::dialogDone);76 dialog_->finished().connect(this, &GWt_elementCell::dialogDone); 77 77 } 78 78 79 void GWt_ cell::dialogDone(WDialog::DialogCode code)79 void GWt_elementCell::dialogDone(WDialog::DialogCode code) 80 80 { 81 81 if (code != Wt::WDialog::Accepted) return; … … 97 97 envoi[++compteur] = scaleFactorEdit_->text().toUTF8(); 98 98 if ( compteur != (int)nbParam ) { 99 cerr << " GWt_ cell::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl;99 cerr << " GWt_elementCell::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl; 100 100 return; 101 101 } … … 104 104 delete [] envoi; 105 105 } 106 107 WImage* GWt_cell::getImage() {108 return image_;109 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementDrift.cc
r436 r437 1 1 2 #include "GWt_ drift.h"2 #include "GWt_elementDrift.h" 3 3 #include "mixedTools.h" 4 4 … … 9 9 #include <Wt/WPushButton> 10 10 11 GWt_ drift::GWt_drift(GWt_elementLigneFaisceau* elemLigne)11 GWt_elementDrift::GWt_elementDrift(GWt_elementLigneFaisceau* elemLigne) 12 12 :GWt_abstractElement(new elementDrift()) 13 13 { … … 16 16 } 17 17 18 void GWt_ drift::initilializeDialog()18 void GWt_elementDrift::initilializeDialog() 19 19 { 20 20 string* param = beginDialog(); … … 31 31 WPushButton *submit= new WPushButton("OK",dialog_->contents()); 32 32 submit->clicked().connect(dialog_, &Wt::WDialog::accept); 33 dialog_->finished().connect(this, &GWt_ drift::dialogDone);33 dialog_->finished().connect(this, &GWt_elementDrift::dialogDone); 34 34 } 35 35 36 void GWt_ drift::dialogDone(WDialog::DialogCode code)36 void GWt_elementDrift::dialogDone(WDialog::DialogCode code) 37 37 { 38 38 if (code != Wt::WDialog::Accepted) return; … … 47 47 envoi[++compteur] = apertureEdit_->text().toUTF8(); 48 48 if ( compteur != (int)nbParam ) { 49 cerr << " GWt_ drift::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl;49 cerr << " GWt_elementDrift::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl; 50 50 return; 51 51 } … … 55 55 } 56 56 57 WImage* GWt_drift::getImage() {58 return image_;59 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementFit.cc
r436 r437 1 #include "GWt_ fit.h"1 #include "GWt_elementFit.h" 2 2 #include "mixedTools.h" 3 3 … … 9 9 #include <Wt/WComboBox> 10 10 11 GWt_ fit::GWt_fit(GWt_elementLigneFaisceau* elemLigne)11 GWt_elementFit::GWt_elementFit(GWt_elementLigneFaisceau* elemLigne) 12 12 :GWt_abstractElement(new elementFit()) 13 13 { … … 16 16 } 17 17 18 void GWt_ fit::initilializeDialog()18 void GWt_elementFit::initilializeDialog() 19 19 { 20 20 string* param = beginDialog(); … … 54 54 WPushButton *submit= new WPushButton("OK",dialog_->contents()); 55 55 submit->clicked().connect(dialog_, &Wt::WDialog::accept); 56 dialog_->finished().connect(this, &GWt_ fit::dialogDone);56 dialog_->finished().connect(this, &GWt_elementFit::dialogDone); 57 57 } 58 58 59 void GWt_ fit::dialogDone(WDialog::DialogCode code)59 void GWt_elementFit::dialogDone(WDialog::DialogCode code) 60 60 { 61 61 if (code != Wt::WDialog::Accepted) return; … … 68 68 envoi[++compteur] = labelEdit_->text().toUTF8(); 69 69 string variableString = nameEdit_->currentText().toUTF8(); 70 cout << " GWt_ fit::dialogDone() variable a fitter : " << variableString << endl;70 cout << " GWt_elementFit::dialogDone() variable a fitter : " << variableString << endl; 71 71 envoi[++compteur] = variableString; 72 72 envoi[++compteur] = valueEdit_->text().toUTF8(); 73 73 envoi[++compteur] = tolerEdit_->text().toUTF8(); 74 74 if ( compteur != (int)nbParam ) { 75 cerr << " GWt_ fit::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl;75 cerr << " GWt_elementFit::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl; 76 76 return; 77 77 } … … 81 81 } 82 82 83 WImage* GWt_fit::getImage() {84 return image_;85 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementLigneFaisceau.cc
r431 r437 2 2 3 3 #include "GWt_elementLigneFaisceau.h" 4 #include "GWt_abstractElementFactory.h" 4 5 #include "nomdElements.h" 5 6 #include "GWt_console.h" 6 7 #include "abstractElement.h" 7 #include "GWt_rfgun.h"8 #include "GWt_drift.h"9 #include "GWt_cell.h"10 #include "GWt_bend.h"11 #include "GWt_soleno.h"12 #include "GWt_beam.h"13 #include "GWt_fit.h"14 #include "GWt_snapshot.h"15 #include "GWt_mpole.h"16 8 17 9 … … 95 87 switch ( eType ) { 96 88 case nomdElements::RFgun : 97 GWt_abstractElement_ = new GWt_ rfgun(this);89 GWt_abstractElement_ = new GWt_elementRfgun(this); 98 90 break; 99 91 case nomdElements::drift : 100 GWt_abstractElement_ = new GWt_ drift(this);92 GWt_abstractElement_ = new GWt_elementDrift(this); 101 93 break; 102 94 case nomdElements::cell : 103 GWt_abstractElement_ = new GWt_ cell(this);95 GWt_abstractElement_ = new GWt_elementCell(this); 104 96 break; 105 97 case nomdElements::bend : 106 GWt_abstractElement_ = new GWt_ bend(this);98 GWt_abstractElement_ = new GWt_elementBend(this); 107 99 break; 108 100 case nomdElements::soleno : 109 GWt_abstractElement_ = new GWt_ soleno(this);101 GWt_abstractElement_ = new GWt_elementSoleno(this); 110 102 break; 111 103 case nomdElements::beam : 112 GWt_abstractElement_ = new GWt_ beam(this);104 GWt_abstractElement_ = new GWt_elementBeam(this); 113 105 break; 114 106 case nomdElements::fit : 115 GWt_abstractElement_ = new GWt_ fit(this);107 GWt_abstractElement_ = new GWt_elementFit(this); 116 108 break; 117 109 case nomdElements::mpole : 118 GWt_abstractElement_ = new GWt_ mpole(this);110 GWt_abstractElement_ = new GWt_elementMpole(this); 119 111 break; 120 112 case nomdElements::snapshot : … … 123 115 incr++; 124 116 pspa_->setExtensionFile(incr); 125 GWt_abstractElement_ = new GWt_ snapshot(this,incr);117 GWt_abstractElement_ = new GWt_elementSnapshot(this,incr); 126 118 break; 127 119 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementMpole.cc
r436 r437 1 1 2 #include "GWt_ mpole.h"2 #include "GWt_elementMpole.h" 3 3 #include "mixedTools.h" 4 4 … … 9 9 #include <Wt/WPushButton> 10 10 11 GWt_ mpole::GWt_mpole(GWt_elementLigneFaisceau* elm) : GWt_abstractElement(new elementMultipole())11 GWt_elementMpole::GWt_elementMpole(GWt_elementLigneFaisceau* elm) : GWt_abstractElement(new elementMultipole()) 12 12 { 13 13 elementLigneFaiseauContainer_ = elm; … … 15 15 } 16 16 17 void GWt_ mpole::initilializeDialog()17 void GWt_elementMpole::initilializeDialog() 18 18 { 19 19 string* param = beginDialog(); … … 29 29 WPushButton *submit= new WPushButton("OK",dialog_->contents()); 30 30 submit->clicked().connect(dialog_, &Wt::WDialog::accept); 31 dialog_->finished().connect(this, &GWt_ mpole::dialogDone);31 dialog_->finished().connect(this, &GWt_elementMpole::dialogDone); 32 32 } 33 33 34 void GWt_ mpole::dialogDone(WDialog::DialogCode code)34 void GWt_elementMpole::dialogDone(WDialog::DialogCode code) 35 35 { 36 36 if (code != Wt::WDialog::Accepted) return; … … 45 45 envoi[++compteur] = componentEdit_->text().toUTF8(); 46 46 if ( compteur != (int)nbParam ) { 47 cerr << " GWt_ mpole::dialogDone() : pb dans le nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl;47 cerr << " GWt_elementMpole::dialogDone() : pb dans le nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl; 48 48 return; 49 49 } … … 54 54 } 55 55 56 WImage* GWt_ mpole::getImage() {56 WImage* GWt_elementMpole::getImage() { 57 57 return image_; 58 58 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementRfgun.cc
r436 r437 1 #include "GWt_ rfgun.h"1 #include "GWt_elementRfgun.h" 2 2 #include "mixedTools.h" 3 3 … … 8 8 #include <Wt/WPushButton> 9 9 10 GWt_ rfgun::GWt_rfgun(GWt_elementLigneFaisceau* elemLigne)10 GWt_elementRfgun::GWt_elementRfgun(GWt_elementLigneFaisceau* elemLigne) 11 11 :GWt_abstractElement(new elementRfgun()) 12 12 { … … 15 15 } 16 16 17 void GWt_ rfgun::initilializeDialog()17 void GWt_elementRfgun::initilializeDialog() 18 18 { 19 19 string* param = beginDialog(); … … 53 53 WPushButton *submit= new WPushButton("OK",dialog_->contents()); 54 54 submit->clicked().connect(dialog_, &Wt::WDialog::accept); 55 dialog_->finished().connect(this, &GWt_ rfgun::dialogDone);55 dialog_->finished().connect(this, &GWt_elementRfgun::dialogDone); 56 56 } 57 57 58 void GWt_ rfgun::dialogDone(WDialog::DialogCode code)58 void GWt_elementRfgun::dialogDone(WDialog::DialogCode code) 59 59 { 60 60 if (code != Wt::WDialog::Accepted) return; … … 75 75 envoi[++compteur] = totalChargeEdit_->text().toUTF8(); 76 76 if ( compteur != (int)nbParam ) { 77 cerr << " GWt_ rfgun::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl;77 cerr << " GWt_elementRfgun::dialogDone() pb nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl; 78 78 return; 79 79 } … … 82 82 delete [] envoi; 83 83 } 84 85 WImage* GWt_rfgun::getImage() {86 return image_;87 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementSnapshot.cc
r436 r437 1 1 2 #include "GWt_ snapshot.h"2 #include "GWt_elementSnapshot.h" 3 3 #include "mixedTools.h" 4 4 … … 9 9 #include <Wt/WPushButton> 10 10 11 GWt_ snapshot::GWt_snapshot(GWt_elementLigneFaisceau* elemLigne, int num) : GWt_abstractElement(new elementSnapshot(num))11 GWt_elementSnapshot::GWt_elementSnapshot(GWt_elementLigneFaisceau* elemLigne, int num) : GWt_abstractElement(new elementSnapshot(num)) 12 12 { 13 13 elementLigneFaiseauContainer_ = elemLigne; … … 15 15 } 16 16 17 void GWt_ snapshot::initilializeDialog()17 void GWt_elementSnapshot::initilializeDialog() 18 18 { 19 19 string* param = beginDialog(); … … 27 27 WPushButton *submit= new WPushButton("OK",dialog_->contents()); 28 28 submit->clicked().connect(dialog_,&Wt::WDialog::accept); 29 dialog_->finished().connect(this, &GWt_ snapshot::dialogDone);29 dialog_->finished().connect(this, &GWt_elementSnapshot::dialogDone); 30 30 } 31 31 32 void GWt_ snapshot::dialogDone(WDialog::DialogCode code)32 void GWt_elementSnapshot::dialogDone(WDialog::DialogCode code) 33 33 { 34 34 if (code != Wt::WDialog::Accepted) return; … … 42 42 envoi[++compteur] = snapshotFile_->text().toUTF8(); 43 43 if ( compteur != (int)nbParam ) { 44 cerr << " GWt_ snapshot::dialogDone() : pb dans le nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl;44 cerr << " GWt_elementSnapshot::dialogDone() : pb dans le nb de parametres, compteur = " << compteur << " nbParam= " << nbParam << endl; 45 45 return; 46 46 } … … 49 49 delete [] envoi; 50 50 } 51 52 WImage* GWt_snapshot::getImage() {53 return image_;54 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementSoleno.cc
r436 r437 1 #include "GWt_ soleno.h"1 #include "GWt_elementSoleno.h" 2 2 #include "mixedTools.h" 3 3 … … 8 8 #include <Wt/WPushButton> 9 9 10 GWt_ soleno::GWt_soleno(GWt_elementLigneFaisceau* elemLigne)10 GWt_elementSoleno::GWt_elementSoleno(GWt_elementLigneFaisceau* elemLigne) 11 11 :GWt_abstractElement(new elementSoleno()) 12 12 { … … 15 15 } 16 16 17 void GWt_ soleno::initilializeDialog()17 void GWt_elementSoleno::initilializeDialog() 18 18 { 19 19 string* param = beginDialog(); … … 35 35 WPushButton *submit= new WPushButton("OK",dialog_->contents()); 36 36 submit->clicked().connect(dialog_, &Wt::WDialog::accept); 37 dialog_->finished().connect(this, &GWt_ soleno::dialogDone);37 dialog_->finished().connect(this, &GWt_elementSoleno::dialogDone); 38 38 } 39 39 40 void GWt_ soleno::dialogDone(WDialog::DialogCode code)40 void GWt_elementSoleno::dialogDone(WDialog::DialogCode code) 41 41 { 42 42 if (code != Wt::WDialog::Accepted) return; … … 63 63 delete [] envoi; 64 64 } 65 66 WImage* GWt_soleno::getImage() {67 return image_;68 } -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_ligneFaisceau.cc
r431 r437 4 4 #include "GWt_ligneFaisceau.h" 5 5 6 #include "GWt_drift.h"7 #include "GWt_rfgun.h"8 #include "GWt_cell.h"9 #include "GWt_soleno.h"10 #include "GWt_bend.h"11 6 #include "nomDeLogiciel.h" 12 7 -
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
r436 r437 4 4 #include "GWt_pspaApplication.h" 5 5 #include "GWt_draggableImage.h" 6 #include "GWt_abstractElementFactory.h" 6 7 #include "GWt_serverFileSelector.h" 7 8 #include "particleBeam.h"
Note: See TracChangeset
for help on using the changeset viewer.