source: PSPA/Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_accelerator.h @ 474

Last change on this file since 474 was 474, checked in by garnier, 10 years ago

prise en charge de la restauration dun fichier de sauvegarde

File size: 2.0 KB
Line 
1#ifndef GWT_Accelerator_SEEN
2#define GWT_Accelerator_SEEN
3
4#include <iostream>
5
6#include <Wt/WContainerWidget>
7#include <Wt/WScrollArea>
8#include <Wt/WComboBox>
9#include <Wt/WDialog>
10#include <Wt/WPdfImage>
11#include <Wt/Chart/WCartesianChart>
12#include <Wt/WLength>
13
14#include "dataManager.h"
15
16#include "GWt_dialog.h"
17
18using namespace Wt;
19
20using namespace std;
21
22class GWt_accelerator : public WContainerWidget
23{
24 
25public:
26  GWt_accelerator(WContainerWidget*, dataManager*);
27  virtual ~GWt_accelerator();
28  inline WContainerWidget* getAcceleratorDetailledView() {return acceleratorDetailledView_;};
29  inline WLayout* getAcceleratorGlobalViewLayout() {return acceleratorGlobalViewLayout_;};
30  inline dataManager* getDataManager() { return dataManager_;};
31  void faireDessin();
32  WContainerWidget* createDrawingWidget();
33
34  private :
35  WContainerWidget* acceleratorDetailledView_;
36  void addSector();
37  void readConfiguration();
38  void run();
39  void closeGraphicDialog();
40  void dialogOnGraphics();
41  void dessiner();
42  void faireDessinPhaseSpace(WContainerWidget* toto, particleBeam* beam, string elementLabel, string namex, string namey, int typeFaisceau);
43  void faireDessinEnveloppe(WContainerWidget* toto, string type);
44  void dessinerEnveloppe();
45  void dessinerPhaseSpace();
46  void dessinerHistogramme();
47  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);
48  bool areDataCoherent();
49
50
51  WLayout* acceleratorGlobalViewLayout_;
52  dataManager* dataManager_;
53  WComboBox* choixElementDessin_;
54  WComboBox* choixTypeDessinFaisceau_;
55  WComboBox* choixAbsPhase_;
56  WComboBox* choixOrdPhase_;
57  WComboBox* choixEnveloppeDessin_;
58  WComboBox* choixHistoDessin_;
59  WComboBox* choixVariableHisto_;
60  GWt_dialog* graphicsDialog_;
61  WButtonGroup *group_;
62  vector<GWt_dialog*> eDialog_;
63  WContainerWidget* toto_;
64  string nameOfCase_;
65
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.