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

Last change on this file since 495 was 495, checked in by lemeur, 10 years ago

maj de History

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