Ignore:
Timestamp:
Feb 18, 2013, 1:52:42 PM (11 years ago)
Author:
touze
Message:

menu analyse graphique + histo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_pspaApplication.h

    r305 r324  
    1616#include <Wt/Chart/WCartesianChart>
    1717#include <Wt/WLength>
     18#include <Wt/WButtonGroup>
    1819
    1920#include "GWt_dialog.h"
     
    2627using namespace Wt;
    2728
    28 /*
    29  * ESSAI PSPA
    30  */
    3129class PspaApplication : public WApplication
    3230{
    3331       
    34     private :
     32 private :
    3533   
    36     dataManager* dtmanage_;
    37     string nameOfCase_;
    38     string workingDir_;
    39     WDialog* dialogSave_;
    40     WDialog* dialogOpen_;
    41     WLineEdit* saveNameEdit_;
    42     WLineEdit* openNameEdit_;
    43     GWt_LigneFaisceau* beamLine_;
     34  dataManager* dtmanage_;
     35  string nameOfCase_;
     36  string workingDir_;
     37  WDialog* dialogSave_;
     38  WDialog* dialogOpen_;
     39  WLineEdit* saveNameEdit_;
     40  WLineEdit* openNameEdit_;
     41  GWt_LigneFaisceau* beamLine_;
    4442   
     43  // WContainerWidget* console_;
     44  WWidget* globalParam_;
     45  // WContainerWidget* leDessin_;
     46  GWt_dialog* graphicsDialog_;
     47  WButtonGroup *group_;
     48
     49  WText* probleme_;
     50  WComboBox* choixElementDessin_;
     51  WComboBox* choixTypeDessinFaisceau_;
     52  WComboBox* choixEnveloppeDessin_;
     53  WComboBox* choixHistoDessin_;
     54
     55  WContainerWidget* toto_;
     56  GWt_softwarePanel* executeWidget_;
     57  WFileUpload* uploadFileSelectorWidget_;
     58  GWt_console* console_;
     59  GWt_abstractElementFactory* abstractElementFactory_;
     60     
     61  WText* createTitle(const WString&);
     62  WWidget* createPalette();
     63  void createBeamLine();
     64  WWidget* createGlobalParamWidget();
     65  WWidget* createExecuteWidget();
     66  WContainerWidget* createDrawingWidget();
     67  void closeGraphicDialog();
     68 
     69  void createDragImage(const char *url,const char *smallurl,const char *mimeType,WContainerWidget *p,WString());
     70  void sauver();
     71  void dialogSaveDone(WDialog::DialogCode code);
     72  void dialogOpenDone(WDialog::DialogCode code);
     73  void restaurer();
     74  void chargerConfig();
     75  void openFileSelector();
     76  void fileTooLarge();
     77 
     78  void dialogOnGraphics();
     79  void faireDessinParmela(WContainerWidget* toto, particleBeam* beam);
     80  void faireDessinTransport(WContainerWidget* toto, particleBeam* beam);
     81  void faireDessinEnveloppe(WContainerWidget* toto, string type);
     82  void scatterPlot1D(WContainerWidget* toto, vector<double>& xcor, vector<double>& ycor);
    4583   
    46     // WContainerWidget* console_;
    47     WWidget* globalParam_;
    48     // WContainerWidget* leDessin_;
    49     GWt_dialog* graphicsDialog_;
     84  bool removeExtensionFromConfigName(string& config);
    5085   
    51     WText* probleme_;
    52     WComboBox* choixElementDessin_;
    53     WComboBox* choixTypeDessinFaisceau_;
    54     WComboBox* choixEnveloppeDessin_;
    55     WContainerWidget* toto_;
    56     GWt_softwarePanel* executeWidget_;
    57     WFileUpload* uploadFileSelectorWidget_;
    58     GWt_console* console_;
    59     GWt_abstractElementFactory* abstractElementFactory_;
     86  void dessiner();
     87  void dessinerEnveloppe();
     88  void dessinerPhaseSpace();
     89  void dessinerHistogramme();
    6090   
    61    
    62     WText*   createTitle(const WString&);
    63     WWidget* createPalette();
    64     void createBeamLine();
    65     WWidget* createGlobalParamWidget();
    66     WWidget* createExecuteWidget();
    67     WContainerWidget* createDrawingWidget();
    68    
    69     void createDragImage(const char *url,const char *smallurl,const char *mimeType,WContainerWidget *p,WString name);
    70     void sauver();
    71     void dialogSaveDone(WDialog::DialogCode code);
    72     void dialogOpenDone(WDialog::DialogCode code);
    73     void restaurer();
    74     void chargerConfig();
    75     void openFileSelector();
    76     void fileTooLarge();
    77     void dessiner();
    78    
    79     void dialogOnGraphics();
    80     void faireDessinParmela(WContainerWidget* toto, particleBeam* beam);
    81     void faireDessinTransport(WContainerWidget* toto, particleBeam* beam);
    82    
    83     void dessinerEnveloppe();
    84     void faireDessinEnveloppe(WContainerWidget* toto, string type);
    85     void scatterPlot1D(WContainerWidget* toto, vector<double>& xcor, vector<double>& ycor);
    86    
    87     bool removeExtensionFromConfigName(string& config);
    88    
    89     void dessinerHistogramme();
    90    
    91     public :
    92    
    93     PspaApplication(const WEnvironment& env);
    94    
    95     inline dataManager* getDataManager() const  {
    96         return dtmanage_;
    97     }
    98    
    99     // void addConsoleMessage(WString msg);
    100    
    101     string getSelection();
    102     void faireDessin();
    103     inline WWidget* getGlobalParam() {
    104         return globalParam_;
    105     };
    106     inline GWt_softwarePanel* getExecuteWidget() {
    107         return executeWidget_;
    108     };
    109     inline GWt_LigneFaisceau* getBeamLine() {
    110         return beamLine_;
    111     }
     91 public :
     92 
     93  PspaApplication(const WEnvironment& env);
    11294
    113     inline GWt_abstractElementFactory* getAbstractElementFactory() {
    114         return abstractElementFactory_;
    115     };
     95  string getSelection();
     96  void faireDessin();
     97
     98  inline dataManager* getDataManager() const  {
     99    return dtmanage_;
     100  }
     101 
     102  inline WWidget* getGlobalParam() {
     103    return globalParam_;
     104  }
     105
     106  inline GWt_softwarePanel* getExecuteWidget() {
     107    return executeWidget_;
     108  }
     109
     110  inline GWt_LigneFaisceau* getBeamLine() {
     111    return beamLine_;
     112  }
     113
     114  inline GWt_abstractElementFactory* getAbstractElementFactory() {
     115    return abstractElementFactory_;
     116  }
    116117};
    117118#endif
Note: See TracChangeset for help on using the changeset viewer.