Changeset 437 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src
- Timestamp:
- Dec 6, 2013, 4:45:25 PM (11 years ago)
- Location:
- Interface_Web/trunk/pspaWT/sources/userInterface/src
- Files:
-
- 6 edited
- 9 copied
Legend:
- Unmodified
- Added
- Removed
-
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.