Changeset 437 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_elementSnapshot.cc
- Timestamp:
- Dec 6, 2013, 4:45:25 PM (11 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.