Changeset 426 in PSPA
- Timestamp:
- Oct 25, 2013, 3:50:49 PM (11 years ago)
- Location:
- Interface_Web/trunk/pspaWT/sources/userInterface/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_globalParameters.h
r272 r426 2 2 #define GWT_GLOBALPARAMETERS_SEEN 3 3 4 #include "GWt_pspaApplication.h"4 #include <string> 5 5 6 6 #include <Wt/WApplication> 7 7 #include <Wt/WContainerWidget> 8 #include <Wt/W Panel>9 8 #include <Wt/WDialog> 9 #include <Wt/WText> 10 10 11 11 using namespace Wt; 12 12 using namespace std; 13 13 14 class dataManager; 15 14 16 class GWt_globalParameters : public WContainerWidget 15 17 { 16 17 PspaApplication* pspa_; 18 // dataManager* dtmanage_; 19 WLineEdit* frequencyEdit_; 20 WLineEdit* stepEdit_; 21 WLineEdit* nstepMAxEdit_; 22 WLineEdit* nscEdit_; 23 24 // vector<WComboBox*> sectionSelection_; 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_; 36 37 GWt_globalParameters() {;} 38 39 public: 40 41 // GWt_globalParameters(dataManager* dt); 42 GWt_globalParameters(PspaApplication* ps); 43 44 void updateGlobals(); 45 46 47 void renew(); 48 49 // void addElem(); 50 51 // void addSection(); 52 53 // void getExecute(unsigned index, unsigned& first, unsigned& last, int& programm); 54 55 // void lancerCalcul(); 56 18 WLineEdit* frequencyEdit_; 19 WLineEdit* stepEdit_; 20 WLineEdit* nstepMAxEdit_; 21 WLineEdit* nscEdit_; 22 23 dataManager* dt_; 24 WText *status_; 25 WDialog *dialog_; 26 string envoi_[5]; 27 28 string* dialogBegin(); 29 void setStatus(); 30 31 public : 32 33 GWt_globalParameters() {;} 34 GWt_globalParameters(dataManager*); 35 GWt_globalParameters(dataManager*,WContainerWidget*); 36 virtual ~GWt_globalParameters() {;} 37 38 void initilializeDialog(); 39 void dialogDone(WDialog::DialogCode code); 40 void updateGlobals(); 41 void renew(); 42 string* getGlobalParameters(); 57 43 }; 58 44 #endif -
Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_pspaApplication.h
r417 r426 19 19 20 20 #include "GWt_dialog.h" 21 #include "dataManager.h"22 21 #include "GWt_console.h" 23 22 #include "GWt_abstractElementFactory.h" 24 23 #include "GWt_softwarePanel.h" 25 24 #include "GWt_ligneFaisceau.h" 25 #include "GWt_globalParameters.h" 26 27 #include "dataManager.h" 26 28 27 29 using namespace Wt; … … 31 33 32 34 private : 33 35 34 36 dataManager* dtmanage_; 35 37 string nameOfCase_; … … 41 43 GWt_LigneFaisceau* beamLine_; 42 44 43 WWidget* globalParam_; 45 // WWidget* globalParam_; 46 GWt_globalParameters* globalParam_; // xx 47 44 48 GWt_dialog* graphicsDialog_; 45 49 WButtonGroup *group_; … … 66 70 WWidget* createPalette(); 67 71 WWidget* createBeamLine(); 68 WWidget* createGlobalParamWidget();69 72 WWidget* createExecuteWidget(); 70 73 WContainerWidget* createDrawingWidget(); 71 74 75 //WWidget* createGlobalParamWidget(); 76 WWidget* createDashBoard(); // xx 77 void messageBox1(); // xx 78 void messageBox2(); // xx 79 72 80 // extensions (.001, .002,...) pour les fichiers "snapshot" 73 81 int extensionFile_; 74 75 82 void closeGraphicDialog(); 76 83 … … 85 92 void dialogOnGraphics(); 86 93 void faireDessinPhaseSpace(WContainerWidget* toto, particleBeam* beam, string elementLabel, string namex, string namey, int typeFaisceau); 87 88 // void setModelComponentForPhaseSpace(WStandardItemModel* model, vector<bareParticle>& partic, unsigned indexParticleComponent, unsigned modelComponent);89 //void faireDessinParmela(WContainerWidget* toto, particleBeam* beam, string namex, string namey );90 // void faireDessinTransport(WContainerWidget* toto, particleBeam* beam, string namex, string namey);91 94 void faireDessinEnveloppe(WContainerWidget* toto, string type); 92 // void scatterPlot1D(WContainerWidget* toto, vector<double>& xcor, vector<double>& ycor);93 94 // void chartPlot2vec(WContainerWidget* toto, vector<double>& xcor, vector<double>& ycor, bool drawPoints, string title, string legendx, string legendy, int width, int height, bool makeIcon=false);95 95 void chartPlot2vec(WContainerWidget* toto,vector<double>& xcor,vector<double>& ycor,Wt::Chart::SeriesType seriesType,Wt::Chart::FillRangeType fillRange,Wt::Chart::AxisValue value,bool isGridLinesEnables,string title,string legendx,string legendy,int width,int height,bool makeIcon = false); 96 96 … … 102 102 void dessinerEnveloppe(); 103 103 void dessinerPhaseSpace(); 104 105 104 void dessinerHistogramme(); 106 105 … … 116 115 } 117 116 118 inline WWidget* getGlobalParam(){119 return globalParam_; 117 inline GWt_globalParameters* getGlobalParam() const { 118 return globalParam_; 120 119 } 120 121 122 /* inline WWidget* getGlobalParam() { */ 123 /* return globalParam_; */ 124 /* } */ 121 125 122 126 inline GWt_softwarePanel* getExecuteWidget() {
Note: See TracChangeset
for help on using the changeset viewer.